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
-
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) ... "prio
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);
St
3 matches
Mail list logo