When I take the 4 pictures (see the loop in dispatchTakePhotoIntent) and add each to the Uri Arraylist (see last line in onActivityResult); the array comes back to me blank. I was wondering if this has to do with the rotating screen when taking a picture (the program is in landscape). I understand that onSaveInstanceState could fix this. How do I pass the ArrayList<Uri> to the saveInstanceState?
onSaveInstanceState() uses a Bundle object to store data, and that Bundle is sent to OnRestoreInstanceState(). The Bundle has the appropriate methods to store and retrieve an array.
Brian Tkatch wrote:onSaveInstanceState() uses a Bundle object to store data, and that Bundle is sent to OnRestoreInstanceState(). The Bundle has the appropriate methods to store and retrieve an array.