Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android development, Source file organization/notation best practices?

Tags:

android

Android lists coding standards but does not seem to go into how source (Activity's, etc) files should be organized. As my project grows im wondering how I should be breaking up the classes or if I just just leave a mess of 20 files in the src folder. It does not seem like there is any sort of notation (like Hungarian) nor an way to id whats an activity, or other helper class. Are there any docs on these sorts of best practices?

like image 775
Ryan Mills Avatar asked Nov 05 '22 23:11

Ryan Mills


1 Answers

If you look at the apps that come with the android source, like gallery, launcher ect. you will notice that those guys pretty much kept everything in one folder... Quite a mess if you ask me. I usually have a folder "widget" for all my views, one for activities, one for providers one for utilities whatever.

Browsing throug open source projects alot, i dont think there is any common standart for doing this. Use what works best for you.

like image 145
pumpkee Avatar answered Nov 11 '22 11:11

pumpkee