I am implementing a custom launcher. I have two activity : Activity A with launchMode : singleInstance or singleTask, and Activity B.
Activity A is main screen. There are 2 case :
- If i set Activity A launchMode : singleTask, I call Activity B from Activity A (That's fine). In Activity B, if i press Home key to back main screen, then screen is empty(no any thing...).
- If i set Activity A launchMode : singleInstance, I call Activity B from Activity A, then it shows a blank screen, after go to Activity B(in this case , I press Home key to bac main screen, it works fine).
So, how to resolve this? I want : Call Activity B from Activity A, then it go to Activity B directly, and when I press Home key, it go back to main screen (Activity A).