Monday, October 18, 2010

Android Eclipse unable to replay mock GPX file

How exasperating it can be to go through the ropes of learning a new technology. This
post is an account of how after wasting several hours of being unable to replay a mock GPX or KML file through the Android emulator, I finally found a solution on an online forum, which I am re-posting here for others to benefit from. While this post helped me load a mock GPX file, I still haven't found a way to load a mock KML file yet. DDMS continues to crash while loading KML file while when I go through Eclipse (Window, Show View, Other, Emulator Control), nothing happens. Anyways, here is what you need to do to be able to replay a GPX file:


"It seems that DDMS only supports GPX 1.1 files. GPX 1.0 seems deprecated and the NS URL returns 301: http://www.topografix.com/GPX/1/0
Files with GPX 1.0 won't load in DDMS, but GPX 1.1 files will load fine. The workaround consists of changing the schema URL in the root node: From: http://www.topografix.com/GPX/1/0
" xsi:schemaLocation="http://www.topografix.com/GPX/1/0
http://www.topografix.com/GPX/1/0/gpx.xsd
"> To: http://www.topografix.com/GPX/1/1
" xsi:schemaLocation="http://www.topografix.com/GPX/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd
">

No comments:

Post a Comment