title: Android spinner display char array. Error: type argument cannot be of primitive type
body: <p>I am trying to display an array of character in a spinner.</p>
  
  <pre><code>private char[] locations = new char[]{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',};
  </code></pre>
  
  <p>here I am trying to add them</p>
  
  <pre><code>// add items into spinner dynamically
  public void addItemsOnSpinner() {
  
      ArrayAdapter&lt;char&gt; dataAdapter = new ArrayAdapter&lt;char&gt;(this,
              android.R.layout.simple_spinner_item, locations);
      dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinnerPosition.setAdapter(dataAdapter);
  }
  </code></pre>
  
  <p>Error: type argument cannot be of primitive type</p>
  
  <p>anyone suggest another way of doing this.</p>