You can listen to ConnectivityManager.CONNECTIVITY_ACTION broadcasts,
or inspect the result of ConnectivityManager.getActiveNetworkInfo().
For the latter, get a ConnectivityManager object with
(ConnectivityManager)
Context.getSystemService(Context.CONNECTIVITY_SERVICE)

JBQ

On Thu, Nov 6, 2008 at 8:24 AM, Breno <[EMAIL PROTECTED]> wrote:
>
> Hey fellows,
>
>     i read in somewhere that is possible to do something (for
> example, start a service) when phone power up or do something when
> there is GPRS, or EDGE, or anything like that. I'm doing some tests
> here, and till now i'm just able to wake up my app when
> BOOT_COMPLETED. My question is how can i detect when there is (and
> when there is not) GPRS, so i can do what needs to be done with this
> info.
>
> Thanks a lot
>
> Breno
> >
>

--~--~---------~--~----~------------~-------~--~----~
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