johncarpenter / android-gpx-mock-location-provider Goto Github PK
View Code? Open in Web Editor NEWSimple application to stream GPX files to Mock GPS provider on Android devices
Simple application to stream GPX files to Mock GPS provider on Android devices
This open source Android application allows you to stream GPX files through the Mock Location provider to simulate GPS on the device. Getting Started =============== 1. Install "OI File Manager" on android device. https://market.android.com/details?id=org.openintents.filemanager 2. Enable "mock locations" on Android device. Settings > Developer Options > Allow Mock Locations 3. Install AndroidMockGpx application. 4. Play gpx/gps file. Report Issues/Bugs ===============
Hi John,
I've updated your project to use gradle and added the ability to set the replay delay between GPS points.
It would be great to merge this work back into your core project. Would you consider a pull request on this? It will modify your directory structure totally but the core project is still there.
Brian
That's it.
Any recommendations on modifying the code to loop forever for all points in the gpx file? I have a 30 minute capture or so and it's better irritating restarting it while running my tests
Currently Android-GPX-Mock-Location-Provider cannot be made available in f-droid appstore because it uses a project local lib libs/xstream-android.jar to parse/read gpx files.
f-droid policy does not allow to reference project local libs/jars. it requires either source code integration in a sub-project or the lib must be available from a public maven repository (i.e. jcenter, mavencentral)
Replace xstream-android based gpx parser with k3b-geoHelper-s parser that supports reading different geo-formats: gpx-1.0, gpx-1.1, kml, non xml geo-uri. As a side effect Android-GPX-Mock-Location-Provider can use any supported format as data source.
dependencies {
compile 'com.github.k3b:k3b-geoHelper:v1.1.5'
}
k3b-geoHelper is an opensource java lib under appache license
import com.vividsolutions.jts.geom.Coordinate;
^ The import com.vividsolutions cannot be resolved
Thank you for this library. I've taken huge inspiration from it in my project.
However I think there is issue with
https://github.com/johncarpenter/Android-GPX-Mock-Location-Provider/blob/master/android/app/src/main/java/com/twolinessoftware/android/framework/service/comms/gpx/GpxSaxParser.java#L80
According to https://stackoverflow.com/questions/4567636/java-sax-parser-split-calls-to-characters
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.
Meaning parser in some circumstances will return only chunks of data (value).
Fix would be as in comment suggested https://stackoverflow.com/a/18574473/3896616
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.