What is the best way to exit an activity and return back to a previously started activity? Right now I feel that the way I am attempting to solve the problem is not how it really should be done. In addition, I am receiving a null pointer exception.
Activity A is started.
Activity B is started from within Activity A.
Activity B calls the native camera and does some image processing with the activityresult.
Activity B calls a new instance of Activity A within onDestroy()
Activity A (new instance) starts.
Exception is thrown.
What I ultimately would really like to do is spawn Activity B from Activity A in a new thread so that a picture could be taken, Activity A could regain focus, and the image processing could be done behind the scenes. Any help with this would be greatly appreciated!