@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putString("key", "value"); }In this simple example, a key-value pair is being saved to the `Bundle` object passed as an argument to the `onSaveInstanceState` method. This `Bundle` can be restored later in the `onCreate` method of the activity if it is being recreated after being destroyed. Package library: `android.app.Activity` belongs to the default Android framework package, which is `android`.