How to hide views in android when android app is backgrounded (not to stop android to take snapshot when backgrounded) -


this question has answer here:

i want hide views when app backgrounded. e.g. want hide "live debug mode" textview when app backgrounded.

consider backgrounded app e.g.

add following code oncreate:

@override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     getwindow().setflags(windowmanager.layoutparams.flag_secure,             windowmanager.layoutparams.flag_secure);     setcontentview(r.layout.activity_main2);     //...rest of code } 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -