<?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 services display incorrectly in the current location arcgis android sdk 100.5 in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573427#M3905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Could you try to set your map using the well-know id, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;//&lt;A href="https://developers.arcgis.com/rest/services-reference/geographic-coordinate-systems.htm"&gt;https://developers.arcgis.com/rest/services-reference/geographic-coordinate-systems.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 16px;"&gt;map &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; border: 0px; font-weight: bold; font-size: 16px;"&gt;new &lt;/SPAN&gt;ArcGISMap(SpatialReference.create(&lt;STRONG&gt;4756&lt;/STRONG&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. What type of layer the usaLayer is?&amp;nbsp; is it possible to share it?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2019 00:44:51 GMT</pubDate>
    <dc:creator>ChanganShi</dc:creator>
    <dc:date>2019-07-24T00:44:51Z</dc:date>
    <item>
      <title>location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573424#M3902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;location services deviate about 300m from the current location;&lt;/P&gt;&lt;P&gt;my custom&amp;nbsp;&lt;STRONG style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Spatial Reference (&lt;/STRONG&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;wkString&lt;/SPAN&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Spatial Reference:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;PROJCS["VN-2000",GEOGCS["GCS_VN_2000",DATUM["D_VN_2000",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",107.75],PARAMETER["Scale_Factor",0.9999],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]],VERTCS["Hon_Dau_1992",VDATUM["Hon_Dau_1992"],PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],UNIT["Meter",1.0]]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;   &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISMap(SpatialReference.&lt;SPAN&gt;create&lt;/SPAN&gt;(getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;wkString&lt;/SPAN&gt;)));
       &lt;SPAN style="color: #808080;"&gt;// Viewpoint viewPoint1 = new Viewpoint(new Point(433214.603,1211184.161, map.getSpatialReference()), 1000000);
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;       // map.setInitialViewpoint(viewPoint1);
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;       // map = new ArcGISMap();
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getBasemap().getBaseLayers().add(usaLayer);
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getBasemap().getBaseLayers().add(usaLayerCached);
        &lt;SPAN style="color: #808080;"&gt;//map.getBasemap().getBaseLayers().add(FeatureLayerVungCay);
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView &lt;/SPAN&gt;= (MapView) findViewById(R.id.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;);
        BackgroundGrid backgroundGrid = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;BackgroundGrid(Color.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;WHITE&lt;/SPAN&gt;,Color.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;WHITE&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;2&lt;/SPAN&gt;);
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setBackgroundGrid(backgroundGrid);
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setMap(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;);
&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;      &lt;/SPAN&gt;Viewpoint viewPoint = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Viewpoint(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Point(&lt;SPAN style="color: #0000ff;"&gt;433214.603&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;1211184.161&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getSpatialReference()), &lt;SPAN style="color: #0000ff;"&gt;1000000&lt;/SPAN&gt;);
       &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setViewpoint(viewPoint);
      &lt;SPAN style="color: #808080;"&gt;// map.setInitialViewpoint(view);
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;      
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setAttributionTextVisible(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.getLocationDisplay();
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.addDataSourceStatusChangedListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;LocationDisplay.DataSourceStatusChangedListener() {
            &lt;SPAN style="color: #808000;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onStatusChanged(LocationDisplay.DataSourceStatusChangedEvent dataSourceStatusChangedEvent) {

                &lt;SPAN style="color: #808080;"&gt;// If LocationDisplay started OK, then continue.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(dataSourceStatusChangedEvent.isStarted())
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return&lt;/SPAN&gt;;

                &lt;SPAN style="color: #808080;"&gt;// No error is reported, then continue.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(dataSourceStatusChangedEvent.getError() == &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;)
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return&lt;/SPAN&gt;;
                &lt;SPAN style="color: #808080;"&gt;// If an error is found, handle the failure to start.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                // Check permissions to see if failure may be due to lack of permissions.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;boolean &lt;/SPAN&gt;permissionCheck1 = ContextCompat.&lt;SPAN&gt;checkSelfPermission&lt;/SPAN&gt;(MainActivity.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;reqPermissions&lt;/SPAN&gt;[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;]) ==
                        PackageManager.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PERMISSION_GRANTED&lt;/SPAN&gt;;
                &lt;SPAN style="color: #000080; font-weight: bold;"&gt;boolean &lt;/SPAN&gt;permissionCheck2 = ContextCompat.&lt;SPAN&gt;checkSelfPermission&lt;/SPAN&gt;(MainActivity.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;reqPermissions&lt;/SPAN&gt;[&lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;]) ==
                        PackageManager.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;PERMISSION_GRANTED&lt;/SPAN&gt;;

                &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!(permissionCheck1 &amp;amp;&amp;amp; permissionCheck2)) {
                    &lt;SPAN style="color: #808080;"&gt;// If permissions are not already granted, request permission from the user.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                    &lt;/SPAN&gt;ActivityCompat.&lt;SPAN&gt;requestPermissions&lt;/SPAN&gt;(MainActivity.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;reqPermissions&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;requestCode&lt;/SPAN&gt;);
                } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else &lt;/SPAN&gt;{
                    &lt;SPAN style="color: #808080;"&gt;// Report other unknown failure types to the user - for example, location services may not
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                    // be enabled on the device.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                    &lt;/SPAN&gt;String message = String.&lt;SPAN&gt;format&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Error in DataSourceStatusChangedListener: %s"&lt;/SPAN&gt;, dataSourceStatusChangedEvent
                            .getSource().getLocationDataSource().getError().getMessage());
                    Toast.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(MainActivity.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, message, Toast.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;LENGTH_LONG&lt;/SPAN&gt;).show();

                    &lt;SPAN style="color: #808080;"&gt;// Update UI to reflect that the location display did not actually start
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mSpinner&lt;/SPAN&gt;.setSelection(&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);
                }
            }
        });
&lt;SPAN style="color: #808080;"&gt;// Populate the list for the Location display options for the spinner's Adapter
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;ArrayList&amp;lt;ItemData&amp;gt; list = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArrayList&amp;lt;&amp;gt;();
        list.add(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ItemData(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, R.mipmap.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;locationdisplaydisabled&lt;/SPAN&gt;));
        list.add(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ItemData(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, R.mipmap.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;locationdisplayon&lt;/SPAN&gt;));
        list.add(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ItemData(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, R.mipmap.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;locationdisplayrecenter&lt;/SPAN&gt;));
        list.add(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ItemData(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, R.mipmap.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;locationdisplaynavigation&lt;/SPAN&gt;));
        list.add(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ItemData(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, R.mipmap.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;locationdisplayheading&lt;/SPAN&gt;));
        SpinnerAdapter adapter = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;SpinnerAdapter(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, R.layout.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;spinner_layout&lt;/SPAN&gt;, R.id.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;txt&lt;/SPAN&gt;, list);
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mSpinner&lt;/SPAN&gt;.setAdapter(adapter);
        &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mSpinner&lt;/SPAN&gt;.setOnItemSelectedListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;AdapterView.OnItemSelectedListener() {
            &lt;SPAN style="color: #808000;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onItemSelected(AdapterView&amp;lt;?&amp;gt; parent, View view, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;position, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;long &lt;/SPAN&gt;id) {

                &lt;SPAN style="color: #000080; font-weight: bold;"&gt;switch &lt;/SPAN&gt;(position) {
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;:
                        &lt;SPAN style="color: #808080;"&gt;// Stop Location Display
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.isStarted())
                            &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.stop();
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;:
                        &lt;SPAN style="color: #808080;"&gt;// Start Location Display
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.isStarted())
                            &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.startAsync();
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;2&lt;/SPAN&gt;:
                        &lt;SPAN style="color: #808080;"&gt;// Re-Center MapView on Location
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // AutoPanMode - Default: In this mode, the MapView attempts to keep the location symbol on-screen by
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // re-centering the location symbol when the symbol moves outside a "wander extent". The location symbol
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // may move freely within the wander extent, but as soon as the symbol exits the wander extent, the MapView
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // re-centers the map on the symbol.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.setAutoPanMode(LocationDisplay.AutoPanMode.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;RECENTER&lt;/SPAN&gt;);
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.isStarted())
                            &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.startAsync();
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;3&lt;/SPAN&gt;:
                        &lt;SPAN style="color: #808080;"&gt;// Start Navigation Mode
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // This mode is best suited for in-vehicle navigation.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.setAutoPanMode(LocationDisplay.AutoPanMode.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;NAVIGATION&lt;/SPAN&gt;);
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.isStarted())
                            &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.startAsync();
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;
                    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;4&lt;/SPAN&gt;:
                        &lt;SPAN style="color: #808080;"&gt;// Start Compass Mode
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        // This mode is better suited for waypoint navigation when the user is walking.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.setAutoPanMode(LocationDisplay.AutoPanMode.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;COMPASS_NAVIGATION&lt;/SPAN&gt;);
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.isStarted())
                            &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mLocationDisplay&lt;/SPAN&gt;.startAsync();
                        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;
                }
            }
            &lt;SPAN style="color: #808000;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onNothingSelected(AdapterView&amp;lt;?&amp;gt; parent) {
            }
        });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573424#M3902</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2021-12-12T00:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573425#M3903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is still under investigation,&amp;nbsp; the default location data precision is dependent upon the network provider of your device.&amp;nbsp; Questions : is the&amp;nbsp;&lt;STRONG&gt;usaLayer&amp;nbsp;&lt;/STRONG&gt;in the same the spatial reference as the wkString defined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 00:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573425#M3903</guid>
      <dc:creator>ChanganShi</dc:creator>
      <dc:date>2019-07-23T00:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573426#M3904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;usaLayer&amp;nbsp; and&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;usaLayerCached&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;in the same the spatial reference as the wkString defined. All layer in app same&amp;nbsp;&lt;SPAN&gt;spatial reference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 06:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573426#M3904</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2019-07-23T06:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573427#M3905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Could you try to set your map using the well-know id, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;//&lt;A href="https://developers.arcgis.com/rest/services-reference/geographic-coordinate-systems.htm"&gt;https://developers.arcgis.com/rest/services-reference/geographic-coordinate-systems.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 16px;"&gt;map &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; border: 0px; font-weight: bold; font-size: 16px;"&gt;new &lt;/SPAN&gt;ArcGISMap(SpatialReference.create(&lt;STRONG&gt;4756&lt;/STRONG&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. What type of layer the usaLayer is?&amp;nbsp; is it possible to share it?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 00:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573427#M3905</guid>
      <dc:creator>ChanganShi</dc:creator>
      <dc:date>2019-07-24T00:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573428#M3906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;usaLayer&lt;SPAN&gt;&amp;nbsp;is type&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;TiledLayer(cached layer)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;ArcGISTiledLayer &lt;SPAN style="color: #3d3d3d; background-color: #ffffff;"&gt;usaLayer&amp;nbsp;&lt;/SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;new&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; ArcGISTiledLayer(getResources().getString(R.string.mycustom_base_map));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; border: 0px; font-weight: inherit; font-size: 16px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 16px;"&gt;map&lt;/SPAN&gt;.getBasemap().getBaseLayers().add(usaLayer);&lt;/P&gt;&lt;P&gt;&lt;A href="http://115.79.20.1:6080/arcgis/rest/services/DUAN_NN/Maplocal_NN/MapServer"&gt;http://115.79.20.1:6080/arcgis/rest/services/DUAN_NN/Maplocal_NN/MapServer&lt;/A&gt;(&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;mycustom_&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;base_map&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 02:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573428#M3906</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2019-07-24T02:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: location services display incorrectly in the current location arcgis android sdk 100.5</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573429#M3907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Try to repo your issue, could you please provide the coordinates,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. "&lt;STRONG&gt;correct location&lt;/STRONG&gt;", "&lt;STRONG&gt;incorrect location&lt;/STRONG&gt;" in the &lt;STRONG&gt;map spatial reference&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. "&lt;STRONG&gt;incorrect location&lt;/STRONG&gt;" from the input, you can use the location changed listener:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #9876aa;"&gt;mLocationDisplay&lt;/SPAN&gt;.&lt;SPAN style="color: #cc7833;"&gt;addLocationChangedListener&lt;/SPAN&gt;(location -&amp;gt; {
  Point point1 = location.&lt;SPAN style="color: #cc7833;"&gt;getLocation&lt;/SPAN&gt;().&lt;SPAN style="color: #cc7833;"&gt;getPosition&lt;/SPAN&gt;();
  Point prjPoint = (Point) GeometryEngine.&lt;SPAN style="color: #ffc66d;"&gt;project&lt;/SPAN&gt;(point1, &lt;SPAN style="color: #b389c5;"&gt;mMap&lt;/SPAN&gt;.&lt;SPAN style="color: #cc7833;"&gt;getSpatialReference&lt;/SPAN&gt;());
  Log.&lt;SPAN style="color: #ffc66d;"&gt;d&lt;/SPAN&gt;(&lt;SPAN style="color: #9876aa;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #6a8759;"&gt;"location position--&amp;gt;" &lt;/SPAN&gt;+ point1.&lt;SPAN style="color: #cc7833;"&gt;toJson&lt;/SPAN&gt;());
  Log.&lt;SPAN style="color: #ffc66d;"&gt;d&lt;/SPAN&gt;(&lt;SPAN style="color: #9876aa;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #6a8759;"&gt;"Projected point--&amp;gt;" &lt;/SPAN&gt;+ prjPoint.&lt;SPAN style="color: #cc7833;"&gt;toJson&lt;/SPAN&gt;());
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-services-display-incorrectly-in-the/m-p/573429#M3907</guid>
      <dc:creator>ChanganShi</dc:creator>
      <dc:date>2021-12-12T00:41:01Z</dc:date>
    </item>
  </channel>
</rss>

