title: The application has stopped unexpectedly! Arraylist Hashmaps and TabHost
body: <p>I have a problem with my code and i don't seem to find it ! The error is...Application has stopped unexpectedly! I don't have a clue about what's going on. (i'm also a DevAndroid begginer)
  My first tab works ok, but when i switch to the second one with the ArrayList Hashmap, it crashes.</p>
  
  <p>Here is my BonuriActivity code:</p>
  
  <pre><code>public class BonuriActivity extends ListActivity {
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.tab_bonuri);
  
      final String url="http://xxxzzz/throwdata.php?p=bonuri";
  
      ListView lv = (ListView) findViewById(android.R.id.list);
      SimpleAdapter adapter = new SimpleAdapter(BonuriActivity.this,
              getBonuri(url), R.layout.list_bon, 
              new String[] {"Produs", "Cantitate", "UM", "IdVinzare"},
              new int[] { R.id.Produs, R.id.Cantitate, R.id.UM, R.id.IdVinzare });
      lv.setAdapter(adapter);
  }
  
  private ArrayList&lt;HashMap&lt;String,String&gt;&gt; getBonuri(String KEY_121) {
  
         InputStream is = null;
         String result = "";  
  
         HashMap&lt;String,String&gt; entitiesHashMap = new HashMap&lt;String, String&gt;();
         ArrayList&lt;HashMap&lt;String, String&gt;&gt; returnString = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;();
  
          //http post
          try{
                  HttpClient httpclient = new DefaultHttpClient();
                  HttpPost httppost = new HttpPost(KEY_121);
                  HttpResponse response = httpclient.execute(httppost);
                  HttpEntity entity = response.getEntity();
                  is = entity.getContent();
  
          }catch(Exception e){
                  Log.e("log_tag", "Error in http connection "+e.toString());
          }
  
          //convert response to string
          try{
                  BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8);
                  StringBuilder sb = new StringBuilder();
                  String line = null;
                  while ((line = reader.readLine()) != null) {
                          sb.append(line + "\n");
                  }
                  is.close();
                  result=sb.toString();
          }catch(Exception e){
                  Log.e("log_tag", "Error converting result "+e.toString());
          }
          //parse json data
          try{
                  JSONArray jArray = new JSONArray(result);
                  for(int i=0;i&lt;jArray.length();i++){
                          JSONObject json_data = jArray.getJSONObject(i);                    
                          //Get an output to the screen
                          entitiesHashMap.put("Produs", json_data.getString("Produs"));
                          entitiesHashMap.put("Cantitate", json_data.getString("Cantitate"));
                          entitiesHashMap.put("UM", json_data.getString("UM"));
                          entitiesHashMap.put("IdVinzare", json_data.getString("IdVinzare"));
                          returnString.add(entitiesHashMap);
                  }
          }catch(JSONException e){
                  Log.e("log_tag", "Error parsing data "+e.toString());
          }
  
          return returnString; 
      }     
  
  }
  </code></pre>
  
  <p>And here is my TabBonuri.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="fill_parent"
  android:layout_height="fill_parent" android:id="@+id/tab2Layout"&gt;
  
  &lt;ListView
  android:id="@android:id/list"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
  &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And my list_bon.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearView xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;TextView
  android:id="@+id/UM"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:padding="10dp"
  android:text="UM"
  android:textSize="16sp"
  &gt;
  &lt;/TextView&gt;
  
  &lt;TextView
  android:id="@+id/Cantitate"
  android:layout_width="wrap_content"
  android:layout_height="21px"
  android:padding="10dp"
  android:text="Cantitate"
  android:textSize="16sp"
  &gt;
  &lt;/TextView&gt;
  &lt;TextView
  android:id="@+id/Produs"
  android:layout_width="121px"
  android:layout_height="22px"
  android:padding="10dp"
  android:text="Produs"
  android:textSize="16sp"
  &gt;
  &lt;/TextView&gt;
  &lt;TextView
  android:id="@+id/IdVinzare"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:visibility="invisible"
  android:text="TextView"
  /&gt;
  &lt;/LinearView&gt;
  </code></pre>
  
  <p>I gradly thank you for your time spent helping me.
  Please comment if you see why is my program crashing, cause i'm already stressed out with this ('ve been on this for 2 days, it's frustrating).</p>