android asynchronous get foreground activity -


is there (thread safe) method can call java on android give me handle foreground activity background task? able in order safely post toasts on top of top window.

thanks.

you wouldn't have handle foreground ui activity show toast message. can background thread this:

runonuithread(new runnable() {     public void run() {         // make toast, show toast     } }); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -