android - How to switch to an Activity that is running through an already running Activity -


I know there is a lot of discussion about this but I can not get it to work properly.

Activity (a) = Eklitap and android.intent.action.SEND can get
< Code> Activity (b) = SingleTask

When I select a photo from the Android gallery and open it with (A) - (A) Redirect (B) intends.

It is working properly and if I press home and select (A) from Lankar then (B) is brought in front.

Now, if I press Home and reopen the Android Gallery then (A) is > Onstart () and onResume () . And I'm looking (A).

I would like to switch this problem to (b) because the user needs to complete what he was doing.

I can not see a good way to start the Android Gallery (A) Why does it?
Maybe I do something wrong with opening the Android gallery (A)
Any help would be appreciated

Based on limited information in the question, it is possible logic, assuming A is redirecting B to intent to its secret ().

1) Open Gallery, select a picture, open it with A., redirect it to B.

  In the Task 1, in the stack the gallery, A, B (Stack Press the Home, select A from the launcher  
  Launcher app creates a new task, in the new Task 2 stack Activity A is a new example, its on krait () is implemented and intent is redirected to B. B is moved from Task 1 to Task 2 and its On Newentant () is implemented. 3) Press Home, and Open Gallery  
  Task1 is restarted and now it is above the heap. Its on-start (), onstart () and again () are applied   

This is the scenario, you can try to redirect the meaning of A to Onstart () Or do not have B in the form of SingleTasks.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -