Sharing state across Android activities

view full story

http://stackoverflow.com – I'm having trouble passing along state data between different activities. Right now I have four of them: A coordinates between activities (a big onActivityResult method) and has no real UI (just a blank layout) B adds some data (String) C adds some data (taking pictures) D shows a review of the data before uploading it, state is deleted afterwards First I stored the state of this workflow in the instance variables of activity A, but most of the time Android had garbage collected A when returning from B (probably because of orientation changes) so I was getting Null Pointer Exceptions. Then (HowTos)