<?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 map.pause() stopping LocationService with 10.2 SDK in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-pause-stopping-locationservice-with-10-2-sdk/m-p/337374#M2207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app in which I want the LocationService to remain running even if onPause() is called.&amp;nbsp; I have a service running in the foreground with a handler &amp;amp; broadcast receiver that is bound to an activity.&amp;nbsp; The service/activity work together to updates a trackline at an X time interval, both on the map &amp;amp; in a SQLLITE database on the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I call map.pause() in the onPause() method, the locationservice stops listening for location change until I unpause the map again in onResume().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I initialize the LocationService using map.getlocationservice(), so it makes sense that it would stop the LocationService, but I don't want this to happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a work around for this?&amp;nbsp; Or perhaps something I'm not understanding correctly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2013 15:10:49 GMT</pubDate>
    <dc:creator>Town_ofSnowflake</dc:creator>
    <dc:date>2013-12-20T15:10:49Z</dc:date>
    <item>
      <title>map.pause() stopping LocationService with 10.2 SDK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-pause-stopping-locationservice-with-10-2-sdk/m-p/337374#M2207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app in which I want the LocationService to remain running even if onPause() is called.&amp;nbsp; I have a service running in the foreground with a handler &amp;amp; broadcast receiver that is bound to an activity.&amp;nbsp; The service/activity work together to updates a trackline at an X time interval, both on the map &amp;amp; in a SQLLITE database on the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I call map.pause() in the onPause() method, the locationservice stops listening for location change until I unpause the map again in onResume().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I initialize the LocationService using map.getlocationservice(), so it makes sense that it would stop the LocationService, but I don't want this to happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a work around for this?&amp;nbsp; Or perhaps something I'm not understanding correctly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 15:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-pause-stopping-locationservice-with-10-2-sdk/m-p/337374#M2207</guid>
      <dc:creator>Town_ofSnowflake</dc:creator>
      <dc:date>2013-12-20T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: map.pause() stopping LocationService with 10.2 SDK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-pause-stopping-locationservice-with-10-2-sdk/m-p/337375#M2208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was creating my LocationListener through the LocationService, which came from the map object.&amp;nbsp; Of course the LocationListener would be pausing when I pause the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution: I moved my LocationListener to the Service &amp;amp; am now broadcasting location updates back to the map activity.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2013 11:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-pause-stopping-locationservice-with-10-2-sdk/m-p/337375#M2208</guid>
      <dc:creator>Town_ofSnowflake</dc:creator>
      <dc:date>2013-12-21T11:55:32Z</dc:date>
    </item>
  </channel>
</rss>

