<?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 LocationDisplay not compatible with Android Location in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/locationdisplay-not-compatible-with-android/m-p/176405#M1211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;Am noticing that with the 100.4 LocationDisplay there is no longer a way to retrieve the number of satellites without setting up a separate Android location listener.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;10.2.9 returns an Android Location&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;Location location= mMapView.getLocationDisplayManager().getLocation();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;100.4 returns and ESRI location&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;com.esri.arcgisruntime.location.LocationDataSource.Location wgsLocation = mMapView.getLocationDisplay().getLocation();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;The problem is that I want to get the number of satellites which the ESRI location method does not appear to support...The code below is run on a timer to update the number of satellites from the getLocation code mentioned above.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;For example in 10.2.9..&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Bundle sats = location.getExtras();
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;x = sats.getInt(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"satellites"&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;Yes I could have an Android location listener and and ESRI location listener but this seems awfully redundant... &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:08:54 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T16:08:54Z</dc:date>
    <item>
      <title>LocationDisplay not compatible with Android Location</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/locationdisplay-not-compatible-with-android/m-p/176405#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;Am noticing that with the 100.4 LocationDisplay there is no longer a way to retrieve the number of satellites without setting up a separate Android location listener.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;10.2.9 returns an Android Location&lt;/DIV&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;Location location= mMapView.getLocationDisplayManager().getLocation();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;100.4 returns and ESRI location&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;com.esri.arcgisruntime.location.LocationDataSource.Location wgsLocation = mMapView.getLocationDisplay().getLocation();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;The problem is that I want to get the number of satellites which the ESRI location method does not appear to support...The code below is run on a timer to update the number of satellites from the getLocation code mentioned above.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;For example in 10.2.9..&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Bundle sats = location.getExtras();
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;x = sats.getInt(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"satellites"&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-size: small;"&gt;Yes I could have an Android location listener and and ESRI location listener but this seems awfully redundant... &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/locationdisplay-not-compatible-with-android/m-p/176405#M1211</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:08:54Z</dc:date>
    </item>
  </channel>
</rss>

