On 18 April 2011 10:41, Ved Antani <[email protected]> wrote:

> I have an application that talks to a remote server which most likely
> will be behind a VPN. Is there a way to programmatically enable VPN
> and connect to GPRS in Android ?
>

Not sure, but if not, you can always check what interfaces are up and try to
detect if any matches your (known) IP pool for your VPNed subnet or check
for tun0 or so iface name. If none is found warn the user. But do not
disallow the connection as he may be using device -> wifi gw -> vpn route
for example. Still, VPN or not, secure your transmission with SSL.

Regards,
Marcin Orlowski

*Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
*Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
*Twitter<http://webnetmobile.com/twitter/>
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to