Network Location in emulator

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Network Location in emulator

Postby george12182 » Wed Feb 02, 2011 8:12 am

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);
george12182
Freshman
Freshman
 
Posts: 8
Joined: Tue Dec 07, 2010 6:16 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest