Android Question VPN connection with 1 click

hangloose99

Member
Licensed User
Longtime User
Hello Erel,

I'am also searching for B4A code to establish a existing VPN
connection. This would be very helpful.

until now I use...
i.Initialize("android.net.vpn.SETTINGS","")

to open the VPN settings.
But with this solution I have to do 5 clicks.
 

Peter Simpson

Expert
Licensed User
Longtime User
Can you post some example code, 5 clicks is 4 clicks too many, also you should not really name a person in your fist post, there are other community members on here that can also help you and it's not good practice.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Can you post some example code, 5 clicks is 4 clicks too many
He already posted the code he is using to open the settings....
If you know how to do it with one click; share the solution...

I´m not sure if it is possible at all to create a VPN completely by code.
 
Upvote 0

hangloose99

Member
Licensed User
Longtime User
Sorry, that was because I first wrote it in another thread where erel posted an answer.
But the thread was older than 1 year and at the end there was a recomendation to start a new thread.
I forgot to delete the salutation.

Unfortunately I do not have example code for that.
But it must work somehow. For example the program "myfritz" does it
automatically while the app start.
 
Upvote 0
Top