<?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 MapFragment ArcGis - The specified child already has a parent in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/mapfragment-arcgis-the-specified-child-already-has/m-p/542832#M3657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em;"&gt;I'm trying to display a MapView from ArcGis in Android Studio. I'm using Map Fragments for that, I put in the xml the Map and my other UI stuff. Putting the MapView element in the layout file always crashes, so I'm doing it this way (using android studio):&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;my_main_activity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;xml&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;support&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;v4&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;widget&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;DrawerLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; xmlns&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_drawer_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; main content view &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_content_frame"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; navigation drawer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ListView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_left_drawer"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; style&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@style/drawer_listView_style"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"240dp"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;background&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@android:color/darker_gray"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;choiceMode&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"singleChoice"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;divider&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@color/esri_gray"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dividerHeight&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"1px"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;and this is the framgent layout: map_fragment_layout.xml&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;xmlns:android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"@+id/map_fragment_map_container_frame_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;&amp;lt;!-- The map configuration --&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;com.esri.android.map.MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"@+id/map_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"fill_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"fill_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;initExtent&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"-9934033.827 1537316.31 -9933312.043 1537940.728"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;&amp;lt;!-- xmin ymin xmax ymax --&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;/com.esri.android.map.MapView&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;My map fragment class holds every configuration of the MapView:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;@Override&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;public&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;View&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; onCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutInflater&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; inflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; container&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Bundle&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; savedInstanceState&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; inflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;inflate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;R&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map_fragment_layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;container&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Add dynamic layer to MapView (Base)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Retrieve the map and initial extent from XML layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;findViewById&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;R&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map_layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; baseMap &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;baseMapURL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;baseMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;//Creates a dynamic layer using service URL&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; dynamicLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dynamicMapURL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;//Adds layer into the 'MapView'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Set the MapView to allow the user to rotate the map when as part of a pinch gesture.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zoomin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;the function setMapView configures the rest of MapView options:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;final&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; mMapView &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setEsriLogoVisible&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;enableWrapAround&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setAllowRotationByPinch&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Creating an inflater&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mInflater &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutInflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; getActivity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;getSystemService&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Context&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LAYOUT_INFLATER_SERVICE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Setting up the layout params for the searchview and searchresult layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mlayoutParams &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;MATCH_PARENT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;WRAP_CONTENT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LEFT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;TOP&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mlayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setMargins&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LEFT_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; TOP_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;RIGHT_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; BOTTOM_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// set MapView into the activity layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Displaying the searchbox layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; showSearchBoxLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;();&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;After debuging this error shows up:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;RuntimeException&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Unable&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; to start activity &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ComponentInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MainActivity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;}:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;IllegalStateException&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; specified child already has a parent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;You&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; must call removeView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; on the child&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'s parent first.&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;s parent first&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addViewInner&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3936&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3786&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3727&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3700&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;313&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;onCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;209&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Fragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;performCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Fragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;2053&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;I've tried removing the the MapView from it's parent before returning from getMapView(), and that still crashes. Any help at all would be appreciated.&lt;/P&gt;&lt;P class="post-taglist" style="margin: 0 0 10px; font-size: 13px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A class="post-tag js-gps-track" href="http://gis.stackexchange.com/questions/tagged/arcgis" rel="tag" style="margin: 2px 2px 2px 0; padding: 0.4em 0.5em; font-size: 11px; color: #696969; text-align: center; background: #f5f5f5;" title="show questions tagged 'arcgis'"&gt;arcgis&lt;/A&gt; &lt;A class="post-tag js-gps-track" href="http://gis.stackexchange.com/questions/tagged/android" rel="tag" style="margin: 2px 2px 2px 0; padding: 0.4em 0.5em; font-size: 11px; color: #696969; text-align: center; background: #f5f5f5;" title="show questions tagged 'android'"&gt;android&lt;/A&gt;&lt;/P&gt;&lt;TABLE class="fw" style="margin: 0 0 4px; border: 0px; font-size: 13px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TD class="vt" style="border: 0px;"&gt;&lt;P class="post-menu" style="padding: 2px 0 0;"&gt;&lt;A class="short-link" href="http://gis.stackexchange.com/q/154386/55188" style="padding: 0 3px 2px; color: #888888;" title="short permalink to this question"&gt;share&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A class="edit-post" href="http://gis.stackexchange.com/posts/154386/edit" style="padding: 0 3px 2px; color: #888888;" title="revise and improve this post"&gt;edit&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A data-delete-prompt="Delete this post?" data-undelete-prompt="Undelete this post?" href="http://gis.stackexchange.com/questions/154386/mapfragment-arcgis-the-specified-child-already-has-a-parent" style="padding: 0 3px 2px; color: #888888;" title="vote to delete this post"&gt;delete&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A class="flag-post-link" data-postid="154386" href="http://gis.stackexchange.com/questions/154386/mapfragment-arcgis-the-specified-child-already-has-a-parent" style="padding: 0 3px 2px; color: #888888;" title="flag this post for serious problems or moderator attention"&gt;flag&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 19:33:31 GMT</pubDate>
    <dc:creator>FernandoUrbina</dc:creator>
    <dc:date>2015-07-14T19:33:31Z</dc:date>
    <item>
      <title>MapFragment ArcGis - The specified child already has a parent</title>
      <link>https://community.esri.com/t5/developers-questions/mapfragment-arcgis-the-specified-child-already-has/m-p/542832#M3657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em;"&gt;I'm trying to display a MapView from ArcGis in Android Studio. I'm using Map Fragments for that, I put in the xml the Map and my other UI stuff. Putting the MapView element in the layout file always crashes, so I'm doing it this way (using android studio):&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;my_main_activity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;xml&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;support&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;v4&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;widget&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;DrawerLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; xmlns&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_drawer_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; main content view &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_content_frame"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; navigation drawer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ListView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@+id/maps_app_activity_left_drawer"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; style&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@style/drawer_listView_style"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"240dp"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout_gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;background&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@android:color/darker_gray"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;choiceMode&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"singleChoice"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;divider&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"@color/esri_gray"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dividerHeight&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"1px"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;and this is the framgent layout: map_fragment_layout.xml&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;xmlns:android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"@+id/map_fragment_map_container_frame_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"match_parent"&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;&amp;lt;!-- The map configuration --&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;com.esri.android.map.MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"@+id/map_layout"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_width&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"fill_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;android:layout_height&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"fill_parent"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #ff0000;"&gt;initExtent&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #0000ff;"&gt;"-9934033.827 1537316.31 -9933312.043 1537940.728"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;&amp;lt;!-- xmin ymin xmax ymax --&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #800000;"&gt;&amp;lt;/com.esri.android.map.MapView&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;My map fragment class holds every configuration of the MapView:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;@Override&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;public&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;View&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; onCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutInflater&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; inflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; container&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Bundle&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; savedInstanceState&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; inflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;inflate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;R&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map_fragment_layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;container&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Add dynamic layer to MapView (Base)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Retrieve the map and initial extent from XML layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;findViewById&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;R&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;id&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map_layout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; baseMap &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;baseMapURL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;baseMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;//Creates a dynamic layer using service URL&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; dynamicLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dynamicMapURL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;//Adds layer into the 'MapView'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Set the MapView to allow the user to rotate the map when as part of a pinch gesture.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zoomin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;the function setMapView configures the rest of MapView options:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;final&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; mMapView &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setEsriLogoVisible&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;enableWrapAround&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setAllowRotationByPinch&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Creating an inflater&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mInflater &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutInflater&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; getActivity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;getSystemService&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Context&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LAYOUT_INFLATER_SERVICE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Setting up the layout params for the searchview and searchresult layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mlayoutParams &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FrameLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;MATCH_PARENT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;LayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;WRAP_CONTENT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LEFT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Gravity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;TOP&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mlayoutParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setMargins&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;LEFT_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; TOP_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;RIGHT_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; BOTTOM_MARGIN_SEARCH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// set MapView into the activity layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; mMapContainer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #808080;"&gt;// Displaying the searchbox layout&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; showSearchBoxLayout&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;();&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;After debuging this error shows up:&lt;/P&gt;&lt;PRE class="prettyprint prettyprinted default" style="padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #393318; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;RuntimeException&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Unable&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; to start activity &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ComponentInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MainActivity&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;}:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;IllegalStateException&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; specified child already has a parent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;You&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; must call removeView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; on the child&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'s parent first.&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;s parent first&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addViewInner&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3936&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3786&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3727&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;view&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ViewGroup&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;3700&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setMapView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;313&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at zero&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;ucamaps&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;onCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapFragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;209&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; at android&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Fragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;performCreateView&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Fragment&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;java&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;2053&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;I've tried removing the the MapView from it's parent before returning from getMapView(), and that still crashes. Any help at all would be appreciated.&lt;/P&gt;&lt;P class="post-taglist" style="margin: 0 0 10px; font-size: 13px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A class="post-tag js-gps-track" href="http://gis.stackexchange.com/questions/tagged/arcgis" rel="tag" style="margin: 2px 2px 2px 0; padding: 0.4em 0.5em; font-size: 11px; color: #696969; text-align: center; background: #f5f5f5;" title="show questions tagged 'arcgis'"&gt;arcgis&lt;/A&gt; &lt;A class="post-tag js-gps-track" href="http://gis.stackexchange.com/questions/tagged/android" rel="tag" style="margin: 2px 2px 2px 0; padding: 0.4em 0.5em; font-size: 11px; color: #696969; text-align: center; background: #f5f5f5;" title="show questions tagged 'android'"&gt;android&lt;/A&gt;&lt;/P&gt;&lt;TABLE class="fw" style="margin: 0 0 4px; border: 0px; font-size: 13px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TD class="vt" style="border: 0px;"&gt;&lt;P class="post-menu" style="padding: 2px 0 0;"&gt;&lt;A class="short-link" href="http://gis.stackexchange.com/q/154386/55188" style="padding: 0 3px 2px; color: #888888;" title="short permalink to this question"&gt;share&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A class="edit-post" href="http://gis.stackexchange.com/posts/154386/edit" style="padding: 0 3px 2px; color: #888888;" title="revise and improve this post"&gt;edit&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A data-delete-prompt="Delete this post?" data-undelete-prompt="Undelete this post?" href="http://gis.stackexchange.com/questions/154386/mapfragment-arcgis-the-specified-child-already-has-a-parent" style="padding: 0 3px 2px; color: #888888;" title="vote to delete this post"&gt;delete&lt;/A&gt;&lt;SPAN class="lsep" style="font-size: 1px; color: #1b4072;"&gt;&lt;/SPAN&gt;&lt;A class="flag-post-link" data-postid="154386" href="http://gis.stackexchange.com/questions/154386/mapfragment-arcgis-the-specified-child-already-has-a-parent" style="padding: 0 3px 2px; color: #888888;" title="flag this post for serious problems or moderator attention"&gt;flag&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/mapfragment-arcgis-the-specified-child-already-has/m-p/542832#M3657</guid>
      <dc:creator>FernandoUrbina</dc:creator>
      <dc:date>2015-07-14T19:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: MapFragment ArcGis - The specified child already has a parent</title>
      <link>https://community.esri.com/t5/developers-questions/mapfragment-arcgis-the-specified-child-already-has/m-p/542833#M3658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would really apreciate any help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/mapfragment-arcgis-the-specified-child-already-has/m-p/542833#M3658</guid>
      <dc:creator>FernandoUrbina</dc:creator>
      <dc:date>2015-07-15T06:41:53Z</dc:date>
    </item>
  </channel>
</rss>

