how to implement popup window without any actions performed in android? -


i want show pop window after activity has been launched. after few seconds delay pop should come. how can implement that?any ideas or examples?? if helpful ..thanks in advance.

many ways so. if have list of activities want show pop-up, can uses 2 ways:

  1. create service actively checks foreground [top activities] in stack , if activity on want show pop-up, send broadcast show pop-up.
  2. create class extends asynctask class, waits xsecs in doinbackground , shows pop-up on onpostexecute, call execute of asynctask class while oncreate ends if want show 1 time.

asynctask class best use in such scenario. can re-use asynctask class every in project.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -