Example 5: User is on a telecon with a Bluetooth earpiece. In-call, but phone is probably sitting on a desk.
On Wed, Aug 10, 2011 at 11:03 AM, Appaholics <raghavs...@appaholics.in> wrote: > I can't really help you with your main problem but you might want to watch > out for this. The phone can and cannot be in use even when the accelerometer > is moving fast or not moving. Example 1: The user is walking with the phone > in his pocket. Creates a sizable amount of movement but phone is not really > in use. Example 2: The user is walking while texting. Sizable amount of > movement plus activity. Example 3: Device is on the table and not in use. No > movement plus no activity. Example 4: User is sitting and texting. Not s lot > of movement but has activity. > You might want to rethink your app now. > Thanks > On Wed, Aug 10, 2011 at 9:21 PM, Hank <hwang...@gmail.com> wrote: >> >> If I determine the phone is active by reading the accelerometer, I >> want to update the location of the phone every 30 seconds. If after a >> while, I determine it's not moving, I stop the location updates. >> >> Is it better to leave a LocationListener on during that time, or is it >> better to register a LocationListener every 30 seconds, get an update, >> and unregister? >> >> For both methods, I would timeout after a while if I can't get a >> location update. I want to know which method is better in terms of >> both getting consistent updates and battery life. >> >> And I'm trying to get updates through GPS satellites, not network, >> even though I know network is faster and less battery consuming, but I >> need to get it through satellites. Please keep that in mind. >> >> -- >> 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 > > > -- > -------------------- > Raghav Sood > CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles > required to have complete control) > http://www.raghavsood.com/ > https://market.android.com/developer?pub=Appaholics > http://www.appaholics.in/ > > -- > 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 -- Bill Gatliff b...@billgatliff.com -- 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