diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-06-20 22:30:53 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-06-20 22:30:53 +0200 |
commit | 47e1a6d2dd8e1416dcf4944c0258e999e7102677 (patch) | |
tree | da2e4a094a3e352ce7a842cba86d29864947c0a2 /README.txt | |
parent | e8ea1db33db4fb9b4ef360125d2ec95071cd6424 (diff) | |
parent | e9b93deeff850a113870e1b27bde251d266b9d7c (diff) |
merge
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |