INTRODUCTION
Many questions have been asked about the configuration of the VPN connections. Probably the most famous with its important answer is this one. The closest question to my needs is the following one.
But I have not found the answer I am looking for yet.
- I have manually configured a IPSEC Xauth PSK connection using the Android native VPN connection section (example image).
- I have established the connection for the first time to the VPN in order to check the "Save account information" checkbox, so I will always have credential saved without prompt the user to insert it anymore.
QUESTION
How can I connect programmatically to this VPN connection?
Because I have set everything I need, it's not obligatory to specify any host, username or password during the programmatical connection (because I have already done it manually in the above steps).