Use coarse locc instead On Jun 22, 2011 7:34 PM, "Md.Fazla Rabbi OPU" <[email protected]> wrote: > Hi all, > > I want to develope an app in which--> "When i start the app it will first > give me Latitude and Longitude of my current location". Here is my code: > > * LocationListener locLis=new LocationListener() { > > @Override > public void onStatusChanged(String provider, int status, Bundle extras) > {} > @Override > public void onProviderEnabled(String provider) {} > @Override > public void onProviderDisabled(String provider) {} > @Override > public void onLocationChanged(Location location) > { > // TODO Auto-generated method stub > Double lat=location.getLatitude(); > Double lon=location.getLongitude(); > Log.i("Latitude=="+lat,"=="+lon); > > } > }; > locationManager = (LocationManager) > getSystemService(Context.LOCATION_SERVICE); > locationManager.requestLocationUpdates( > LocationManager.GPS_PROVIDER,0,0, locLis);* > > I use *ACCESS_FINE_LOCATION* in the manifest file. > But when i start the app there is no latitude and longitude it found. Why? > If i change the location's latitude longitude from the command prompt then > it will show the updated latitude and longitude. Please anyone help me > > Best Wishes > Md. Fazla Rabbi > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

