title: create adapter to fill Spinner with objects
body: <p>I have an Android application with a <code>Spinner</code> and want to fill it dynamically with my own objects. The objects do exist already as a <code>List&lt;T&gt;</code>.</p>
  
  <p>The objects are of type <code>Category</code>:</p>
  
  <pre><code>public class Category implements Serializable {
      private Long id;
      private String name;
  
      // constructors
      // getter &amp; setter
      // hashCode, equals
      // toString
  }
  </code></pre>
  
  <p>I know that I have to write a Adapter. How do I do that? I've tried to find some examples... no luck. Please advice.</p>