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.
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
Post a Comment