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.
Asked
Active
Viewed 65 times
0
-
Use a Mock Location Provider on device: https://stackoverflow.com/q/2531317/295004 – Morrison Chang Oct 17 '17 at 02:26
1 Answers
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