<?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 MapView with user and password in XML in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-with-user-and-password-in-xml/m-p/414993#M2828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everybody!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy new year!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use an item id url to load a map with user and password. It worked if I put the code in java as follow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; map = new MapView(this, "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8&lt;/A&gt;&lt;SPAN&gt;", "myuser", "my password");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setContentView(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i see a sample with the url put in the Xml file like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- MapView that will fill your device screen with the "Washington, DC" hosted on ArcGIS.com. --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;com.esri.android.map.MapView xmlns:android="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="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;BR /&gt;&lt;SPAN&gt; android:layout_width="fill_parent" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/webmap/viewer.html?webmap=e229d715f7ca4fa980308549fb288165" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=e229d715f7ca4fa980308549fb288165&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to put user and password in xml because without them the map don't load!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my english! I hope you understand the message!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for answers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 12:56:25 GMT</pubDate>
    <dc:creator>silviuMihaita</dc:creator>
    <dc:date>2013-01-08T12:56:25Z</dc:date>
    <item>
      <title>MapView with user and password in XML</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-with-user-and-password-in-xml/m-p/414993#M2828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everybody!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy new year!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use an item id url to load a map with user and password. It worked if I put the code in java as follow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; map = new MapView(this, "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8&lt;/A&gt;&lt;SPAN&gt;", "myuser", "my password");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setContentView(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i see a sample with the url put in the Xml file like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- MapView that will fill your device screen with the "Washington, DC" hosted on ArcGIS.com. --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;com.esri.android.map.MapView xmlns:android="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="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;BR /&gt;&lt;SPAN&gt; android:layout_width="fill_parent" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/webmap/viewer.html?webmap=e229d715f7ca4fa980308549fb288165" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=e229d715f7ca4fa980308549fb288165&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to put user and password in xml because without them the map don't load!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my english! I hope you understand the message!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for answers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-with-user-and-password-in-xml/m-p/414993#M2828</guid>
      <dc:creator>silviuMihaita</dc:creator>
      <dc:date>2013-01-08T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: MapView with user and password in XML</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-with-user-and-password-in-xml/m-p/414994#M2829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create an android XML in /res/values and add the string tag with the name and its value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;string name="user_name"&amp;gt;USERNAME&amp;lt;/string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;string name="user_pwd"&amp;gt;PASSWORD&amp;lt;/string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the same from R.string.user_name and R.string.user_pwd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String myuser= R.string.user_name ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String mypassword= R.string.user_pwd;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;map = new MapView(this, "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=5c57ca58ba8543a7adbcf898bbd805d8&lt;/A&gt;&lt;SPAN&gt;", myuser,my password);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setContentView(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think, it helps for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy Coding&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 07:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-with-user-and-password-in-xml/m-p/414994#M2829</guid>
      <dc:creator>Sharadarya</dc:creator>
      <dc:date>2013-05-23T07:39:03Z</dc:date>
    </item>
  </channel>
</rss>

