noob: add 2 strings from json to custom listadapter
<p>Im looking to run a query on my external database, i got all the coding done up to this point. Although the coding works, I need it to put the "name" and the "cphone" in an array of some sort so i can add it to the custom list adapter as a double row.</p>

<p>'''''''''''''''''''''''''''''''''''</p>

<p><em>name</em></p>

<p>'''''''''''''''''''''''''''''''''''</p>

<p><em>cphone</em></p>

<p>'''''''''''''''''''''''''''''''''''</p>

<p>to this</p>

<p>'''''''''''''''''''''''''''''''''''</p>

<p><em>name        cphone</em></p>

<p>'''''''''''''''''''''''''''''''''''</p>

<pre><code>Log.d("RESULT", result);

        try {
            JSONArray jArray = new JSONArray(result);
            ArrayList&lt;String&gt; items = new ArrayList&lt;String&gt;();
            for (int i = 0; i &lt; jArray.length(); i++) {
                JSONObject json_data = jArray.getJSONObject(i);
                String name = json_data.getString("username");
                String cphone = json_data.getString("password");
                items.add(name);
                items.add(cphone);
                Log.d(name, "Sever Output");
            }

            ArrayAdapter&lt;String&gt; mArrayAdapter = new ArrayAdapter&lt;String&gt;(
                    getdata.this, R.layout.stashrow, items);
            ListView sList = (ListView) findViewById(R.id.liststash);
            sList.setAdapter(mArrayAdapter);

        } catch (Exception e) {
            Log.e("errorLog", "Error makingView: " + e.toString());
        }
</code></pre>

<p>the problem stands in the item.add(), i can only put one value in at a time so it makes it 2 different lines. If I try adding another textview to the stashrow, it errors out. Is there a better way of doing this?</p>
