Android Question Openvpn for Android

ronie123

New Member
Licensed User
Longtime User
Hi guys,

can anyone tell me, how could this in B4A

B4X:
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,"test");
startActivity(shortcutIntent);

Many thanks,
Robert
 

ronie123

New Member
Licensed User
Longtime User
B4X:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "")
i.SetComponent("de.blinkt.openvpn/.LaunchVPN")
i.PutExtra("de.blinkt.openvpn.shortcutProfileName", "test")
StartActivity(i)
Hi Erel,
it works perfect. Many thanks for your support.
Robert
 
Upvote 0
Top