R RTM Elettronica S.r.l. New Member Jul 7, 2014 #1 I need to automate an external application run. I success to run it at the startup of device. No problem for this. However now i need to simulate a click inside because i need to select the feature to run inside this external application. User cannot interact with device. Any idea how to do it?
I need to automate an external application run. I success to run it at the startup of device. No problem for this. However now i need to simulate a click inside because i need to select the feature to run inside this external application. User cannot interact with device. Any idea how to do it?
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2014 #2 It is not possible in Android to simulate a click (or any other user interaction) inside a different app due to security reasons. Upvote 0
It is not possible in Android to simulate a click (or any other user interaction) inside a different app due to security reasons.
stevel05 Expert Licensed User Longtime User Jul 7, 2014 #3 If the external app runs the feature you want as a separate activity, you may be able to call it using an intent. (there are examples of this on the forum) Upvote 0
If the external app runs the feature you want as a separate activity, you may be able to call it using an intent. (there are examples of this on the forum)
Erel B4X founder Staff member Licensed User Longtime User Jul 8, 2014 #4 If the external app runs the feature you want as a separate activity Click to expand... This is only true if the activity is "exported" (android:exported=true or an intent filter is available). You cannot start internal activities of other apps. Upvote 0
If the external app runs the feature you want as a separate activity Click to expand... This is only true if the activity is "exported" (android:exported=true or an intent filter is available). You cannot start internal activities of other apps.
ilan Expert Licensed User Longtime User Jul 8, 2014 #5 what you can do is put a timer in the second app you would like to simulate the button click and with the main app you create a txt file that has in the first line number "1" the app start checking for this file every 10 second or whatever you want and if the number is = 1 then perform click .... Upvote 0
what you can do is put a timer in the second app you would like to simulate the button click and with the main app you create a txt file that has in the first line number "1" the app start checking for this file every 10 second or whatever you want and if the number is = 1 then perform click ....