android - androidmanifest.xml file resolves attribute entries -


i new android , started hello world app.

i going through androidmanifest.xml

   <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"     </application> 

i trying figure out ic_launcher file located or has variable mapped.

i have folder

res/drawable-hdpi res/drawable-ldpi 

i can see folder has ic_launcher.png file, question folder pick image. also, saw there 1 entry in r.java file name as,

public static final class drawable {     public static final int ic_launcher=0x7f020000; } 

what relation between entry in r.java , androidmanifest.xml.

also, second line android:label="@string/app_name" can see in strings.xml file, there 1 entry these,

  <string name="app_name">mymaplocation</string> 

now, written in androidmanifest.xml file(or other place) go , check app_name variable entry in strings.xml file?

i sorry ask basic question want clear doubts.

question is, folder pick this(ic_launcher.img) image.

it depend on screen size of device, if screen size comes in ldpi icon.img of drawable-ldpi picked system @ run time.

now, written in androidmanifest.xml file(or other place) go , check app_name variable entry in strings.xml file?

@string/app_name >> @string tells xml files go string.xml , search app_name there.

edit:- here docs says accessing resouces via blad0rz


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -