I've been trying to restart the android application when I switch endpoints. I have
Activity A (MAIN) -> Activity B -> Activity C. In Activity C, I switch my endpoint and call ProcessPhoenix.triggerRebirth(this);
This kills the app and launches Activity A, but I also see a FATAL NPE in the onCreate of Activity B. It happens to be coming from classes that I had injected into Activity B.
Why is onCreate and subsequently onCreateView of Activity B called?
I do see Activity A in the background behind the crash dialog though!
I have tried solutions in How to 'restart' an android application programmatically and the other links within that link. The result/behavior is the same.
Any ideas?