[UPDATED] Android App development Best practices for Developers
Avoid reinventing the wheel by following these guidelines. Lessons learned from Android developers in Futurice . If you are interested in iOS or Windows Phone development, be sure to check also our iOS Good Practices and Windows App Development Best Practices documents. Summary Use Gradle and its default project structure Put passwords and sensitive data in gradle.properties Use the Jackson library to parse JSON data Don't write your own HTTP client, use OkHttp libraries Avoid Guava and use only a few libraries due to the 65k method limit Sail carefully when choosing between Activities and Fragments Layout XMLs are code, organize them well Use styles to avoid duplicate attributes in layout XMLs Use multiple style files to avoid a single huge one Keep your colors.xml short and DRY, just define the palette Also keep dimens.xml DRY, define generic constants Do not make a deep hierarchy of ViewGroups Avoid client-side processing for WebViews, and bewa...