Hi Dave,
Not sure to understand correctly your question.
What I am trying to do is to use (precisely trigger automatically the menu) of the Android standard built-in VPN client (which can be found in the parameters in the "more network" part). I have configured it using PPTP and when opened manually it works fine, I can secure access to my box. (using addresses 192.168.... of my local network from the internet).
I want to do that so that I can be prompted directly in the DS app with the menu popping up to directly choose the VPN connection among those defined and enter the password and therefore open the tunnel to my internet box and then go back to the app focus.
I did not install a specific app. as VPN.
Here below the test code I used after your advice, which does not yet provide the expected behaviour.
I am not famliliar with the Android core architecture, so perhaps what I want to do must be addressed completely differently.
The new input however is that if run it from the IDE, I have no message BUT if I generate an APK I get the following message:
Script Error: app.SendIntent is not a function
Thanks for your help.
Device is Galaxy Tab S 8.4 Lollipop.
Brgds,
Philippe
------------------------
//Called when application is started.
function OnStart()
{
//Create a layout with objects vertically centered.
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
//Create a button.
btn = app.CreateButton( "Button", 0.4 );
btn.SetMargins( 0, 0.02, 0, 0 );
btn.SetOnTouch( btn_OnTouch );
lay.AddChild( btn );
//Add layout to app.
app.AddLayout( lay );
}
function btn_OnTouch( )
{