Tuesday, April 23, 2013

Re: [android-developers] Re: Deep sleep after 1 hour?

Then no, I'll have to try that and see if that fixes things.

On Tuesday, April 23, 2013 10:16:15 AM UTC-4, Kristopher Micinski wrote:
this...

http://developer.android.com/guide/components/services.html#Foreground

Kris

On Tue, Apr 23, 2013 at 10:05 AM, paladin <quot...@gmail.com> wrote:
> Yes, if what that means what I think it means.
>
>
> On Tuesday, April 23, 2013 8:48:57 AM UTC-4, Kristopher Micinski wrote:
>>
>> Just to check, you are running a foregrounded service, correct..?
>>
>> Kris
>>
>> On Tue, Apr 23, 2013 at 8:44 AM, Kristopher Micinski
>> <krismi...@gmail.com> wrote:
>> > An AlarmManager will wake the device up, but isn't typically used for
>> > 30 second granularity.  Still, perhaps a solution to try.
>> >
>> > Kris
>> >
>> > On Tue, Apr 23, 2013 at 4:51 AM, paladin <quot...@gmail.com> wrote:
>> >> It's actually sending the location of the phone every 30 seconds to the
>> >> server. Where would the alarm be located that you're talking about?
>> >>
>> >>
>> >> On Tuesday, April 23, 2013 4:26:11 AM UTC-4, Dave Shortman wrote:
>> >>>
>> >>> Does the app do anything else other than ping the server? Best way to
>> >>> approach this really would be to set an alarm which fires every 30
>> >>> seconds,
>> >>> when you receive the alarm take a partial wakelock and fire a service
>> >>> to
>> >>> perform the ping, this service should also take and release a wakelock
>> >>> whilst performing the ping.
>> >>>
>> >>> On Monday, 22 April 2013 22:00:32 UTC+1, paladin wrote:
>> >>>>
>> >>>> I have an app that is supposed to send a ping to a server every 30
>> >>>> seconds. When the app goes to sleep, it's still supposed to do this,
>> >>>> but
>> >>>> I've been testing and it seems to stop sending any updates after 1
>> >>>> hour,
>> >>>> consistently. Is this a "deep sleep"? I have seen no documentation on
>> >>>> this.
>> >>>> Has anyone experienced this? Would anyone know how to keep it from
>> >>>> going
>> >>>> into deep sleep?
>> >>
>> >> --
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "Android Developers" group.
>> >> To post to this group, send email to android-d...@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> android-developers+unsubscribe@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/android-developers?hl=en
>> >> ---
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Android Developers" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to android-developers+unsubscribe@googlegroups.com.
>> >> For more options, visit https://groups.google.com/groups/opt_out.
>> >>
>> >>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment