1

I'm trying to use sticky immersive full-screen in my app (as described here). However, when switching activities the navigation and status bar will show up at first and after a few moments disappear again. Is there any way to ensure that my app stays full-screen across activities?

Laís Minchillo
  • 741
  • 1
  • 7
  • 15

3 Answers3

0

Try using a full screen theme

in AndroidManifest

 <activity
android:name=".Launch"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
Manohar
  • 22,116
  • 9
  • 108
  • 144
0

try thic code in your Activity OnCreate method

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);

    getSupportActionBar().hide();

    setContentView(R.layout.activity_view_hotel_image);

i hope this work in your case

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
0

try put your code under oncreate

it works for me

medo
  • 1
  • 2