Click here to Skip to main content
15,887,746 members
Articles / Mobile Apps / Android
Tip/Trick

Android project structure (Eclipse)

Rate me:
Please Sign up or sign in to vote.
4.20/5 (5 votes)
11 Feb 2012CPOL 30.6K   7   1
Memo about structure of the Android project and Support Package

The general information about support package can be found on the web page: http://developer.android.com/sdk/compatibility-library.html[^]. There is a section about Downloading the Support Package[^], as well as Setting Up a Project to Use a Library[^]. I recommend to use setting up pattern in for others third party libraries.


Other type of files are the sources of the images, like the photoshop images, inkscape or any other used graphics editor. The suggested way is to put them in the art project subfolder. This is extremely useful if germination the resource files is automated.


General project structure will look then similar:



  • art - graphics element sources (psd, svg, xcf, ...)
  • src - java packages with classes (class)
  • res - resources files (xml, images)
  • libs - third party packages (jar)
  • assets - custom files related to the application (any type)
  • gen - generated classes files (java)
  • bin - output files (include apk)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead ASEC S.A. (member of OTI group)
Poland Poland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 super Pin
vysarsarathi27-Jan-12 3:17
vysarsarathi27-Jan-12 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.