Apply global theme
A theme can save you from changing styles for every Activity in your app. You should use the built-in Light or Dark themes depending upon the look and feel for your app. You can tweak some of those styles in sub-activities if needed.
Create flexible layouts
Due to opensource Android hardware is available in various screen sizes so overcome the problem of multiple screen sizes you should develop flexible layouts which can stretch their content to fit the screen. You can use “fill_parent” and “wrap_content” in the layout xml the content of your application adapt to the screen size automatically.
Use “runOnUiThread()”
During running threads in your application you need to display something to the user, the application won’t actually display anything unless it is call from the main thread so in this situation you can use “runOnUiThread()” to ensure that the code is running UI.
Use selectors, not images
To set the background for buttons and lists we use image file. Since Android had multiple size of screen it won’t work properly so we should create a custom selector in xml that details what should display when screen is different.
Given hints above can be proved helpful during Android app development.
Read More:- Android Application Developer—Creator of Incredible Applications