title: Items in listview not setting up using BaseAdapter and SimpleAdapter
body: <p>I'm facing problem with setting up the items in <code>ListView</code>, I'm using an <code>Async</code> task for updating the items. Here is what I have done so far.</p>
  
  <p><code>Async Task onPostExecute()</code></p>
  
  <pre><code>@Override
      protected void onPostExecute(String result) {
          notifyList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
          try {
  
              JSONObject rootObj = new JSONObject(result);
              JSONObject jSearchData = rootObj.getJSONObject("notifications");
  
              int maxlimit = 5;
  
              for (int i = 0; i &lt; maxlimit; i++) {
                  JSONObject jNotification0 = jSearchData.getJSONObject(""
                          + i + "");
  
                  String text = jNotification0.getString("text");
                  String amount = jNotification0.getString("amount");
                  String state = jNotification0.getString("state");
  
                  System.out.println(text);
                  System.out.println(amount);
                  System.out.println(state);
  
                  HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
                  map.put("text", text);
                  map.put("amount", amount);
  
                  notifyList.add(map);
              }
  
              if (notification_adapter != null) {
                  notification_list.setAdapter(new CustomNotificationAdapter(
                          notifyList));
              }
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>Here is my CustomNotification class which extends <code>BaseAdapter</code></p>
  
  <pre><code>public class CustomNotificationAdapter extends BaseAdapter {
  
      public ArrayList&lt;HashMap&lt;String, String&gt;&gt; notificationData = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
      public CustomNotificationAdapter(
              ArrayList&lt;HashMap&lt;String, String&gt;&gt; notificationData) {
          this.notificationData = notificationData;
      }
  
      @Override
      public int getCount() {
  
          return notificationData.size();
      }
  
      @Override
      public Object getItem(int position) {
  
          return notificationData.get(position).get("text").toString();
      }
  
      @Override
      public long getItemId(int position) {
  
          return notificationData.get(position).get("text").hashCode();
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
  
          View vi = convertView;
          LayoutInflater inflater = getLayoutInflater();
  
          vi = inflater.inflate(R.layout.custom_notification_list, null);
          TextView notificationText = (TextView) findViewById(R.id.notificationText);
          TextView notificationAmount = (TextView) findViewById(R.id.notificationPoint);
          notificationText
                  .setText(notificationData.get(position).get("text"));
          notificationAmount.setText(notificationData.get(position).get(
                  "amount"));
  
          return vi;
  
      }
  
  }
  </code></pre>
  
  <p>NotificationAdapter class which extends <code>SimpleAdapter</code></p>
  
  <pre><code>public class NotificationAdapter extends SimpleAdapter {
  
  List&lt;Map&lt;String, String&gt;&gt; cur_list = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
  
  public NotificationAdapter(Context context,
          List&lt;? extends Map&lt;String, ?&gt;&gt; data, int resource, String[] from,
          int[] to) {
      super(context, data, resource, from, to);
  
  }
  }
  </code></pre>
  
  <p>I'm able to get all the data from <code>JSONResponse</code> but I'm not able to show it on the list. What am I missing?</p>
  
  <p>Any kind of help will be appreciated.</p>