title: Method to pass username and password in VpnService.Builder
body: <p>I am developing the application in which I want to use VPN network. to create VPN network in device we need to configure it from (settings-wireless and network-VPN settings) menu of device.</p>
  
  <p>I want to do this many settings via code with hard-coded information.</p>
  
  <p>From API level 4.0 android provides API to handle the <a href="http://developer.android.com/reference/android/net/VpnService.Builder.html" rel="noreferrer">VPN services</a>.</p>
  
  <p>To know the implementation of this methods I used the Sample project of Android ToyVPN.  But in this many methods I didn't find any method to pass username and password. information which I have to connect VPN network is.</p>
  
  <ol>
  <li>VPN Server name</li>
  <li>Username </li>
  <li>Password</li>
  </ol>
  
  <p>Using this three information I am successfully connecting to VPN network if I am configuring manually from device. But I want to do this programmatically.  Here is the class file which is used to connect to VPN network.  <a href="http://pastie.org/4249892" rel="noreferrer">ToyVpnClient.java</a> and <a href="http://pastie.org/4249896" rel="noreferrer">ToyVpnService.java</a>. in addition to this sample application is crashes in device.</p>
  
  <p>Any help will be appreciated.</p>