<?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: Problems with using MapView.setMapOptions() or MapView.centerAndZoom() in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167747#M1152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!&amp;nbsp; If this resolved your question, would you kindly mark my answer as the correct one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 12:15:43 GMT</pubDate>
    <dc:creator>AlexanderNohe1</dc:creator>
    <dc:date>2016-07-28T12:15:43Z</dc:date>
    <item>
      <title>Problems with using MapView.setMapOptions() or MapView.centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167744#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo everybody,&lt;/P&gt;&lt;P&gt;i just made some Tutorials with the Esri Android API including the &lt;SPAN&gt;"&lt;SPAN&gt;Use ArcGIS basemaps" and everything worked fine. Now I want to implement a MapView into my own App and there are some problems with it:&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I have done:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I declared the MapView in my XML-Layout File and refer to it per "R.id". In my java-File Irefer to it and set some additional parameters like &lt;SPAN style="color: #808080; font-style: italic;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;mMapView.setEsriLogoVisible(true);" etc. and everything works fine until I reach the point where I want to change the initial View of the Map dynamically. So I tried ".setMapOptions" as well as ".centerAndZoom" nothing works here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I tried:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I remembered, that it was working fine in the Tutorial so I tried a few things out and saw, that the View changed if I wait a few seconds after initializing the MapView in java code. I created a timer and it worked. Also with a Button it worked fine. But if I try it directly after the initialisation it wont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that i tried to use the "OnStatusChangedListener" because I thougt it might work if the Map will be completely initialized, but here happens nothing as well. Tha map just appears at the initial point declared in the xml file. If I delete the initial coordinates in my Layout-File the hole MapView won't beinitialized (referring to the Callback).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main question short:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How do I know, when I can use MapView.setMapOptions to change the initial center and appearence of the Map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.java:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;MissionControlActivity &lt;SPAN style="color: #000080; font-weight: bold;"&gt;extends &lt;/SPAN&gt;AppCompatActivity{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private &lt;/SPAN&gt;MapView &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;MapOptions &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapOptionsSat &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;MapOptions(MapType.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;SATELLITE&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;43.971873&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;6.161288&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;9&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void &lt;/SPAN&gt;onCreate(Bundle savedInstanceState) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super&lt;/SPAN&gt;.onCreate(savedInstanceState);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;activity_mission_control&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initUI();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void &lt;/SPAN&gt;initUI(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; font-style: italic;"&gt;esriMapView&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView&lt;/SPAN&gt;.enableWrapAround(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView&lt;/SPAN&gt;.setAllowRotationByPinch(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView&lt;/SPAN&gt;.setMapOptions(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapOptionsSat&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This here doesn't work&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.xml:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xml version=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;encoding=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"utf-8"&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.android.com%2Fapk%2Fres%2Fandroid" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;custom&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.android.com%2Fapk%2Fres-auto" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res-auto&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"fill_parent"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"fill_parent"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;com.esri.android.map.MapView&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/esriMapView"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"fill_parent"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"fill_parent"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;mapoptions.MapType=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Topo"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;mapoptions.ZoomLevel=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"13"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;mapoptions.center=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"33.666354, -117.903557"&lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167744#M1149</guid>
      <dc:creator>DanielGailer</dc:creator>
      <dc:date>2016-07-27T13:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with using MapView.setMapOptions() or MapView.centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167745#M1150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/222980" target="_blank"&gt;Daniel Gailer&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this working by listening for the status changed to have completed doing the following in my MainActivity.java:&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: #cc7832;"&gt;package &lt;/SPAN&gt;com.arcgis.androidsupportcases.geonetcenterandzoom&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;android.support.v7.app.AppCompatActivity&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;android.os.Bundle&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.MapOptions&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.MapView&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.event.OnStatusChangedListener&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public class &lt;/SPAN&gt;MainActivity &lt;SPAN style="color: #cc7832;"&gt;extends &lt;/SPAN&gt;AppCompatActivity {

&amp;nbsp; MapView &lt;SPAN style="color: #9876aa;"&gt;mMapView &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;null;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; private &lt;/SPAN&gt;MapOptions &lt;SPAN style="color: #9876aa;"&gt;mMapOptionsSat &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;MapOptions(MapOptions.MapType.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;SATELLITE&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;43.971873&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;6.161288&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;9&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onCreate&lt;/SPAN&gt;(Bundle savedInstanceState) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;setContentView(R.layout.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;activity_main&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;initUI()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;}

&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;private void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;initUI&lt;/SPAN&gt;(){
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;mMapView &lt;/SPAN&gt;= (MapView) findViewById(R.id.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;esriMapView&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.setOnStatusChangedListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;OnStatusChangedListener() {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onStatusChanged&lt;/SPAN&gt;(Object o&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;STATUS status) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if&lt;/SPAN&gt;(status == STATUS.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;INITIALIZED&lt;/SPAN&gt;) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.enableWrapAround(&lt;SPAN style="color: #cc7832;"&gt;true&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.setAllowRotationByPinch(&lt;SPAN style="color: #cc7832;"&gt;true&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.setMapOptions(&lt;SPAN style="color: #9876aa;"&gt;mMapOptionsSat&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;//This here doesn't work
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; }
&amp;nbsp; })&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;}
}&lt;/PRE&gt;&lt;P&gt;What did your onStatusChanged listener look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167745#M1150</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2021-12-11T08:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with using MapView.setMapOptions() or MapView.centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167746#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: Thanks for the fast answer!&lt;/P&gt;&lt;P&gt;I actually tried a bit more and thaught about it, why it works fine with your code and not with mine. I had the exact same callback as you with one exeption: I had implemented the Callback out of the sample code of esri and there is the if-condition like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN class="pl-c1"&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;STATUS&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;INITIALIZED&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="pl-k"&gt;==&lt;/SPAN&gt; status) {...}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing I changed now, was the order to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(status ==&lt;SPAN class="pl-c1"&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;STATUS&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;INITIALIZED&lt;/SPAN&gt;&lt;/SPAN&gt;) {...}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have absolutely no idea why that should make a difference, but now it works. Really strange! But thanks anyways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167746#M1151</guid>
      <dc:creator>DanielGailer</dc:creator>
      <dc:date>2016-07-28T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with using MapView.setMapOptions() or MapView.centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167747#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!&amp;nbsp; If this resolved your question, would you kindly mark my answer as the correct one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problems-with-using-mapview-setmapoptions-or/m-p/167747#M1152</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-07-28T12:15:43Z</dc:date>
    </item>
  </channel>
</rss>

