How put data in coloumn which data get from one row in sqlite and put to string/textview
<p>How to put data one row from sqlite to textview. I have 2 textview and I want to get data from database sqlite. This is my query:</p>

<pre><code>public Cursor getItem(long itemId) {
    SQLiteDatabase db = this.getWritableDatabase();
    String selectQuery = "SELECT name, link FROM tes WHERE "
            + BaseColumns._ID + "=" + itemId;
    Cursor cursor = db.rawQuery(selectQuery, null);
    return cursor;
}
</code></pre>

<p>And how to put contents of name and link to textview. I want to put in below:</p>

<pre><code>String name = ""; // how to get contents of name from coloumn name in my query?
String link = ""; // how to get contents of link from coloumn link in my query?

textName.setText(name);
textLink.setText(link);
</code></pre>

<p>Thanks.</p>
