<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add a BingMapsLayer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370496#M2452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you really using the string "BingMapsKey"? Or did you just replace your real key since you don't want to publish it in the forum?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2012 05:16:11 GMT</pubDate>
    <dc:creator>SebastianGreifeneder1</dc:creator>
    <dc:date>2012-01-16T05:16:11Z</dc:date>
    <item>
      <title>Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370493#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have got a problem with adding a BingMapsLayer to my MapView! I have studied the documentation of the api and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i looked at the sample application. I also registered a bing maps key at the bingmapsportal for mobil use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can not run the sample application and my application because there is always the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11119[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how to set these usercredentials or how to tell bingmaps the right settings!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 11:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370493#M2449</guid>
      <dc:creator>PeterGlenewinkel</dc:creator>
      <dc:date>2012-01-12T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370494#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bingMapLayer = new BingMapsLayer("???", MapStyle.Aerial); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;??? is Bing_key&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 01:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370494#M2450</guid>
      <dc:creator>wannachaissawatae</dc:creator>
      <dc:date>2012-01-13T01:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370495#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using Android Fragments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class Map extends Fragment {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onActivityCreated(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onActivityCreated(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MapView _map = (MapView)getActivity().findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _map.addLayer(new BingMapsLayer("BingMapsKey", MapStyle.Road));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my class very shortened!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do it this way all my other layers are working without any problems!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 11:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370495#M2451</guid>
      <dc:creator>PeterGlenewinkel</dc:creator>
      <dc:date>2012-01-15T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370496#M2452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you really using the string "BingMapsKey"? Or did you just replace your real key since you don't want to publish it in the forum?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 05:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370496#M2452</guid>
      <dc:creator>SebastianGreifeneder1</dc:creator>
      <dc:date>2012-01-16T05:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370497#M2453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;of course i do not use the string "Bingmapskey" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; i just don't wanted to show the world my id!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370497#M2453</guid>
      <dc:creator>PeterGlenewinkel</dc:creator>
      <dc:date>2012-01-16T06:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370498#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just wanted to be sure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try your app with this key (I use it, and I don't have any problems with Bing maps):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the AddBingMap sample work for you with your key, respectively with this key?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370498#M2454</guid>
      <dc:creator>SebastianGreifeneder1</dc:creator>
      <dc:date>2012-01-16T08:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370499#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ff428642.aspx"&gt;http://msdn.microsoft.com/en-us/library/ff428642.aspx&lt;/A&gt;&lt;SPAN&gt; - it is documented in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/bing/BingMapsLayer.html"&gt;API reference&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 09:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370499#M2455</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-01-16T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370500#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it working now! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My failure was to think that as it is written in the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;android api for arcgis the brackets have to be around the bingkey:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM THE DOCUMENTATION:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following are examples of how you can work with the BingMapsLayer class. The code will add a map with a Bing Maps Layer of Aerial style. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Java usage: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MapView mv = new MapView(this);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mv.addLayer(new BingMapsLayer(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "[your Bing Maps key]", MapStyle.Aerial));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setContentView(mv);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; To initialize a Bing map in a WebMap please see the class description of the MapView. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the initialization of the bingmapslayer i had to call .getBingLogo();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because if I don't do that i get a android strict mode error because getBingLogo() &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is called in the ui-thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 10:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370500#M2456</guid>
      <dc:creator>PeterGlenewinkel</dc:creator>
      <dc:date>2012-01-16T10:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370501#M2457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I got it working now! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;My failure was to think that as it is written in the&amp;nbsp;&amp;nbsp; &lt;BR /&gt;android api for arcgis the brackets have to be around the bingkey:&amp;nbsp; &lt;BR /&gt;FROM THE DOCUMENTATION:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;The following are examples of how you can work with the BingMapsLayer class. The code will add a map with a Bing Maps Layer of Aerial style.&amp;nbsp;&amp;nbsp; &lt;BR /&gt; Java usage:&amp;nbsp;&amp;nbsp; &lt;BR /&gt; MapView mv = new MapView(this);&amp;nbsp; &lt;BR /&gt; mv.addLayer(new BingMapsLayer(&amp;nbsp; &lt;BR /&gt; "&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;[&lt;/SPAN&gt;your Bing Maps key&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;]&lt;/SPAN&gt;", MapStyle.Aerial));&amp;nbsp; &lt;BR /&gt; setContentView(mv);&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; To initialize a Bing map in a WebMap please see the class description of the MapView.&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;After the initialization of the bingmapslayer i had to call .getBingLogo();&amp;nbsp; &lt;BR /&gt;because if I don't do that i get a android strict mode error because getBingLogo()&amp;nbsp;&amp;nbsp; &lt;BR /&gt;is called in the ui-thread.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks for the help!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, could you post your code please! I'm trying to use a bing map but can't do it. I'm using 4.0.3 API and this is what I've done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;BingMapsLayer lyr = new BingMapsLayer("AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf", MapStyle.AerialWithLabels);
&amp;nbsp; map.addLayer(lyr);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370501#M2457</guid>
      <dc:creator>EnriqueIbarra</dc:creator>
      <dc:date>2021-12-11T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add a BingMapsLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370502#M2458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was the issue exclusive to the implicit brackets from the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/android-sdk/api/com/esri/android/map/bing/BingMapsLayer.html"&gt;JavaDoc class description&lt;/A&gt;&lt;SPAN&gt;?&amp;nbsp; We can remove them in the next release.&amp;nbsp; Let me know if there is/was an issue beyond including the brackets with your Bing Maps Key.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 01:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-a-bingmapslayer/m-p/370502#M2458</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-10-09T01:25:18Z</dc:date>
    </item>
  </channel>
</rss>

