Android setlistAdapter error
<p>hi just getting an error and I'm not sure why can anyone help?</p>

<p>when i run it it forces the application to close. not sure what this means as i'm new but hopefully someone can help?</p>

<p>heres the error from the LogCat<img src="http://i.stack.imgur.com/ChjJs.png" alt="enter image description here"></p>

<p>this is how my json feed is structured i want the news array</p>

<p>{"code":200,"error":null,"data":{"news":[{"news_id":"8086"
I'm getting an error here: in the oneOjectsItem </p>

<p>setListAdapter ( new ArrayAdapter(this, R.layout.single_item, oneObjectsItem)); </p>

<p>here my code</p>

<pre><code>        // Instantiate a JSON object from the request response
        JSONObject jsonObject = new JSONObject(json);



        JSONArray jArray = jsonObject.getJSONArray("news");


        for (int i=0; i &lt; jArray.length(); i++)
        {
            JSONObject oneObject = jArray.getJSONObject(i);
            // Pulling items from the array
            String oneObjectsItem = oneObject.getString("title");



        }


    } catch(Exception e){
        // In your production code handle any errors and catch the individual exceptions
        e.printStackTrace();
    }




    setListAdapter ( new ArrayAdapter&lt;String&gt;(this, R.layout.single_item, oneObjectsItem)); 



ListView list = getListView();
list.setTextFilterEnabled(true);
list.setOnItemClickListener(new OnItemClickListener(){

    public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
            long arg3) {
        // TODO Auto-generated method stub
        Toast.makeText(getApplicationContext(), ((TextView) arg1).getText(),1000).show();
    }



});

}
</code></pre>
