Android Question How I can see wich activity is in the front or is active

birnesoft

Active Member
Licensed User
Longtime User
when I call a sub with callsubdelayed the called activity comes in the foreground.
I want to ask if the activity is in the front before I modify the views of it.

A chat arrived in a service and send a refresh to the chat activity
but not if the activity isn't active

Tx Björn
 

Star-Dust

Expert
Licensed User
Longtime User
when I call a sub with callsubdelayed the called activity comes in the foreground.
I want to ask if the activity is in the front before I modify the views of it.

A chat arrived in a service and send a refresh to the chat activity
but not if the activity isn't active

Tx Björn
When an activity goes to the foreground, it raises Activity_Resume.
When it goes into backgound Activity_Pause
 
Upvote 0
Top