Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Mobile / Android

Android project structure (Eclipse)

4.20/5 (5 votes)
11 Feb 2012CPOL 30.9K  
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)