0

I've recently started learning Android (after completing Java EE), and come across a reference variable (savedInstanceState) of a class named Bundle, passed as an argument in the method called onCreate. I've been pondering upon it for quite a while and cannot find any relevant answer! Help?

Mad Physicist
  • 107,652
  • 25
  • 181
  • 264

1 Answers1

0

onCreate method is responsible to launch the activity and bundle class is a kind of data structure which stores the data used previously if some disturbance occurs in during using that activity (like you rotated the phone if someone called you ) with the help of reference variable savedinstancestate and you can now access the previous data that means you will start from there where picked up the phone.

Pankaj
  • 2,220
  • 1
  • 19
  • 31