• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Defining icon attributes

StevenHu

Member
I read: "To specify an icon and label, you define the attributes android:icon and android:label in the <application> element of the manifest." Not sure exactly how to implement this.

This is what I have now:

<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".App"
android:label="@string/app_name">

I have icons in:

assets/hdpi/ic_launcer_name_72.png
assets/ldpi/ic_launcer_name_36.png
assets/mdpi/ic_launcer_name_48.png

So how do I "define the attributes"?
 
To use the same Icons, just with different DPI's place them in the corresponding folders under res/drawable using the same name for each file - say we call it "ic_launcher_icon".

Then you change the android:icon="" to this: android:icon="@drawable/ic_launcher_icon"
 
Back
Top Bottom