Android Question Openvpn for Android

Discussion in 'Android Questions' started by ronie123, Oct 11, 2014.

  1. ronie123

    ronie123 New Member Licensed User

    Hi guys,

    can anyone tell me, how could this in B4A

    Code:
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Dim i As Intent
    i.Initialize(i.ACTION_MAIN, 
    "")
    i.SetComponent(
    "de.blinkt.openvpn/.LaunchVPN")
    i.PutExtra(
    "de.blinkt.openvpn.shortcutProfileName""test")
    StartActivity(i)
     
  3. ronie123

    ronie123 New Member Licensed User

    Hi Erel,
    it works perfect. Many thanks for your support.
    Robert
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice