[android-developers] VPN connection status on ICS

2012-05-29 Thread Stigi
Hello,
I'm trying to register receiver, that will check VPN status. I have tried 
this: 
http://stackoverflow.com/questions/3461967/get-vpn-connection-status-on-androidbut
 looks like it no longer works on ICS. I have checked android source 
code for some clue, but with no luck, only noticed that in ISC there is 
nothing like: "vpn.connectivity" and "connection_state" - it use to be in 
android 2.3. Also tried using "android.net.conn.CONNECTIVITY_CHANGE" as my 
IntentFilter, but it doesn't react on VPN connection at all (of course I 
have added permission "android.permission.ACCESS_NETWORK_STATE"). 
I thought that it is simple thing to do, but I already run out of ideas how 
to do it... Could someone help me with this please?
Thanks in advance,
Stigi

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

Re: [android-developers] VpnService basic questions

2012-05-11 Thread Stigi
Are you sure that it is whatever you code yourself? Because right here: 
http://developer.android.com/sdk/android-4.0-highlights.html if I under it 
stand right, it is said that VpnService supports only L2TP and IPSec 
protocols. On the other hand, if I am wrong, could you give us a hint how 
to code PPTP connection?

Thanks in advance

W dniu wtorek, 20 marca 2012 23:09:26 UTC+1 użytkownik Mark Murphy (a 
Commons Guy) napisał:
>
> On Mon, Mar 19, 2012 at 6:23 PM, mjl3434  wrote:
> > There are two new classes added in ICS: VpnService and 
> VpnService.Builder. I
> > want to know if these classes would be useful for my goal of developing 
> an
> > app that has it's own UI and connects to a VPN endpoint with IPSec VPN 
> (or
> > maybe even SSL VPN). Unfortunately, the documentation doesn't really 
> explain
> > anything about the actual protocols. The documentation says the class
> > is "for applications to extend and build their own VPN solutions. In
> > general, it creates a virtual network interface, configures addresses and
> > routing rules..."
> >
> > So here are some obvious unanswered questions:
> > 1. What protocol is the VpnService using? Is it SSL based, IPSec,
> > L2TP/IPSec, PPTP or what? Protocol matters to some people.
>
> It is whatever you code yourself. You want SSL-based? Write it. You
> want IPSec? Write it. You want L2TP/IPSec? Write it. You want PPTP?
> Write it. In this respect, VpnService is to VPNs as Activity is to
> user interfaces -- it is a necessary part of the framework that
> provides some basic functionality, but the core of what you are trying
> to do is what you write yourself.
>
> > 2. What on earth do you do at the remote endpoint?
>
> The other side of whatever you code yourself.
>
> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
>

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