title: how to create vpn profile in android programmatically
body: <p>im using api 10 in eclipse.i want to make an app to create just a simple vpn profile that is available in phone settings.</p>
  
  <p>i searched alot but i couldn't find a solution. </p>
  
  <p>i read that i should use VpnProfile as below...but i couldnt find it and this code gives error...</p>
  
  <pre><code>    VpnService service = context.getSystemService(VPN_SERVICE);
      VpnProfile profile = VpnProfile.create(L2TP_PROFILE);
      profile.setName(myServerName);
      profile.setServerName(myServerAddress);
      profile.setRouteList(“192.168.1.0/255.255.255.0,192.168.10.0/255.255.255.0”);
  
      service.connect(profile, myUserName, myPassword);
      service.setNotificationIntent(myIntent);
  </code></pre>
  
  <p>i appreciate you if you can help me...
  thank you</p>