top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Compiled and uncompiled resources in Android

0 votes

During the build of Android application some resources files are compiled and put in a binary file (resources.arsc) and some other not. In the book "Beginning Android 4" I've found the following phrase: "The .apk file is a ZIP archive containing the .dex file, the compiled edition of your resources (resources.arsc), any uncompiled resources (such as what you put in res/raw/), and the AndroidManifest.xml file." However, after examining several apk files I've found that usually layout files are not put into resources.arsc and sometime other xml files from resources folder are also left untouched.
Could someone clarify me which resources are called compiled and which are not and also when they are compiled, under which circumstances?

posted Jul 19, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Which resources do you think are not compiled? All Android resources are compiled -- the only usable representation of them is as the binary resources.arsc format. Traditional Java resources are not compiled, but we generally dont use those in Android. (There is probably a place or two that does use them, though.)

answer Jul 20, 2013 by anonymous
Similar Questions
0 votes

Have you even seen OutOfMemoryError in system server? If yes, how do you find the root case of OOM? Do you have any tools that help finding the root cause in production code or during development?

+1 vote

I am using GsmCellLocation to get LAC and cell id for 3G network with below code :

mCid = gmsCellLocation.getCid() & 0xffff;
mLac = gmsCellLocation.getLac();

and is there any library or formula how to get/calculate the correct LAC and cell id for LTE network (4G) ?

0 votes

I am searching for the smallest and largest in term of size of android app ever built and launched in google play store?