Super helpful Bundle process explanation


#1

For those of you who are beginners in both Android and Java, I found this amazing link where the Bundle process, step by step, is explained very well. I still don’t entirely understand it (meaning, I could not create it myself from scratch), but this webpage talks about exactly how we use the Bundle class, create it by creating an Intent, and then calling it by using the startActivityForResult() method. Basically a Bundle is a way to pass information from one activity to the next. So in our case, it passes information between QuizActivity.java and CheatActivity.java. I hope you find this helpful!

http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html


#2

Has anyone found a good explanation for using the key value pair to save data across rotation? I got it to work for the second challenge but I do not understand it fully. Something similar to the following would be wonderful. I went to the API and I feel the fog is clearing a bit.

I am getting different results between the emulator and my phone. This is complicating the challenge.

Thanks.

[quote=“Nonimizu”]For those of you who are beginners in both Android and Java, I found this amazing link where the Bundle process, step by step, is explained very well. I still don’t entirely understand it (meaning, I could not create it myself from scratch), but this webpage talks about exactly how we use the Bundle class, create it by creating an Intent, and then calling it by using the startActivityForResult() method. Basically a Bundle is a way to pass information from one activity to the next. So in our case, it passes information between QuizActivity.java and CheatActivity.java. I hope you find this helpful!

http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html[/quote]