Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old March 3rd, 2011, 12:42 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Feb 2011
Location: Orange County
Gender: Male
Posts: 91
 
Device(s): Google/Asus Nexus 7
Carrier: Not Provided

Thanks: 7
Thanked 0 Times in 0 Posts
Default Defining icon attributes

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"?

StevenHu is offline  
Reply With Quote
sponsored links
Old March 3rd, 2011, 04:29 PM   #2 (permalink)
Member
 
Join Date: Dec 2010
Location: Aarhus, Denmark
Posts: 136
 
Device(s): SE Xperia X10
Carrier: Not Provided

Thanks: 2
Thanked 22 Times in 22 Posts
Default

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"
JamTheMan is offline  
Reply With Quote
The Following User Says Thank You to JamTheMan For This Useful Post:
StevenHu (March 3rd, 2011)
Reply
Tags
icon configuration


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:58 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.