Issue
I know single instance can be achived by setting android:launchMode="singleInstance"
in menifest file. but i want to do it on run time . I think it can be achived by setting FLAG but not sure witch one.. plzz help me.. thanks in advance.
Solution
In general you can use a combination of Intent.FLAG_ACTIVITY_SINGLE_TOP
, Intent.FLAG_ACTIVITY_CLEAR_TOP
, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
and Intent.FLAG_ACTIVITY_NEW_TASK
to accomplish what you want. However, which one (or ones) to use depends on the situation you have.
Answered By - David Wasser
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.