title: Convert Android.Widget.Button to JSON
body: <p>i am making an App where i have to save dynamically created Android.Widget.Button-Objects and its Attributes, like ID, when the App is closed and opened again.<br>
  These buttons are saved in an ArrayList.</p>
  
  <p>My idea was to convert my Button-Objects into JSON and save them in the SharedPreference.</p>
  
  <p>My Problem now is that i cant convert the Buttons into JSON, i am using following code for this, if found on stackoverflow:</p>
  
  <p>(For Tryouts i am using a new Button-Object)<br></p>
  
  <pre><code>Button btn = new Button(this); 
  Gson gson = new Gson(); 
  String json = gson.toJson(btn);
  </code></pre>
  
  <p>Its working with String-Object or Integer-Object but not with Button-Object.</p>
  
  <p>Can someone help me?</p>