<?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: Failed to Add Bing logo error in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670916#M4676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've used Bing map, and to show it just is necessary declare our bing map layer and instance it:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
BingMapsLayer bingLayer;
bingLayer = new BingMapsLayer("Here_Your_Bing_Key", MapStyle.Aerial);
myMap.addLayer(bingLayer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;don't know how or for what works the method "getLogo()", I've tried to use it but never works as I thought.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. It seems the app crashes, because android 4.0+ devices require you to run network operations outside the UI thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added these lines before initializing the Bing maps to suppress the networkonmainthread exception and it works for now(but I never had this problem when using ESRI maps ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StrictMode.setThreadPolicy(policy);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried moving the bing maps initialization outside the UI thread using Asynctask class, but the app still crashes. with the networkOnMainThread exception. Can anyone shed some light on this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:19:02 GMT</pubDate>
    <dc:creator>ThomasBinu</dc:creator>
    <dc:date>2021-12-12T04:19:02Z</dc:date>
    <item>
      <title>Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670914#M4674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use Bing maps for my android application, but the app crases with this error 'Failed to add the bing maps Logo' and a Networkonmainthread Exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am testing it on a galaxy s2 running android ICS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MapView map = new MapView(this);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BingMapsLayer bingLayer = new BingMapsLayer(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "appkey",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapStyle.AERIAL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bingLayer.getBingLogo(5,5);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(bingLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setContentView(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help. Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670914#M4674</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2012-10-18T07:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670915#M4675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've used Bing map, and to show it just is necessary declare our bing map layer and instance it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
BingMapsLayer bingLayer;
bingLayer = new BingMapsLayer("Here_Your_Bing_Key", MapStyle.Aerial);
myMap.addLayer(bingLayer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;don't know how or for what works the method "getLogo()", I've tried to use it but never works as I thought.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670915#M4675</guid>
      <dc:creator>EnriqueIbarra</dc:creator>
      <dc:date>2021-12-12T04:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670916#M4676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've used Bing map, and to show it just is necessary declare our bing map layer and instance it:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
BingMapsLayer bingLayer;
bingLayer = new BingMapsLayer("Here_Your_Bing_Key", MapStyle.Aerial);
myMap.addLayer(bingLayer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;don't know how or for what works the method "getLogo()", I've tried to use it but never works as I thought.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. It seems the app crashes, because android 4.0+ devices require you to run network operations outside the UI thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added these lines before initializing the Bing maps to suppress the networkonmainthread exception and it works for now(but I never had this problem when using ESRI maps ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StrictMode.setThreadPolicy(policy);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried moving the bing maps initialization outside the UI thread using Asynctask class, but the app still crashes. with the networkOnMainThread exception. Can anyone shed some light on this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670916#M4676</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2021-12-12T04:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670917#M4677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version of the SDK are you using?&amp;nbsp; This issue was resolved in our latest release of the SDK, &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&amp;amp;downloadid=813" rel="nofollow" target="_blank"&gt;v2.0&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 22:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670917#M4677</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-11-02T22:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670918#M4678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What version of the SDK are you using?&amp;nbsp; This issue was resolved in our latest release of the SDK, &lt;A href="http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&amp;amp;downloadid=813"&gt;v2.0&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using version 2.0 of ArcGIS SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 09:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670918#M4678</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2012-11-05T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670919#M4679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was the project built from v2.0 project templates?&amp;nbsp; With v2.0 installed, right click your ArcGIS for Android Project and select &lt;/SPAN&gt;&lt;STRONG&gt;ArcGIS Tools &amp;gt; Fix Project Properties&lt;/STRONG&gt;&lt;SPAN&gt; to ensure that you are using both the latest jars and native libs.&amp;nbsp; Please share some screenshots of your Java Build Path and the logcat if you continue to have issues using v2.0 of the SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670919#M4679</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-11-05T19:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670920#M4680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did some more testing/investigating and realized that we did not include the fix in v2.&amp;nbsp; The issue is that the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;BingMapsLayer&lt;/SPAN&gt;&lt;SPAN&gt; is retrieving the Bing Logo on the main thread.&amp;nbsp; Android apps targeting SDK 12 (Honeycomb) or higher does not allow network usage on the main UI thread and retrieving the Bing Maps Logo makes a network call.&amp;nbsp; The fix will be in the next release of the SDK.&amp;nbsp; In the mean time, if you are targeting platform API version 12 or higher you can explicitly turn off &lt;/SPAN&gt;&lt;A href="http://developer.android.com/reference/android/os/StrictMode.html"&gt;StictMode&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; This is not an issue if your minSDK&amp;nbsp; is set to something lower than 12, e.g. 8 and your platform level is the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 03:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670920#M4680</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-11-08T03:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Add Bing logo error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670921#M4681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I did some more testing/investigating and realized that we did not include the fix in v2.&amp;nbsp; The issue is that the &lt;SPAN style="font-style:italic;"&gt;BingMapsLayer&lt;/SPAN&gt; is retrieving the Bing Logo on the main thread.&amp;nbsp; Android apps targeting SDK 12 (Honeycomb) or higher does not allow network usage on the main UI thread and retrieving the Bing Maps Logo makes a network call.&amp;nbsp; The fix will be in the next release of the SDK.&amp;nbsp; In the mean time, if you are targeting platform API version 12 or higher you can explicitly turn off &lt;A href="http://developer.android.com/reference/android/os/StrictMode.html"&gt;StictMode&lt;/A&gt;.&amp;nbsp; This is not an issue if your minSDK&amp;nbsp; is set to something lower than 12, e.g. 8 and your platform level is the same.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for the reply. Can you give us an ETA for the the next version of the SDK. Also unlike the iOS version ,android doesn't have support for openstreetmaps. Will this be included in the next release?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 15:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/failed-to-add-bing-logo-error/m-p/670921#M4681</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2012-11-09T15:52:32Z</dc:date>
    </item>
  </channel>
</rss>

