title: android programming saving array using onsaveinstancestate
body: <p>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.</p>
  
  <p>I am trying to use onSaveInstanceState(Bundle outState) method to solve it</p>
  
  <p>I have to save a 3 dimensional Character array(i.e. i have declare it by <code>char[][][] a=newchar[3][3][3]</code>)</p>
  
  <p>I am using the following code to save it</p>
  
  <pre><code>    public void onSaveInstanceState(Bundle outState)
  {
      outState.putCharArray(char[][][] "a", a);
      super.onSaveInstanceState(outState);
  }
  </code></pre>
  
  <p>but it gives the following error</p>
  
  <pre><code>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[][][])
  </code></pre>