Coder Social home page Coder Social logo

android-gpx-mock-location-provider's Introduction

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
===============

android-gpx-mock-location-provider's People

Contributors

curioustechizen avatar johncarpenter avatar mwilliamson-navteq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-gpx-mock-location-provider's Issues

Project Update

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

Loop at the end of the gpx file?

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

fdroid release: replace libs/xstream-android.jar with gpx parser from k3b-geoHelper lib

Problem:

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)

Possible solution

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.

To implement you can use

Usage with gradle

dependencies {
	compile 'com.github.k3b:k3b-geoHelper:v1.1.5'
}

k3b-geoHelper is an opensource java lib under appache license

Project does not compile

import com.vividsolutions.jts.geom.Coordinate;
^ The import com.vividsolutions cannot be resolved

SAX character parsing issue

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.