Android onsaveinstancestate()
<p>so i get the main idea of how to use </p>

<pre><code>  protected void onSaveInstanceState (Bundle outState)
</code></pre>

<p><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)" rel="nofollow">http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)</a></p>

<p>also from <a href="http://stackoverflow.com/questions/151777/saving-activity-state-in-android">Saving Activity state in Android</a></p>

<p>but my problem is what if this was the first time the application is being created? then nothing would have been stored in the bundle before....and if so then when i try to call something out from the bundle that hasn't been saved before what do i get?null?
for example
i have this in my code</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    String [] b=savedInstanceState.getStringArray("MyArray");
}
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
    super.onSaveInstanceState(savedInstanceState);
    String [] a={"haha"};
    savedInstanceState.putStringArray("MyArray", a);
}
</code></pre>

<p>in the FIRST time the application is ever opened what would the value of b be?
and after the application has been used once what would the value of b be?</p>

<p>Many thanks!</p>
