Hey if u need  Continuous update.then leave ur s reenon in oncreate of
activity
On Feb 4, 2012 4:54 AM, "Ted Scott" <[email protected]> wrote:

>
> I do a similar thing by running a service from an alarm, it checks
> position every 15 mins. It works while I'm just toting the phone around in
> my pocket screen locked. It even works while the app is closed as long as
> the app has been started since boot and the alarm initialized.
>
> Maybe it has something to do with the activity being suspended?
>
> On 1/31/2012 9:50 PM, Joshua Witter wrote:
>
>> I posted this same question on StackOverflow if anyone wants the karma
>> for answering it there.
>>
>> This is on an Android phone running 2.3.3 Gingerbread. I am trying to
>> log a GPS location while the screen is off. When the screen is on, the
>> GPS gives correct outputs... driving around in my car I have a phone
>> hooked up to my laptop and I read the output with logcat. Under the
>> same conditions, when I turn off the screen the GPS gives the same
>> location over and over, until I turn on my screen again at which time
>> it works properly.
>>
>> Here is my manifest file (note the WAKE_LOCK and GPS permissions as
>> well as the LocationService definition):
>>
>>
> --
> 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<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<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 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