Show splash screen when application enters background android -


how can show android splash screen when application goes ground?

the issue need hide application main page when user sends app background, , when s/he double tabs home button, see splash screen.

we using following inside our code :

    public void oncreate(bundle savedinstancestate){         super.oncreate(savedinstancestate);           getwindow().setflags(layoutparams.flag_secure,                 layoutparams.flag_secure); . . 

it looks fixing issue, code preventing user taking screenshot on device if app in foreground.

i'm not sure how implement need did in ios.

thanks.

now haven't tried i'm not sure if it'll work, can try overriding onpause() method. after overriding onpause() add code sets splash screen cover entire activity. should put image app preview in recents panel. override onresume() method remove image activity, giving user control again.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -