Android is an operating system that has the highest increase of users. Accoring to that, it is great platform for development. Android applications are made in Java, interpreted by Dalvik Virtual Machine. Today, there are over 300.000 applications for Android. You can learn more about programming on developers.android.com.
Here is a small list of Android snippets that can help you in the future.
Hide Title bar
Java code:
requestWindowFeature(Window.FEATURE_NO_TITLE);
This line of code needs to be before setContentView(R.layout.main);
Fullscreen application
Java code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
This line of code, like Hiding Title bar, needs to be before setContentView(R.layout.main);. Also, you can add snippet for hiding Title bar
Fix orientation
In xml layout file, where is xmln:android
android:screenOrientation="portrait"
Fix crash while changing orientration (occured at progressDialog)
In AndroidManifest.xml, in tag activity add this atribute:
android:configChanges="keyboardHidden|orientation"
This list will be updated over time!





