Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the location manually in Android Studio emulator

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.

like image 409
Martin j Avatar asked Nov 28 '17 09:11

Martin j


People also ask

How do I change my location on Android Emulator?

How to configure GPS location “Google Map” on your Android Studio Emulator. First, run your Android Emulator and click on the three dots on the menus beside. On the left pane, select Location and change the coordinates according to your location. Press the Send button, changes will immediately take effect.

How do I change location settings on Android?

You can control what location information your phone can use. Open your phone's Settings app. Under "Personal," tap Location access. At the top of the screen, turn Access to my location on or off.

How do I set my location developer?

First, go to “Settings” → navigate to “About Device” → and finally tap multiple times on “Build number” at the bottom of the menu to activate the Developer Mode. In this “Developer Options” menu, scroll down to “Debugging”, and tap on “Select mock location app”.


1 Answers

First of all,

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

enter image description here

like image 168
Dhruv Avatar answered Oct 21 '22 03:10

Dhruv