title: Does any body know how to make a VPN connection programmatically using L2TP/IPSec server protocol in android?
body: <p>Does any body know how to make a VPN connection programmatically using L2TP/IPSec server protocol in android?</p>
  
  <p>I'm trying to connect to my VPN server with L2TP/IPSec protocol through my android application, as i was researching I found out that with android.net.vpnservice I could connect, but as I read some of documentation it was not clear how to connect to VPN (there were no API to set username or password, and also no API to set my VPN type(l2tp,pptp); I also tested example application Google provided(toyvpn) and there were none of what I mentioned earlier there too.</p>
  
  <p>Any help would be really appreciated. Thanks in advance</p>