4

I want to know is there a way to open another app and click on some button. In my case, I need to open play market application from my app(using intent) and click on "update" button.

It would be great to have a method like findViewById which I can use while I am in another app.

Rustam Ibragimov
  • 2,571
  • 7
  • 22
  • 33
  • @Suaro thanks, but I know how to open another app. The problem is where I need to click a button inside this app programmatically. – Rustam Ibragimov Jan 16 '18 at 18:16
  • The second app is yours? If the application is yours, you may be able to send a message in the intent so that the other application knows what to do. – Suaro Jan 16 '18 at 18:19
  • 1
    If the app is not yours, you should have some method enabled so that when you perform that interaction, it will send a response to your app. – Suaro Jan 16 '18 at 18:21
  • https://stackoverflow.com/questions/47348782/can-i-make-my-app-open-another-app-and-click-a-button-in-it – tinyCoder Jan 16 '18 at 22:28
  • Unless the second app is also yours, that sounds like potential malware and a major security risk. So it is not possible for security reasons. – Razvan S. Jul 30 '22 at 06:55

0 Answers0