<?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 Can not init the MapView from the given WebMap in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551843#M3780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I upgraded my project to 1.1 and now i can not create a MapView with just the URL of my WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; mMapView = new MapView(this, bundle.getString("MAPURL"), "", "");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it also with null instead "" for user and pwd. This is a little confusing too, becaus in the javadoc it says null and in the samples you use "" (PopupInWebMapForView).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use my WebMap in the PopupInWebMapForView example it does not work. But it loads fine if I use the arcgis.com version of my WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following logcat: [ATTACH=CONFIG]13368[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: To make it more clear: I have a WebMap exported from arcgis.com on my own server (no portal stuff).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It also seems I can not use arcgis.com maps in my main project now&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; No implementation found for native Lcom/esri/android/map/Layer;.nativeSetName (JLjava/lang/String;)V&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2012 08:34:49 GMT</pubDate>
    <dc:creator>SimonKlein</dc:creator>
    <dc:date>2012-04-10T08:34:49Z</dc:date>
    <item>
      <title>Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551843#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I upgraded my project to 1.1 and now i can not create a MapView with just the URL of my WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; mMapView = new MapView(this, bundle.getString("MAPURL"), "", "");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it also with null instead "" for user and pwd. This is a little confusing too, becaus in the javadoc it says null and in the samples you use "" (PopupInWebMapForView).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use my WebMap in the PopupInWebMapForView example it does not work. But it loads fine if I use the arcgis.com version of my WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following logcat: [ATTACH=CONFIG]13368[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: To make it more clear: I have a WebMap exported from arcgis.com on my own server (no portal stuff).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It also seems I can not use arcgis.com maps in my main project now&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; No implementation found for native Lcom/esri/android/map/Layer;.nativeSetName (JLjava/lang/String;)V&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 08:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551843#M3780</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-10T08:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551844#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So do we need a ArcGIS Portal Service or arcgis.com now to be able to show our own webmaps?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to give the URL of my Webmap to a MapView that is on our Mobile Server!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to create a WebMap Object i get a 404 Not Found Exception. On 1.0.1 and the mobile javascript version everything works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 10:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551844#M3781</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-11T10:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551845#M3782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When i want to create a MapView with &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mMapView = new MapView(this, "http://www.arcgis.com/home/item.html?id=7a052def7a254f46b53c10f9ae594653", "", "");&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error (it's the same if I use null instead of "":&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;04-12 12:05:51.310: W/dalvikvm(10149): No implementation found for native Lcom/esri/android/map/Layer;.nativeSetName (JLjava/lang/String;)V&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i try to create a MapView with one of the WebMaps on our ArcGIS mobile server I get this &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;04-12 12:27:37.530: E/ArcGIS(10365): Can not init the MapView from the given WebMap
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;(the rest of the logcat can be found in the first post)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to create WebMap instance with one of our WebMaps from the ArcGIS mobile server I get an 404 Not Found EsriServiceException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My project is updated from Version 1.0.1 to 1.1.. Loading the WebMaps in the ArcGIS Android App works fine, so there must be a way I guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could really use some help on this please!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551845#M3782</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2021-12-11T23:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551846#M3783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok i could at least resolve the second error with manually deliting the arm lib files and then readding the new ones with "convert to ArcGIS Android Project" from the ArcGIS Tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 08:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551846#M3783</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-13T08:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551847#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could really use some help right now!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to create a WebMap object with a JsonParser, but it seems I am missing something. I tried creating the parser with an URL or with JSON as String.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It just jumps over the return statement and gets me nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;String str= getJSONQueryAsString(params[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; JsonParser parser = h.createJsonParser( str);
&amp;nbsp;&amp;nbsp;&amp;nbsp; return WebMap.newInstance(parser,&amp;nbsp; new Envelope(0, 0, 0, 0), SpatialReference.create(31255));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically I want to add a WebMap to my MapView not from ArcGIS.com or any other Portal. It works in the ArcGIS Android App, so there is a way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551847#M3784</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2021-12-11T23:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551848#M3785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;parser.nextToken(); before creating the webmap does the trick!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 08:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551848#M3785</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-16T08:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551849#M3786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;simra,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to do the same thing, but I'm a little confused. Can you post your final code for making it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551849#M3786</guid>
      <dc:creator>JohnAllen</dc:creator>
      <dc:date>2013-02-20T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can not init the MapView from the given WebMap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551850#M3787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to check if there is something better in the new SDK but I did it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
......JsonFactory h = new JsonFactory();

JsonParser parser = h.createJsonParser(webMapString);
&amp;nbsp;&amp;nbsp;&amp;nbsp; // this is needed to get a valid jsonparser
&amp;nbsp;&amp;nbsp;&amp;nbsp; parser.nextToken();
&amp;nbsp;&amp;nbsp;&amp;nbsp; // get a new WebMap instance
&amp;nbsp;&amp;nbsp;&amp;nbsp; return WebMap.newInstance(parser, null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpatialReference.create(DEFAULT_SPACIAL_REFERENCE));.........

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-not-init-the-mapview-from-the-given-webmap/m-p/551850#M3787</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2021-12-11T23:52:17Z</dc:date>
    </item>
  </channel>
</rss>

