Does anyone know how to have the emulator simulate a network location? I know you can do a mock gps location.
In the code below "location" always ends up being null on the emulator. It works fine on an actual device though.
locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);