[Solved] Problems using Bundle. Unable to find method?


You want to retreive data from saved instace bundle then make use of following method in your activity.

@Override
public void onRestoreInstanceState(Bundle savedInstanceState) {
  super.onRestoreInstanceState(savedInstanceState);

  this.animationNumber = savedInstanceState.AnimationGetNewNumber();//your code of retriving data from bundle

  Log.i("debug", "saved data: " + myString);
}

Note: there is no open() and close() method for bundle instace.

solved Problems using Bundle. Unable to find method?