title: Android JSON user registration
body: <p>I'm in the process of building an Android application that interacts via a JSON API with my website.  I've basically got everything together except for user registration on the app.  I have an idea on how I want to implement it, but I want to see if there might be an easier way.</p>
  
  <p>My approach is:</p>
  
  <ol>
  <li><p>When the <code>RegisterActivity</code> is started, display a loading indicator, and make an asynchronous JSON request (via <a href="http://code.google.com/p/google-gson/" rel="nofollow">google-gson</a>) to the server get all the fields needed for registration.</p></li>
  <li><p>When the listener receives a response, populate the spinners, checkboxes, etc. with the possible registration field values.</p></li>
  <li><p>Allow the user to complete the form and submit via JSON.</p></li>
  </ol>
  
  <p>You're probably thinking, "Why don't you just store the possible registration spinner/checkbox values in the app itself?"  The possible values for each field will be changing over time as I continue to test/push the product, and I don't want to break a build simply because I added/removed some possible options on the server.  This is why I'm dynamically building the form based upon a JSON request.</p>
  
  <p>Given that, I'm wondering:</p>
  
  <ul>
  <li>Am I thinking about this the wrong way?</li>
  <li>If this is a good approach, is there a JAR or sample implementation someone has out there that already accomplishes this?</li>
  </ul>