How to set the location manually in Android Studio emulator

Martin j picture Martin j · Nov 28, 2017 · Viewed 23.6k times · Source

I have a project in which I need to get the location as India. But in my emulator I am not getting the location.

  • I need to get the location as India
  • when I take the google maps from my emulator, it is showing the current location in middle of the sea.

    API level I am using is 27.
    Emulator I use is Nexus 5x.
    

how to get the current position in this Emulator and also manually.

I tried to edit the location in Emulator and tried to give the latitude and longitude but it is not working.

Answer

Dhruv picture Dhruv · Nov 28, 2017

First of all,

  • Restart your emulator.
  • Go to More > Location. Enter your lat-long > Press SEND

enter image description here