Starting OpenVpn settings from another app

182 views
Skip to first unread message

michele ginaldi

unread,
Sep 5, 2012, 1:44:11 PM9/5/12
to android-open...@googlegroups.com
Hi to everyone-
I've developed an app that, among the features, launches an OVPN connection to our server.
So, firstly, thanks to Friedrich Schäuffelhut for having made ovpn possible on android!
Now, i would like my app to start and stop openvpn settings automatically.
At the moment i have a simple button that launches OpenVpn settings, and the user checks or unchecks the box of the configuration to start or stop the connection.
I would like to push the button and have openvpn setting opening and starting the connecion, without any other interaction.
Similarly for stopping it.
I am using appinventor to write the app, and at the moment i have the activitystarter parameters set as follows :
Action : android.intent.action.MAIN
ActivityClass : de.schaeuffelhut.android.openvpn.OpenVpnSettings
ActivityPackage : de.schaeuffelhut.android.openvpn

And i can set these other parameters :
DataType 
DataUri
ExtraKey
ExtraValue

Could you please help me?

michele ginaldi

unread,
Nov 1, 2012, 6:41:13 AM11/1/12
to android-open...@googlegroups.com
...bump, no way to accomplish this?
thank again.

Friedrich Schäuffelhut

unread,
Nov 3, 2012, 12:19:47 PM11/3/12
to android-open...@googlegroups.com
Hi Michele,

I am working on an API for that.
I will announce a new test release here prior to market release.

Best Regards
Friedrich

Friedrich Schäuffelhut

unread,
Nov 29, 2012, 6:50:39 PM11/29/12
to android-open...@googlegroups.com
Hi Michele,

The version currently available on the market publishes an API.
Get the source and check out the class OpenVpnServiceWrapper.
Please be aware, that the API will most likely change in future versions as it has not stabilized yet.

Best Regards
Friedrich
Reply all
Reply to author
Forward
0 new messages