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.
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)
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.
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 ....