i have question about two different Bundle object in below methods :
onSaveInstanceState(Bundle outState);
onCreate (Bundle savedInstanceState);
how android system know that bundle object in onCreate method is object that programmer used for save his/her activity states and onCreate method use that Bundle object to get activity state that is killed by system?
is the Bundle object one of the Activity class Members and super.saveInstanceState(outState);
save the Bundle in the Bundle object of Activity and when an activity call onCreate(Bundle ) method this member send to onCreate method?how can i use Bundle in onCreate( ) method?
please help me…
The values you save in the
onSaveInstanceStatemethod’s bundle will be sent back to you inonCreate. As an example of how this works.EXAMPLE