Tuesday, December 2, 2014

Android Project structure / Package explorer

1. src :- contains the all source files
2.gen :- contains the all generated class for us.
3. bin :- contain the binary or package. 
4.res :- contains the resource used like images, string , layout etc.( non code portion of project).
mdpi - is the original density of android devices.
layout is like xib in iOS .
values folder contain string values.
5.androidmanifest.xml:- table of content for the application. Android (os) system looks into the manifest file for checking the which package usages, android version code and name. Also contain the min sdk version. We also specify the icon , app label , starting activity to use for in manifest file. We specify the activity class name with prepended by . (dot)  (normally it took the package name specified in the same manifest file if we use dot in front of activity name). Activity class name is mentioned under the android:name attribute of Activity tag.
intent filter also mentioned with activity file which is used for purpose of the particular activity like main etc.
6.proguard.cfg:- it is config file for progaurd. Progaurd allows you to obfuscate (making unclear / encrypted) the apk in order to allow other to harder the decode and understand your code.
7.project.properties:- contain the target which you are going to use.

When emulator starts running then the there is one number associated with it , It is port number on which the emulator is running.

When you want to change the target if multiple devices connected then go to  . Run As => Run Configuration => Android Application => Essentials => target => select manual. So it will ask every time which device you want to choose when you want to run app.


Enable debug mode on device

go to Settings => Applications =>check the “unknown sources” then => Developement => check the usb debugging.

No comments:

Post a Comment