Thanks Roman this was a good solution but I didn't want to force the
wake lock because of battery life. Instead I implemented the
AlarmManager but now I find out that I can't use security with pending
intents so there may be another rewrite in order.

Tom

On Oct 29, 1:31 am, "Roman ( T-Mobile USA)" <roman.baumgaert...@t-
mobile.com> wrote:
> Try to implement a service which is responsible for the data
> connectivity. You want to make sure that you acquire a CPU wake lock,
> that you are able to process the incoming data in your service.
>
> Also check out the Wifi wake lock (http://developer.android.com/
> reference/android/net/wifi/WifiManager.WifiLock.html)
>
> You can check the status of your Wifi connection using a broadcast
> receiver. Look for the state changes intents.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Oct 28, 5:49 pm,Loki117<[email protected]> wrote:
>
> > Hey Guys,
>
> > I am looking for some help. I am seeing something odd happening when
> > my device goes to sleep (Hero) when the device sleeps a process which
> > I have in the background seems to stop picking up data from it's
> > server. I can't work out of the service is going to sleep or if the
> > network connection is being dropped (3G & WifI) can anyone shed some
> > light on the status of the phone when it goes into standby mode (the
> > user presses the power button)? What happens if a thread that is
> > currently sleeping wakes up and makes a network request for example?
>
> > Thanks in advance,
>
> > Tom
--~--~---------~--~----~------------~-------~--~----~
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