I am pretty new to Java and currently I am developing my very first Android application using Eclipse + Android SDK. The business logic of my application is stored in “/src/app.package/*”. Currently all my files (e.g. activities, adapters, classes, etc.) are stored in the root of “/src/app.package/”. This looks a bit confusing to me. I think, sub-folders/packages for activities, adapters, classes, … would be better and more clearly. Are there any best practices to arrange all the business logic in sub-folders/packages or can everybody do, what he wants?
Share
You can think of packages as a directory. If it helps you to be more organized to put all of the adapter classes into the package
com.company.app.adaptersand all the activities incom.company.app.activitiesthen go for it. Make it readable/approachable to someone who might be maintaining your code later on down the road.