<?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: MapView.setEsriLogoVisible(true); in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385532#M2635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. I just coded this as a quick test to see, if it is something at my end. I added this code to the normal HelloWorld example for testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With your changes I'm also getting a nullpointer exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;05-08 07:51:31.250: D/Test(16743): OnStatusChangedListener: null
05-08 07:51:31.250: I/System.out(16743): OnStatusChangedListener: null
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:43:25 GMT</pubDate>
    <dc:creator>SimonKlein</dc:creator>
    <dc:date>2021-12-11T17:43:25Z</dc:date>
    <item>
      <title>MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385527#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried this in my App and in the samples, checked for map.isLoaded() but I get a NullPointerException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13547[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need it in my app, but out of curiostiy: Is it the same for anybody else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is needed for attributing an App: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Attributing_your_application/01190000002w000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Attributing_your_application/01190000002w000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 12:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385527#M2630</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-04-16T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385528#M2631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I tried this again with the method call in the onstatuschangedlistener and it does not crash, but also shows nothing on the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 09:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385528#M2631</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-05-04T09:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385529#M2632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@simra, yep, these problems are related to the application life cycle and that the map hasn't been fully initialized yet. Certain processes load or run slower on a phone in comparison to a browser, so it's best to simply make sure the map has loaded before doing any actions against it by setting up an OnStatusChangedListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some details on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OnStatusChangedListener&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/event/OnStatusChangedListener.html"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/event/OnStatusChangedListener.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why the logo wouldn't show up. Did the app throw any other errors?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 15:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385529#M2632</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-04T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385530#M2633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just used the HelloWorld example and added a listener in which I set the logo&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;super.onCreate(savedInstanceState);
&amp;nbsp; setContentView(R.layout.main);
&amp;nbsp; 
&amp;nbsp; // Retrieve the map and initial extent from XML layout
&amp;nbsp; map = (MapView)findViewById(R.id.map);
&amp;nbsp; // Add tiled layer to MapView
&amp;nbsp; tileLayer = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
&amp;nbsp; map.addLayer(tileLayer);
&amp;nbsp; 
&amp;nbsp; map.setOnStatusChangedListener(new OnStatusChangedListener() {
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp; public void onStatusChanged(Object source, STATUS status) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(source == map &amp;amp;&amp;amp; status == STATUS.LAYER_LOADED)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setEsriLogoVisible(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.i("HelloWorld","map loaded");
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
 }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No errors in logcat just not showing any logo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you post a screeenshot of how it is supposed to look like.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385530#M2633</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2021-12-11T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385531#M2634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/489322"&gt;@Simra&lt;/a&gt;, in general I'd recommend running your apps in Eclipse debug mode. That way you get access to the Eclipse debugger and DDMS/Logcat at the same time. Also, please make the following changes to your code that are in red text below. That will enable the error to show up in Logcat. Can you give this a try and let me know if anything shows up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I'm getting a nullpointer exception when I run your code, which would explain why the logo isn't showing up. We are also looking into on our end. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@Override
public void onStatusChanged(Object source, STATUS status) {
&amp;nbsp; if (OnStatusChangedListener.STATUS.INITIALIZED == status &amp;amp;&amp;amp; source == map) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d("Test", "resolution:" + map.getResolution());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setEsriLogoVisible(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d("Test","OnStatusChangedListener: " + e.getMessage());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("OnStatusChangedListener: " + e.getMessage());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; if(OnStatusChangedListener.STATUS.INITIALIZATION_FAILED == status){
&amp;nbsp;&amp;nbsp; //Best Practice to handle initialization failures
&amp;nbsp;&amp;nbsp; Log.d("Test","failed: " + status.toString());
&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385531#M2634</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-12T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385532#M2635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. I just coded this as a quick test to see, if it is something at my end. I added this code to the normal HelloWorld example for testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With your changes I'm also getting a nullpointer exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;05-08 07:51:31.250: D/Test(16743): OnStatusChangedListener: null
05-08 07:51:31.250: I/System.out(16743): OnStatusChangedListener: null
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:43:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385532#M2635</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2021-12-11T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385533#M2636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Simra, gotcha thanks. We are going ahead and creating a CR on this issue. I don't have the number yet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a side note for when it does get fixed, you should be able to turn the method to true without setting the OnStatusChangedListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385533#M2636</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-08T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385534#M2637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's great news! Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 14:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385534#M2637</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-05-08T14:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.setEsriLogoVisible(true);</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385535#M2638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The fix is included with our recent &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/content/arcgis-android/download" rel="nofollow" target="_blank"&gt;v1.1.1 release&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; The API has not changed but the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/What_s_new_in_Version_1_1_Update_v1_1_1/01190000002v000000/" rel="nofollow" target="_blank"&gt;logo is now available in the SDK&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 06:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-setesrilogovisible-true/m-p/385535#M2638</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-05-11T06:25:03Z</dc:date>
    </item>
  </channel>
</rss>

