I already remove the title in onCreate() method.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(
It might be crashing because you are using this.requestWindowFeature(Window.FEATURE_NO_TITLE);
after setContentView()
;
Use this.requestWindowFeature(Window.FEATURE_NO_TITLE);
in onCreate()
of your Activity
, before setContentView();
statement.
May be i am repeating the same which all are saying but i just need to confirm it.In manifest file have add the theme like the below which i added as sample or anyother way.
<application ....
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:largeHeap="true"> ..
</application>
Just remove all other code related to hide title bar only andonly add this one in the manifest file it works for me.I hope it will work to you too.
in res/values/styles.xml
find ...
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
replacing for.
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="windowActionBar">false</item>
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
Save and compile...
In your AndroidManifest.xml in application tag set your theme to full screen like in below code.
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
I had the same problem.
Personally, I solved it by replacing my Activity inheritance from ActionBarActivity to Activity.
Hope this will help someone...
You can simply add full screen theme to that activity in your manifest file:
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"