I'm trying to migrate from the old SDK to 100.5 and am having trouble with the simplest of things: drawing a map and showing the device location. I can get the "Display Device Location" example to run, but as soon as I remove the Spinner and try to start up the app with location display started, I get the blue dot showing the current location, but when I move, the dot doesn't. It knows I'm moving because the directional arrow in the middle of the blue dot shows the correct heading, but the dot itself doesn't move. Here's what the onCreate method looks like within MainActivity. I've also overridden onRequestPermissionsResult like the example.
@Override
<SPAN class="keyword token">protected</SPAN> <SPAN class="keyword token">void</SPAN> <SPAN class="token function">onCreate</SPAN><SPAN class="punctuation token">(</SPAN>Bundle savedInstanceState<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">super</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">onCreate</SPAN><SPAN class="punctuation token">(</SPAN>savedInstanceState<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="token function">setContentView</SPAN><SPAN class="punctuation token">(</SPAN>R<SPAN class="punctuation token">.</SPAN>layout<SPAN class="punctuation token">.</SPAN>activity_main<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="operator token">!</SPAN><SPAN class="punctuation token">(</SPAN>ContextCompat<SPAN class="punctuation token">.</SPAN><SPAN class="token function">checkSelfPermission</SPAN><SPAN class="punctuation token">(</SPAN>MainActivity<SPAN class="punctuation token">.</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> reqPermissions<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">==</SPAN> PackageManager<SPAN class="punctuation token">.</SPAN>PERMISSION_GRANTED <SPAN class="operator token">&&</SPAN>
ContextCompat<SPAN class="punctuation token">.</SPAN><SPAN class="token function">checkSelfPermission</SPAN><SPAN class="punctuation token">(</SPAN>MainActivity<SPAN class="punctuation token">.</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> reqPermissions<SPAN class="punctuation token">[</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">==</SPAN> PackageManager<SPAN class="punctuation token">.</SPAN>PERMISSION_GRANTED<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">int</SPAN> requestCode <SPAN class="operator token">=</SPAN> <SPAN class="number token">2</SPAN><SPAN class="punctuation token">;</SPAN>
ActivityCompat<SPAN class="punctuation token">.</SPAN><SPAN class="token function">requestPermissions</SPAN><SPAN class="punctuation token">(</SPAN>MainActivity<SPAN class="punctuation token">.</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> reqPermissions<SPAN class="punctuation token">,</SPAN> requestCode<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
mMapView <SPAN class="operator token">=</SPAN> <SPAN class="token function">findViewById</SPAN><SPAN class="punctuation token">(</SPAN>R<SPAN class="punctuation token">.</SPAN>id<SPAN class="punctuation token">.</SPAN>mapView<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">final</SPAN> ArcGISMap map <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ArcGISMap</SPAN><SPAN class="punctuation token">(</SPAN>Basemap<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createTopographic</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
mMapView<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setMap</SPAN><SPAN class="punctuation token">(</SPAN>map<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
mLocationDisplay <SPAN class="operator token">=</SPAN> mMapView<SPAN class="punctuation token">.</SPAN><SPAN class="token function">getLocationDisplay</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
mLocationDisplay<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setAutoPanMode</SPAN><SPAN class="punctuation token">(</SPAN>LocationDisplay<SPAN class="punctuation token">.</SPAN>AutoPanMode<SPAN class="punctuation token">.</SPAN>RECENTER<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
mLocationDisplay<SPAN class="punctuation token">.</SPAN><SPAN class="token function">startAsync</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>What am I missing? Does the startAsync() need to be somewhere other than onCreate?