create mock location to location service, reference from https://developer.android.com/training/location/location-testing.html.
LocationProvider is hosted in the following web site
https://github.com/hiiamyes/LocationProvider
If you think the Android project LocationProvider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of LocationProvider.
Item | Value |
---|---|
Java File Count | 10 |
Supported screen sizes | [mdpiv11, mdpi, hdpiv9, hdpi, mdpiv9, xhdpi, hdpiv11, xhdpiv9, xhdpiv11] |
Activity Count | 1 |
Fragment Count | 1 |
Required Permissions | android.permission.ACCESS_MOCK_LOCATION |
There are 1 image files in LocationProvider. The names of the image files are listed as follows.
ic_notify.png
The following screenshort is generated from the image listed above.
LocationProvider has the following Java source files.
com.example.locationprovider.app.GV.java com.example.locationprovider.app.LocationUtils.java com.example.locationprovider.app.MainActivity.java com.example.locationprovider.app.SendMockLocationService.java com.example.locationprovider.app.TestLocation.java com.example.locationprovider.app.mApplication.java com.example.locationprovider.app.model.SQLiteOpenHelperUtil.java com.example.locationprovider.app.model.location.MockLocationModel.java com.example.locationprovider.app.model.location.MockLocationProvider.java com.example.locationprovider.app.util.LogUtil.java