Sabotto Well-Known Member Licensed User May 20, 2021 #1 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. 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
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. 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 May 20, 2021 #2 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
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
Sabotto Well-Known Member Licensed User May 20, 2021 #3 I have solved! B4X: i.PutExtra("de.blinkt.openvpn.AUTOCONNECT", True) Upvote 0