0

This is more of a general question. I am developing my first relatively large Android application, and I realize the file structure is probably not the "best practice" organization. I feel like I have one folder full with all of my Activities and Java classes, and it is getting a bit messy. Does anyone know what the best option is for making the project structure a bit cleaner?

Jack Ryan
  • 1,287
  • 12
  • 26

2 Answers2

2

For organizing your source files take a look at some open source projects to get an idea about organizing your file structure. An example is the Google sample project android-topeka.

This project groups the source code into sub-folders in the following structure:

/source
  /activity
  /adapter
  /fragment
  /helper
  /model
  /persistence
  /widget
BrentM
  • 5,671
  • 3
  • 31
  • 38
1

I found these links very helpful. Link 1, Link 2 and Link 3.

Its a very debatable question. Some IDEs like Android Studio of google, Eclipse IDE for android automatically manage and keep ur source codes clean and compact.

Community
  • 1
  • 1