cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1084
Views
0
Helpful
0
Replies

External control of AnyConnect from Android app.

Fotheringham1
Level 1
Level 1

Hi,

I am trying to start a VPN connection from my android app by passing a URI to the AnyConnect app.  Documentation states that this is called 'external control' and should be possible by sending a URI of the form "anyconnect:connect?name=xxx" where xxx is the name of the connection previously configured.

My question is, "How do I pass the URI to AnyConnect?"

I assume I must create an Intent and attach the URI as extra data.  The documentation does not give any hint as to the name of the intent ACTION, or how to add the URI - if it is attached as a string, there needs to be a name for this.  Example code would be:

Intent anyConnectIntent = new Intent("<action>");

anyConnectIntent.putExtra("<URI string name>", "anyconnect:connect?name=xxx");

startActivity(anyConnectIntent);

If anyone has experience of using AnyConnect in this manner, I would very much appreciate some assistance to get this working.

Thanks

Garry.

0 Replies 0