SQL query convert to array Android
<p>Hello i am new in android and i really need help with something. I got a prepopulate database in my sqlitehelper class and i need a query request returns a String[] table. 
Example my database got 3 columns id, name, tel my query will be based on id so the cursor will get {1 mary 2134} i want that to be converted to an String [1 mary 2134]. Dont know if it helps but all my requests will be getting a single row returned, cause the query its primary key based.<br>
my code is something like that:</p>

<pre><code>   public String[] getSingleRow(String id){
    String[] asColumnsToReturn = new String[] { COLUMN_ID,COLUMN_NAME, COLUMN_TELEPHONE}
    Cursor cursor = this.dbSqlite.query(TABLE_NAME, asColumnsToReturn, COLUMN_ID + "=" + id, null, null, null, null);


    //here is where i need help
    String table[]=new String[2];
    int i = 0;

                while (i &lt; table.length) {
                table[i]  = cursor.getString(i);
                i++;
                cursor.moveToNext();
                }
                cursor.close();
return table;
  }
</code></pre>

<p>I need that so in my main class i can set textview like: </p>

<pre><code>TextView myTextView = (TextView)findViewById(R.id.textView1);
Table= SQLiteHelper.getSingleRow(id);
myTextView.setText(Table[0]); // "0"for id "1" for name and "2" for telephone 
</code></pre>

<p>So my question is how do i convert a single row returned query to a String[]</p>
