by nithin.warier » Fri May 09, 2008 2:22 pm
plusminus,
myLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
loc = myLocationManager.getCurrentLocation("mobeegal");
lat = loc.getLatitude() * 1E6;
GmmGeocoder geocoder = new GmmGeocoder(Locale.getDefault());
Address[] addresses = geocoder.query("chennai", GmmGeocoder.QUERY_TYPE_REVERSE_GEOCODE, lat, lng, 0, 0);
but i am getting null pointer exception.. igave proper permission and all.. but still showing error, null pointer exception
the error is in the line
Address[] addresses = geocoder.query("chennai", GmmGeocoder.QUERY_TYPE_REVERSE_GEOCODE, lat, lng, 0, 0);
please send the solution....i need it urgently... thsi prob is killing my time..