<?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: Making the app responsive to location change in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19532#M131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you might want to use LocationDisplayManager.setAutoPanMode(AutoPanMode.COMPASS) - "&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Centers the map at the current location, rotates the map to align with the direction in which the device is currently, and shows the location symbol.&lt;/SPAN&gt;" - &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/LocationDisplayManager.AutoPanMode.html" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/LocationDisplayManager.AutoPanMode.html"&gt;LocationDisplayManager.AutoPanMode | ArcGIS Android 10.2.5 API&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 09:01:47 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2015-04-07T09:01:47Z</dc:date>
    <item>
      <title>Making the app responsive to location change</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19529#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing an app that finds my location using location services, when my location is defined, it is represented on the map by point. How can I make the map responsive to the change in my location, such that the map extent keeps my location in the center of the map, and when I rotate the device (change the device’s orientation), the map is rotated as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated, &lt;/P&gt;&lt;P&gt;Hani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 09:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19529#M128</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2015-03-14T09:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Making the app responsive to location change</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19530#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;such that the map extent keeps my location in the center of the map&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I this LocationDisplayManager keeps track of this as you said your are using it already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;when I rotate the device (change the device’s orientation), the map is rotated as well&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mMapView.setRotationAngle(); function accepts degree as double.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the degree consult following sources:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/15155985/android-compass-bearing" title="http://stackoverflow.com/questions/15155985/android-compass-bearing"&gt;magnetometer - Android Compass Bearing - Stack Overflow &lt;/A&gt; Read &lt;A href="http://stackoverflow.com/users/2412582/prashant" style="font-size: 13px; color: #0c65a5; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;" title="http://stackoverflow.com/users/2412582/prashant"&gt;prashant&lt;/A&gt;​ answer.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/users/1124833/mark-thorogood" style="font-size: 13px; color: #0c65a5; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Mark Thorogood&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;at &lt;A href="http://stackoverflow.com/questions/3514808/how-to-get-android-compass-reading" title="http://stackoverflow.com/questions/3514808/how-to-get-android-compass-reading"&gt;How to get Android compass reading? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;A href="http://www.javacodegeeks.com/2013/09/android-compass-code-example.html" title="http://www.javacodegeeks.com/2013/09/android-compass-code-example.html"&gt;Android Compass Code Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;A href="https://www.codeofaninja.com/2013/08/android-compass-code-example.html" title="https://www.codeofaninja.com/2013/08/android-compass-code-example.html"&gt;https://www.codeofaninja.com/2013/08/android-compass-code-example.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. &lt;A href="http://www.codingforandroid.com/2011/01/using-orientation-sensors-simple.html" title="http://www.codingforandroid.com/2011/01/using-orientation-sensors-simple.html"&gt;Coding for Android: Using orientation sensors: Simple Compass sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 04:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19530#M129</guid>
      <dc:creator>omega_cancer</dc:creator>
      <dc:date>2015-03-19T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making the app responsive to location change</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19531#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the helpful resources Abdul Razzaq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2015 21:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19531#M130</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2015-04-05T21:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Making the app responsive to location change</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19532#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you might want to use LocationDisplayManager.setAutoPanMode(AutoPanMode.COMPASS) - "&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Centers the map at the current location, rotates the map to align with the direction in which the device is currently, and shows the location symbol.&lt;/SPAN&gt;" - &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/LocationDisplayManager.AutoPanMode.html" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/LocationDisplayManager.AutoPanMode.html"&gt;LocationDisplayManager.AutoPanMode | ArcGIS Android 10.2.5 API&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 09:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/making-the-app-responsive-to-location-change/m-p/19532#M131</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2015-04-07T09:01:47Z</dc:date>
    </item>
  </channel>
</rss>

