Java Reference
In-Depth Information
Starting with Android 1.6, Android first looks for drawables in res 's drawable-
hdpi , drawable-mdpi , or drawable-ldpi subdirectory, depending on whether
thedevice'sscreenresolutionishigh(hdpi),medium(mdpi),orlow(ldpi).Ifitdoesn't
find the drawable there, it looks in res 's drawable subdirectory.
I'll have more to say about application resources when I introduce you to the
Java7MeetsAndroid app later in this chapter.
Note To learn more about application resources, check out Google's “Application
Resources” guide ( http://developer.android.com/guide/topics/re-
sources/index.html ) .
App Package
Android apps are written in Java. The compiled Java code for an app's components
is further transformed into Dalvik's DEX format. The resulting code files along with
anyotherrequireddataandapplicationresourcesaresubsequentlybundledintoanApp
PacKage (APK), a file identified by the .apk suffix.
AnAPKisn'tanapp,butisusedtodistributeatleastpartoftheappandinstalliton
amobiledevice.It'snotanappbecauseitscomponentsmayreuseanotherAPK'scom-
ponents,and(inthissituation)notalltheappwouldresideinasingleAPK.Also,itmay
Search WWH ::




Custom Search