I´m trying to get my location with this code:
Using java Syntax Highlighting
- this.myLocationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
- List<LocationProvider> providers = this.myLocationManager.getProviders();
- LocationProvider provider = providers.get(0);
- this.myLocationManager.requestUpdates(provider, MINIMUM_TIME_BETWEEN_UPDATE, MINIMUM_DISTANCECHANGE_FOR_UPDATE, new Intent(MY_LOCATION_CHANGED_ACTION));
- this.myLocation = myLocationManager.getCurrentLocation("gps");
- Log.d( "myPosition", myLocation.toString() );
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
But it gives me to me so many errors that i can´t write all of them here.
This code is into a try-catch method.
Does the emulator have any default position? do i have to give a location to it? does getProviders() method work?
In resume, does anything of this work?
thanks!!
regards!

