Android - Unable to get the gps location on the emulator

后端 未结 4 1132
不知归路
不知归路 2020-12-06 18:12

i\'m tring to use the gps on the android emulator, i\'ve the following code:

public class NL extends Activity {

 private LocationManager locmgr = null;

 @O         


        
4条回答
  •  悲哀的现实
    2020-12-06 18:46

    FOUND THE SOLUTION:

    LocationManager.NETWORK_PROVIDER is WRONG.

    correction: LocationManager.GPS_PROVIDER

提交回复
热议问题