<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use GPX route to simulate a route with android sdk? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-use-gpx-route-to-simulate-a-route-with/m-p/1036242#M5448</link>
    <description>&lt;P&gt;You are correct Android doesn't have the GPXLocationDataSource class yet, but there is an easy way of achieving the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/GPS_Exchange_Format" target="_self"&gt;GPX&lt;/A&gt;&amp;nbsp; file is just an XML file, so if you can open it to get your coordinates you can pass these into a SimulatedDataSource which will show the positions on your LocationDisplay.&lt;/P&gt;&lt;P&gt;There isn't a specific Android sample for using the SimulatedLocationSource class, but you can take a look at the JavaFX (ArcGIS Runtime for Java) sample and you will see how to use it.&amp;nbsp; Under the covers the Android and Java APIs share quite a lot of the same codebase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/9b611cf5ed977b5c7b33a275d6c06a19838e7b38/map_view/show-location-history" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-java/tree/9b611cf5ed977b5c7b33a275d6c06a19838e7b38/map_view/show-location-history&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 14:48:17 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2021-03-15T14:48:17Z</dc:date>
    <item>
      <title>How to use GPX route to simulate a route with android sdk?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-use-gpx-route-to-simulate-a-route-with/m-p/1036092#M5447</link>
      <description>&lt;P&gt;Can I create a simulated route with a GPX file in android like you can with the IOS SDK? I don't see a GPXLocationDataSource like what is in ios SDK.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 19:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-use-gpx-route-to-simulate-a-route-with/m-p/1036092#M5447</guid>
      <dc:creator>JayBowman</dc:creator>
      <dc:date>2021-03-12T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPX route to simulate a route with android sdk?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-use-gpx-route-to-simulate-a-route-with/m-p/1036242#M5448</link>
      <description>&lt;P&gt;You are correct Android doesn't have the GPXLocationDataSource class yet, but there is an easy way of achieving the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/GPS_Exchange_Format" target="_self"&gt;GPX&lt;/A&gt;&amp;nbsp; file is just an XML file, so if you can open it to get your coordinates you can pass these into a SimulatedDataSource which will show the positions on your LocationDisplay.&lt;/P&gt;&lt;P&gt;There isn't a specific Android sample for using the SimulatedLocationSource class, but you can take a look at the JavaFX (ArcGIS Runtime for Java) sample and you will see how to use it.&amp;nbsp; Under the covers the Android and Java APIs share quite a lot of the same codebase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/9b611cf5ed977b5c7b33a275d6c06a19838e7b38/map_view/show-location-history" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-java/tree/9b611cf5ed977b5c7b33a275d6c06a19838e7b38/map_view/show-location-history&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-use-gpx-route-to-simulate-a-route-with/m-p/1036242#M5448</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-03-15T14:48:17Z</dc:date>
    </item>
  </channel>
</rss>

