<?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: Location Service does not restart in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203051#M1352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I almost forgot. Here's a blog post specifically about shutting down Android GPS: &lt;/SPAN&gt;&lt;A href="http://www.andygup.net/3-steps-for-shutting-off-gps-and-locationmanager-on-android/"&gt;http://www.andygup.net/3-steps-for-shutting-off-gps-and-locationmanager-on-android/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 14:18:35 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2013-06-25T14:18:35Z</dc:date>
    <item>
      <title>Location Service does not restart</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203049#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a very weird problem with the Esri location services class. I am testing on two galaxy s3s. I have a button in my application to toggle the location service on/off. Initially when I load the map, the application acquires my current location without any problem. But sometimes, when I turn OFF the location service and then&amp;nbsp; turn it back ON , the current location icon appears but remains 'gray' (the onLocationChanged method in the locationChangedListener never gets called, hence the locationservice does not start properly). This issue occurs randomly both my phones from time to time. Has any faced this problem? Can any one from Esri comment on the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 00:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203049#M1350</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2013-06-16T00:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Location Service does not restart</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203050#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the delayed response. I've seen this happen in instances where there were multiple LocationService/LocationManager instances created. LocationManager can only have a single instance running or you won't be able to shut it off and hence turn it back on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a link to the EsriQuickStart which shows an advanced way of managing, starting and stopping location services: &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/quickstart-map-android/blob/master/EsriQuickStart/src/com/esri/quickstart/EsriQuickStart.java"&gt;https://github.com/Esri/quickstart-map-android/blob/master/EsriQuickStart/src/com/esri/quickstart/EsriQuickStart.java&lt;/A&gt;&lt;SPAN&gt;. Look at stopLocationService() starting at line 656, and delayedStartLocationService() starting at line 753. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also built an Android GPS Tool where you can test various scenarios, especially if you are having issues and need to compare/contrast settings: &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/android-gps-test-tool"&gt;https://github.com/Esri/android-gps-test-tool&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203050#M1351</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2013-06-25T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Location Service does not restart</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203051#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I almost forgot. Here's a blog post specifically about shutting down Android GPS: &lt;/SPAN&gt;&lt;A href="http://www.andygup.net/3-steps-for-shutting-off-gps-and-locationmanager-on-android/"&gt;http://www.andygup.net/3-steps-for-shutting-off-gps-and-locationmanager-on-android/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-service-does-not-restart/m-p/203051#M1352</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2013-06-25T14:18:35Z</dc:date>
    </item>
  </channel>
</rss>

