I think you are going to have to go with Studio LFP. Checking an update say
ever 5 or 10 minutes with GPS won't kill the battery that fast. Atleast with
my application it doesn't just don't leave the GPS listener open. I set an
alarm to go off every X minutes, first I try a course location (off 3g or
wifi) if I can't get a location I try a fine location (off GPS) I have had
the app run for 24 hours in the background checking every 5 minutes and
didn't notice much of a difference from when it wasn't running.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of juankar
Sent: Friday, October 07, 2011 3:00 PM
To: Android Developers
Subject: [android-developers] Re: How to detect nearby devices

Wifi broadcast would be ideal, since it is less power-consuming than GPS,
but is it possible to send a wifi broadcast from my application and other
users with the same application can detect that broadcast and get the
information from the emisor? If so, problem solved!

If not, as Studio LFP said, my only idea in mind was updating (every 5 min,
for example) with the latest location coordinates, upload to db, check for
coords in range and then get the information from the users in range.
However, that would obviously require having GPS turned on (or maybe not, if
wifi or 3g can provide location coordinates) with the inherent battery
draining :(.

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

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