0

There are 3 ways to modify Gps data in the Android emulator. But how can I do this in a real Android-powered device in order to test the location function.

Shuai Wang
  • 335
  • 1
  • 8
  • 20

1 Answers1

0

You can try fake GPS:

https://play.google.com/store/apps/details?id=com.incorporateapps.fakegps.fre&hl=en

or you can use

<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> 

in mandifest and customize your code with LocationManager with detail in

https://stackoverflow.com/questions/2531317/android-mock-location-on-device

I hope it can help your problem!

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Thientvse
  • 1,753
  • 1
  • 14
  • 23