I want to develop an application in which, if i open the app, it will show current location of my device. I want to do it without using gps. I have write a code for it. But
You should request 'mlocManager' to locate, and set its listener:
public void getCurrentLocation()
{
if (mlocManager != null) {
mlocManager .requestLocationUpdates(
LocationManager.NETWORK_PROVIDER, 0, 0, locListener );
mlocManager .requestLocationUpdates(
LocationManager.GPS_PROVIDER, 0, 0, locListener );
}
}