I added singleTask attribute to MainActivity(A) to avoid loading the activity multiple times. After the other activity(B) is on MainActivity(A->B), if I go back to home screen by pressing home button and re-launch the application, there is no B (A->B->HOME->A)
There IS an answer in here, saying to add FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_SINGLE_TOP every time calling A Activity.
BUT, I have a Intent data scheme in Manifest file, and the application should be launched by the scheme.
Please, help me...