[android-developers] Re: GPS Access Question

2009-07-10 Thread jnv
Hi, I'm working through your gps example but I get a sorry, app has stopped unexpectedly message when I run it on the emulator. My code is pretty similar to the above. Any thoughts? (BTW, I made sure to include the ACCESS_FINE_LOCATION permission line in the manifest.xml file.) Thanks, -jnv

[android-developers] Re: GPS Access Question

2009-05-22 Thread Phil
Ah, thanks for the information! I did manage to get it working, but the only way I could get it to compile properly was by initializing the manager variable outside of the onCreate program with a simple LocationManager manager; making the later call simply manager = (LocationManager) ... prior

[android-developers] Re: GPS Access Question

2009-05-21 Thread Mike Hearn
Activity inherits from Context, so you don't need to specify a context specifically anywhere. Eclipse will tell you the exact error if you hover over the line, or use the window at the bottom. Does that not work? LocationManager manager = (LocationManager) getSystemService (LOCATION_SERVICE);