I made a little app in Android using OSMDroid library, my map is loading from assets. Now I want to put my GPS location on that map, but without using Internet connection. I found these
GpsMyLocationProvider provider = new GpsMyLocationProvider(getApplicationContext());
provider.addLocationSource(LocationManager.GPS_PROVIDER);
MyLocationNewOverlay myLocationNewOverlay = new MyLocationNewOverlay(provider, mapView);
myLocationNewOverlay.enableMyLocation();
Toast.makeText(getApplicationContext(),"my location "+ provider.getLastKnownLocation()
,Toast.LENGTH_LONG).show();
mapView.getOverlays().add(myLocationNewOverlay);
but nothing changes.