Hi,
We're working on Location based services with android emulator. But the issue is that the application crashes when any of the following statements executes:-
Location location = locationManager.getLastKnownLocation(locationManag er.getBestProvider(CRITERIA, true));
OR
Location location = locationManager.getLastKnownLocation("gps");
We have also defined permissions in manifest.xml as follows:-
<uses-permission android:name="android.permission.ACCESS_GPS"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION"/>
PS: we are also spoofing coordinates using ddms. Google map works fine, but our application keeps crashing.
Any inputs please. Thanks in advance.