Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
My app loads up checkboxes and EditText based on what is in a database. So I don't want to reload ever time a screen rotation happens. How do you save Views to a bundle?
<activity
android:name=".activities.MyActivity"
android:label="@string/app_name"
[B]android:configChanges="orientation[/B]">
</activity>
@Override
public void onConfigurationChanged(Configuration newConfig)
{
//must call super
super.onConfigurationChanged(newConfig);
// if you want to use a new layout,
// call this to reset the content view
setContentView(R.layout.home_layout);
//set your references/values/listeners/whatever
setReferences();
}
