Getting the application icon to show in the launcher

by Bret Foreman » Tue, 25 Jan 2011 02:19:35 GMT


Sponsored Links
 I created a simple app with a single activity and a 64X64 pixel png
icon. But I'm seeing the default Android icon instead of my drawable.
The icon is in res/drawable/icon.png and the manifest is as shown. I
also tried adding an icon attribute to the activity but that didn't
change - it's still just showing the default icon in the launcher. Any
idea what I might be doing wrong?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
      package="com.speakez"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name" android:debuggable="true">
        <activity android:name=".MainActivity" android:label="@string/
app_name"  >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
    <uses-sdk android:minSdkVersion="8" />

<uses-permission android:name="android.permission.CALL_PHONE"></uses-
permission>
</manifest>

-- 



Re: Getting the application icon to show in the launcher

by Kostya Vasilyev » Tue, 25 Jan 2011 02:30:39 GMT


 Bret,

Not sure if this is it, but the standard icon size for mdpi is 48x48, not
64x64:

 http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html #size5

The manifest looks fine.

-- Kostya

2011/1/24 Bret Foreman <bret.fore...@gmail.com>


-- 


Sponsored Links


Re: Getting the application icon to show in the launcher

by Bret Foreman » Tue, 25 Jan 2011 02:38:02 GMT


 It didn't help. I resized the image, un-installed the app, did a clean
build, and re-installed. Still getting the default icon.

-- 



Re: Re: Getting the application icon to show in the launcher

by Mark Murphy » Tue, 25 Jan 2011 02:43:15 GMT


 Reboot the device/emulator, and see if that helps. You could also add
an android:icon attribute to the <activity> element, though that
should not be required.

Also, see if there are any interesting messages in LogCat.




-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android Training in London:  http://bit.ly/smand1 and http ://bit.ly/smand2

-- 



Re: Re: Getting the application icon to show in the launcher

by Kostya Vasilyev » Tue, 25 Jan 2011 02:46:58 GMT


 Are you sure that this is your icon?

android:icon="@drawable/icon"

Did you delete all the versions of icon.png that were generated by the
Eclipse Android app wizard?

Check res/drawable-mdpi, res/drawable-hdpi, maybe it's still lurking there.
And if you are using a high-res device, then that's what you'll get.

-- Kostya


2011/1/24 Bret Foreman <bret.fore...@gmail.com>


-- 



Re: Getting the application icon to show in the launcher

by Bret Foreman » Tue, 25 Jan 2011 02:51:56 GMT


 That was it! I knew it had to be something simple. A bunch of default
icons in the drawable-resolution folders.

-- 



Other Threads

1. Adhoc net connection over Wi-Fi

Hi,

   I am trying to browse the net over Wi-Fi on my android developer
phone. I have created an Ad-hoc connection on my Mac and want to
connect the phone to this using Wi-Fi.
   The setup is working perfectly when I connect my iPod Touch to the
Mac. However in the case of the ADP, I am unable to browse the net. It
keeps giving the message "There was a network error".
    I am able to connect the ADP to the network and it shows
"connected" with an excellent signal strength. It even acquires an IP
automatically from the Mac. I have tried with both the Open as well as
WEP encrypted network. However I am unable to browse or even access my
Gmail account.
    Any suggestions would be much appreciated.

Thanks,

--

2. UNABLE To PARSE ADB Version

I am using WIN7 pro.  Have installed & reinstalled from scratch
several times...same error msg: "UNABLE TO PARSE ADB VERSION" whenever
ECLIPSE fires up.  Tried to stop/restart ADB from cmd line, then
restart Eclipse...same problem.  Is there anyone who is having this
problem?   I have tried all previous suggestions, no luck.......HELP!!
Thank you....RC3375

--

3. tab bar

4. Modem broadband 3

5. Copasan tetangga :) OOT: Catatan Seorang Followers: "Twitter Nggak Guna"

6. MapAPIKey

7. Access barcode app from website