summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-06-18 23:37:33 +0200
committerArne Schwabe <arne@rfc2549.org>2012-06-18 23:37:33 +0200
commit3f07371155f442f3dfd6b705143d60e173bfdc48 (patch)
tree72b22bd40f57bada49869bd617fed3bcb4f5eb0f /README.txt
parent06917978c727df00627a5b831526def8d613a280 (diff)
A requrested feature. How to start a VPN from an external app.
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.txt b/README.txt
index c21409b7..54eab980 100644
--- a/README.txt
+++ b/README.txt
@@ -12,3 +12,23 @@ Do ndk-build in the root directory of the project.
Use eclipse with android plugins to build the project.
Optional: Copy minivpn from lib/ to assets (if you want your own compiled version)
+
+
+
+
+Starting a VPN by name from an external app:
+
+public class StartOpenVPNActivity extends Activity {
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ final String EXTRA_NAME = "de.blinkt.openvpn.shortcutProfileName";
+
+ Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
+ shortcutIntent.setClassName("de.blinkt.openvpn", "de.blinkt.openvpn.LaunchVPN");
+ shortcutIntent.putExtra(EXTRA_NAME,"upb ssl");
+ startActivity(shortcutIntent);
+ }
+} \ No newline at end of file