Android: To retain object when configure changed
<p>I want to retain object when configure changed.Google training says using <code>onRetainNonConfigurationInstance()</code> and <code>getLastNonConfigurationInstance()</code>,but they are already deprecated in API level 13.And the doc recommands to use the new Fragment API <code>setRetainInstance(boolean)</code> instead,but I don't want to use FragmentActivity.</p>

<p>So how should I retain the object??HELP!!</p>
