Useful notes & manuals
from the
world wide web
L:
P:
Register now!
Save data/variable on screen rotation or other activity re-creation Android
Source code from: unknown Created by tlw on 20.11.2019 @ 01:46

Saving data:

@Override
public void onSaveInstanceState(Bundle outState)
{
//---save whatever you need to persist—
outState.putString("ID", "1234567890");
super.onSaveInstanceState(outState);
}

Loading data:

@Override
public void onRestoreInstanceState(Bundle savedInstanceState)
{
super.onRestoreInstanceState(savedInstanceState);
//---retrieve the information persisted earlier---
String ID = savedInstanceState.getString("ID");
}

create   configuration   rotate   screen   data   variable
 
Created by THE LOST WEB © 2009-2012