title: ArrayList HashMap is undefined
body: <p>Can't seem to figure out why I get this error "<code>ArrayList&lt;HashMap&lt;String,String&gt;&gt;, int, String[], int[])</code> is undefined"</p>
  
  <pre><code> // THE ERROR IS RIGHT HERE TO
             ListAdapter adapter = new SimpleAdapter(this, contactList,
                      R.layout.main,
                      new String[] { TAG_FIRSTNAME, TAG_EMAIL, TAG_PHONE }, new int[] {
                              R.id.nameFirst, R.id.email, R.id.mobile });
             //HERE
  </code></pre>
  
  <p>Here is my code. The idea is to take a JSON from an app engine datastore and then divide it up into a list view.</p>
  
  <pre><code>package com.indeeditis; 
  
  
  
  
  public class FinderActivity extends ListActivity   {
  
  
  private static final String TAG_ID = "id";
  private static final String TAG_FIRSTNAME = "nameFirst";
  private static final String TAG_LASTNAME = "nameLast";
  private static final String TAG_EMAIL = "emailAddress";
  private static final String TAG_ADDRESS = "address";
  private static final String TAG_STATE = "state";
  
  private static final String TAG_PHONE = "phone";
  JSONArray contacts = null;
  
  ArrayList&lt;HashMap&lt;String, String&gt;&gt; contactList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.finder);
  
     // Button start = (Button)findViewById(R.id.button9000);
      //start.setOnClickListener(this);
      new EndpointsTask().execute(getApplicationContext());
  
  }
  
  
  
  public class EndpointsTask extends AsyncTask&lt;Context, Integer, Long&gt; {
  
      public Long doInBackground(Context... contexts) {
  
        Contactinfoendpoint.Builder endpointBuilder = new Contactinfoendpoint.Builder(
            AndroidHttp.newCompatibleTransport(),
            new JacksonFactory(),
            new HttpRequestInitializer() {
            public void initialize(HttpRequest httpRequest) { }
            });
    Contactinfoendpoint endpoint = CloudEndpointUtils.updateBuilder(
    endpointBuilder).build();
  
    try {
  
       // final TextView detail = (TextView)findViewById(R.id.textView100);
  
      String apples = endpoint.listContactInfo().execute().toString();
  
      JSONObject jObject = new JSONObject(apples);
  
             try{
          //Get the element that holds the earthquakes ( JSONArray )
          JSONArray  contacts = jObject.getJSONArray("item");
  
          for(int i = 0; i &lt; contacts.length(); i++){
              JSONObject c = contacts.getJSONObject(i);
  
              // Storing each json item in variable
              String id = c.getString(TAG_ID);
              String nameFirst = c.getString(TAG_FIRSTNAME);
              String nameLast = c.getString(TAG_LASTNAME);
              String email = c.getString(TAG_EMAIL);
              String address = c.getString(TAG_ADDRESS);
              String phone = c.getString(TAG_PHONE);
  
              // creating new HashMap
              HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
              // adding each child node to HashMap key =&gt; value
              map.put(TAG_ID, id);
              map.put(TAG_FIRSTNAME, nameFirst);
              map.put(TAG_EMAIL, email);
              map.put(TAG_PHONE, phone);
  
              // adding HashList to ArrayList
              contactList.add(map);
  
  
  
          }
  
             }catch(JSONException e)        {
               Log.e("log_tag", "Error parsing data "+e.toString());
             }
  
  
               // THE ERROR IS RIGHT HERE TO
             ListAdapter adapter = new SimpleAdapter(this, contactList,
                      R.layout.main,
                      new String[] { TAG_FIRSTNAME, TAG_EMAIL, TAG_PHONE }, new int[] {
                              R.id.nameFirst, R.id.email, R.id.mobile });
             //HERE
             setListAdapter(adapter);
  
              // selecting single ListView item
              ListView lv = getListView();
  
    } catch (IOException e) {
      e.printStackTrace();
    } catch (JSONException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
  }
        return (long) 0;
      }
  
  
      }
  
  }
  </code></pre>