Hello all -

I'm have issues outputting data to a listView. Not sure why but the app crashes hard. The error logs really don't say much to help me figure out why this it's crashing. Here's the code in it entirety... any help would be great! Thank so much in advance! btw... I'm really new to this forum and java so be genital ;) Also, these's another thread I created about Arrays it was another approach to the same problem. However, after much searching I think this is the direction I should be moving.

Java Code:
import java.util.ArrayList;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.app.ListActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class StatusActivity extends ListActivity {
/** Called when the activity is first created. */
	TextView txt;
	public void onCreate(Bundle savedInstanceState) {

		setListAdapter(new ArrayAdapter<String>(this, R.layout.status, this.fetchData()));

	    ListView lv = getListView();

	    lv.setOnItemClickListener(new OnItemClickListener() {
		    public void onItemClick(AdapterView<?> parent, View view,
		        int position, long id) {
		      // When clicked, show a toast with the TextView text
		    	  ((TextView) view).getText(),


	public ArrayList<String> fetchData() {

			// Set url, key, value to retrieve
			String URL = "http://www.xxx.com/android-json-list.php";
			String KEY = "itemCode";
			String VALUE = "6107";	  

		    HttpHelper httpHelper = new HttpHelper();
		    String returnedValues = httpHelper.getServerData(URL, KEY, VALUE);
		    ArrayList<String> listItems = new ArrayList<String>();

		    	JSONArray jArray = new JSONArray(returnedValues);
		        for(int i=0; i < jArray.length(); i++){
		            JSONObject json_data = jArray.getJSONObject(i);
		    catch(JSONException e){
				    Log.e("log_tag_activity", "Error parsing data "+e.toString());
	    return listItems;

The HttpHelper I created.

Java Code:
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import android.util.Log;

public class HttpHelper  {

	public String returnString;
	public String getServerData(String URL, String KEY, String VALUE) {
		   InputStream is = null;
		   String returnString = "";
		    //the year data to send
		    ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
		    nameValuePairs.add(new BasicNameValuePair(KEY,VALUE));

		    //http post
		            HttpClient httpclient = new DefaultHttpClient();
		            HttpPost httppost = new HttpPost(URL);
		            httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
		            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
		            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");
		            returnString = sb.toString();
		    }catch(Exception e){
		            Log.e("log_tag", "Error converting result "+e.toString());
            return returnString;