[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-06-16 Thread Tom Bridge
Hi Im getting the same problem when trying the devx.com tutorial with the GPS only working twice. I tried getting rid of the Toast completely incase that was causing a deadlock like Mike suggested but with no luck. I was wondering if anyone found the problem or had found a better tutorial? Tom -

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-05-19 Thread Mike
I suspect you need to update the Toast (which is a UI widget) on the UI thread. You do this by creating a Handler and posting a Runnable with the code you are using to update the Toast. If you don't, you run the risk of deadlock. - Mike On May 7, 2:52 pm, Patricio Echague wrote: > Hi all, my

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-05-19 Thread Pablo
Curiously I have tried your code and I get the same problem as you. It only works for the first two GPS data that i send. The code seems to be ok as it is the same as the tutorial on devx.com page... I have no clue about what's happening. Thanks, Pablo On May 14, 12:25 pm, Pablo wrote: > Hi,

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-05-14 Thread Pablo
Hi, I'm having a similar problem to yours and as far as I know sdk 1.5 has introduced some changes concerning location. On the manifest the uses- permission, as far as I know, ACCESS_GPS and ACCESS_LOCATION has been substituted for ACCES_FINE_LOCATION. ACCESS_COARSE_LOCATION is only needed in ca