Android app shutdown dialog not prevented on some devices -


i using following code prevent shutdown dialog shown on screen. however, did not work devices. works on samsung galaxy s4 mini not on htc. wrong code?

@override  public void onwindowfocuschanged(boolean hasfocus) {     super.onwindowfocuschanged(hasfocus);          log.d("focus debug", "focus changed !");      if(!hasfocus) {         log.d("focus debug", "lost focus !");          intent closedialog = new intent(intent.action_close_system_dialogs);         sendbroadcast(closedialog);     }  } 

what wrong code?

nothing. samsung galaxy s4 mini apparently has bug, broadcast affects shutdown dialog. shutdown dialog not a temporary system dialog , therefore should not affected broadcast.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -