I have created an android app it works perfectly fine,but when i change the position of my phone to landscape mode all the all data gets reset that is all the text on the buttons of the game gets replaced by blank values.
I am trying to use onSaveInstanceState(Bundle outState) method to solve it
I have to save a 3 dimensional Character array(i.e. i have declare it by char[][][] a=newchar[3][3][3])
I am using the following code to save it
public void onSaveInstanceState(Bundle outState)
{
outState.putCharArray(char[][][] "a", a);
super.onSaveInstanceState(outState);
}
but it gives the following error
Multiple markers at this line
- Syntax error on token(s), misplaced construct(s)
- The method putCharArray(String, char[]) in the type Bundle is not applicable for the arguments (String,
char[][][])