android - Display hidden activity -


we have alert screen warns user of problem need fix.

i have been given task make alert re-appear if user hits home button , goes business. (this critical problem needs fixed.)

so added code onpause event:

    handler handler = new handler();     handler.postdelayed(new redisplay(), redisplay_delay); 

which give user 10 seconds , run this:

private class redisplay implements runnable {     @override     public void run() {         log.fatal("redisplaying:" + ending);         if(!ending){             intent intent = new intent(getapplicationcontext(), untetheredalertactivity.class);             intent.addflags(intent.flag_activity_reorder_to_front);             startactivity(intent);         }     } } 

only doesn't make application current application. know how this?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -