Activity_Resume question

brelto85

Active Member
Licensed User
Longtime User
hi,

Is possible to determine if the "Activity_Resume" event fire, comes from changed orientation or clicking the notification icon?

thanks
alberto
 

barx

Well-Known Member
Licensed User
Longtime User
Look at the notification documentation and check it's .SetTag property.

If you use this then you will be able to detect starting from notification.

Not sure for the orientation change, Maybe require a broadcast receiver?
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
my goal is to execute an action only if i click on the notification

with tag property, the action is executed also changing orientation and also running application from application manager button
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
i read it!!

i have a service that runs in startforeground mode
the service initialize a notification icon

if i put that code into a Activity_resume event (Main Activity), it is executed also when change the orientation and also if resume application from task button
 
Upvote 0

Similar Threads

Replies
2
Views
316
D
  • Question
Android Question Activity_Resume run 2 times
2 3 4
Replies
65
Views
8K
Deleted member 103
D
Top