Android Question [SOLVED] Launch Service and simulate tap

Sabotto

Well-Known Member
Licensed User
From my app, with these instructions, I can launch a service (OpenVPN) that allows me to connect to my VPN.
B4X:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "")
i.SetComponent("de.blinkt.openvpn/.LaunchVPN")
i.PutExtra("de.blinkt.openvpn.shortcutProfileName", "VPN_Telecontrollo")
StartActivity(i)
The screen appears but then I have to "tap" manually on my profile.
WhatsApp Image 2021-05-20 at 12.39.23.jpeg


In your opinion, it is possible to automate everything, that is to start the service and also start the profile (as if I had done tap manually?)
Thanks
 

Sabotto

Well-Known Member
Licensed User
I was actually looking for something that could add some parameters or instructions to the ones I used to start the app and at the same time use that profile
 
Upvote 0
Top