how to hide title bar from Android ActionBarActivity I have tried everything but did not get success.
getting that Exception :
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dan.msdashboard/com.dan.msdashboard.FirstActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
but I am using this code
protected void onCreate(Bundle savedInstanceState) {
// requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
// Hide the Title bar of this activity screen
this.supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_simple);
Please help me solve .
Thanks in advance....
Do feature before onCreate