title: How to get items from Listadapter in android?
body: <p>I have a Listadapter wherein there are 4 different strings, and storing them to my listview. Now I want to get all the items from one of those strings and parse it to "date", so how can I able to populate my calendar dates from my listadapter?</p>
  
  <p>Following the codes: </p>
  
  <pre><code>  // Get User records from SQLite DB
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; eventsList = controller.getAllevents();
      // If users exists in SQLite DB
      if (eventsList.size() != 0) {
          // Set the User Array list in ListView
          ListAdapter adapter = new SimpleAdapter(CalendarActivity.this, eventsList, R.layout.calendar_event_list, new String[]{TAG_PID,
                  TAG_EVENTTITLE,TAG_EVENTSTART,TAG_EVENTEND},
                  new int[]{R.id.pid, R.id.eventname, R.id.eventstart, R.id.eventend});
          ListView myList = (ListView) findViewById(android.R.id.list);
          myList.setAdapter(adapter);
  
          String eventstart = adapter.toString(); //I got null exception here..
  
          Date edate = ParseDate(eventstart);
  
          if (caldroidFragment != null) {
  
              caldroidFragment.setBackgroundResourceForDate(R.color.Green, edate);
              caldroidFragment.refreshView();
          }
      }
  </code></pre>