Hi all,
I have writing an application Where I want to launch an
activity on receiving Particular Event and I am finishing through
Broadcast receiver. Activity must remain on the TOP (Means previous
activity must be paused) until another intent received through
Broadcast receiver. MY application works fine, but problem is that
After launching an activity it remains for few secs and previous
activity comes up to overwrite My activity.
Situation is like this Activity B currently running after triggering
external event Activity A launches, remains for few seconds and again
Activity B overrides it. actually Activity A must remain until I give
other defined event which is recevied by Broadcast Receiver. I launch
Activity A in service and Flags set are as follows
Intent.setComponent(new ComponentName("PKG_NAME","PKG_NAME.CLASS"));
Intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_CLEAR_TOP);
I tried out FLAG_ACTIVITY_SINGLE_TOP also but still Situation remains
same. Any hint suggestion is appreciable.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en