Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling GPS in Android emulator

Just a simple question - is there a way to disable GPS in the Eclipse Android emulator? I want to see how the application will behave when GPS is turned off.

like image 827
Marko Cakic Avatar asked Sep 30 '12 17:09

Marko Cakic


People also ask

How do I enable GPS on my emulator?

When setting up GPS emulator, you need to go to your Settings > About on your Android device. Then tap on the Build number seven times, which activates the developer mode. Now head back to the main settings, where you should see a new option menu called "Developer Options".

How set fake location in Android emulator?

settings> system > developer optionsFind the option select mock location app Then select the app you downloaded from step 1.


2 Answers

in Android Studio in the AVD Manager:

enter image description here

like image 80
JoachimR Avatar answered Sep 27 '22 02:09

JoachimR


Or OPen Android Virtual Device Manager, click on device you want to edit then on Hardware group click on New and choose GPS support property. After you add that property to existing properties, change it value with dropdown to false. After that just click on EditAVD

like image 26
Igor Avatar answered Sep 24 '22 02:09

Igor