3

API-14 Available to implement vpn service for android. How to implement it?

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • Please do your homework before you ask any questions and SO is not the right place to ask for SOURCE CODE. People here are trying to help you and we can't do it without your efforts. – Ragunath Jawahar Aug 26 '13 at 08:16

2 Answers2

3

You can refer open source project openvpn for reference about how to implement VPN services in android.you may also like to see this

http://code.google.com/p/ics-openvpn/

Thanks

Community
  • 1
  • 1
Juned
  • 6,290
  • 7
  • 45
  • 93
1

For that first you need to decalre VPN service in you code like as follows

 <service android:name=".ExampleVpnService"
         android:permission="android.permission.BIND_VPN_SERVICE">
     <intent-filter>
         <action android:name="android.net.VpnService"/>
     </intent-filter>
 </service>

And you can also check this link for more details

riti
  • 255
  • 2
  • 11