How can I attach a SQLite ID to a Spinner object in android?
<p>I want to pull a couple columns from a database and add those to the spinner, but I want the _id of the row to be hidden in there somewhere too.  Take partial sample code below for example:</p>

<pre><code>    public void fillProfileSpinner()
    {
        String query = "SELECT _id,fruit_type,weight,colour FROM fruits;";
        SQLiteDatabase profileDatabase = fruitCakes.database.getReadableDatabase();
        Cursor cursor = profileDatabase.rawQuery(query, null);
        startManagingCursor(cursor);
        try {
            cursor.moveToFirst();
            do
            {
                String fruitType = cursor.getString(cursor.getColumnIndex("fruit_type"));
                double weight = cursor.getString(cursor.getColumnIndex("weight"));
                String colour = cursor.getInt(cursor.getColumnIndex("colour"));
                fruitAdapter.add(colour + " " + weight + " " + fruit_type);
            }
            while(cursor.moveToNext());
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
        cursor.deactivate();
        cursor.close();
        profileDatabase.close();
}
</code></pre>

<p>I believe this is what I'm looking for, however I find it very confusing:
<a href="http://stackoverflow.com/questions/6983514/android-spinners-say-i-pull-spinner-selections-from-sql-can-i-also-add-their-sq">Android Spinners, say I pull spinner selections from SQL, can I also add their SQL _id&#39;s to the spinner values?</a></p>

<p>How can I get the _id column in there somewhere, so that is accessible from some method in the spinner object?</p>
