diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-06-20 22:34:08 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-06-20 22:34:08 +0200 |
commit | 35fc78f5c1cfaf4f3a35a67b0e9f851bdbd8c40d (patch) | |
tree | 04db58ce7b71bf0bbd45a710a265cb69ba338f05 /README.txt | |
parent | 671525e962d8ba2685b0162acfc3f17ca6657e21 (diff) | |
parent | 43db1220cf00cb7d144b78cec8ec26a274770147 (diff) |
Merge with 4fe04f90d7c3f24b98e04e3258deb3e6d0ec51d0
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 |