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

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -