Android ACCESS_LOCATION_EXTRA_COMMANDS permission uses

后端 未结 2 1666
庸人自扰
庸人自扰 2020-12-24 14:00

Android contains a permission called \'ACCESS_LOCATION_EXTRA_COMMANDS\'. Normal location commands would involve accessing coarse/fine location. Does anyone know what kind o

2条回答
  •  甜味超标
    2020-12-24 14:31

    I only know of 1 command which can be uses when you have a slow GPS fix:

    ((LocationManager)YourActivity.this.getSystemService("location")).sendExtraCommand("gps", "delete_aiding_data", null);
    

    and in the Manifest:

    
    

提交回复
热议问题