[android-developers] Re: How Write a background service to get latitude and longitude

2010-09-21 Thread shawn liu
There is a example about get GPS location with timemout. http://sikazi.blogspot.com/2010/09/android-gps-timeout.html#more -- 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.

[android-developers] Re: How Write a background service to get latitude and longitude

2010-09-21 Thread shawn liu
There is a example about get GPS location with timeout. http://sikazi.blogspot.com/2010/09/android-gps-timeout.html#more -- 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.

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Hotouch
Hello John, i got a pretty good example from your link http://code.google.com/p/androidsmsphonelocator/ and i am going to use this one and i hope to get more resource if any one have. Regards On Aug 31, 6:00 am, John wrote: > I had full intention on writing a blog post about this mostly in >

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Maps.Huge.Info (Maps API Guru)
In the name of expediency, it's best to start both listeners simultaneously and then wait for a set period (like 30 seconds) before deciding on which one to use. I find this to be the most accurate. If you wait for the GPS to time out before starting the network listener, you waste a full 30 second

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread John
I had full intention on writing a blog post about this mostly in response to this posting on Lifehacker http://lifehacker.com/5611003/build-a-find-my-iphone-clone-for-android In Android its a fairly simple piece of code that needs to run. The basic application is this 1. Listen for an incoming

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Maps.Huge.Info (Maps API Guru)
Frank, yes I agree that GPS indoors (away from windows especially) is about as useful as a solar-powered flashlight. On LastKnownLocation... the fix can be inaccurate, even miles off. This is the last fix the device had which might be the previous day or older. I would discount LastKnownLocation t

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread davemeetsworld
Is it just me or does this reek of a dude trying to stalk his girlfriend? :-) I've had good experiences with getting the location of android devices especially the HTC Hero. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

Re: [android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Frank Weiss
John, I don't think we disagree. I've observed similarly accurate fixes, under ideal conditions and given enough time. To add to the OP's question, if the device receives the SMS while indoors, that's one of the worst conditions to get an accurate GPS fix. -- You received this message because yo

[android-developers] Re: How Write a background service to get latitude and longitude

2010-08-30 Thread Maps.Huge.Info (Maps API Guru)
> > Use getLastKnownLocation(). Be forewarned that there's no way to get a > fix on demand on most mobile phones. > I would have to disagree with you. The GPS on the average Android device is quite good and will provide a fix within 12 meters on average. It's just a matter of letting the sensor vi