1

Unknown error in txtview.settext in android

view story
linux-howto

http://stackoverflow.com – I want to set txt of an text view from a query but I get "index -1 requested with size 1 error..Can some one help me? Cursor information = db.rawQuery("select id as _id,description from poet where _id="+Peot_ID_for_db,null); TextView poet_info=(TextView)findViewById(R.id.Poet_info); poet_info.setText(information.getString(information.getColumnIndex("_id"))); // poet_info.append(information.getString(information.getColumnIndex("description"))); I searched this error but nothing found in google..I hope you can help me.. I have just one row in my table that matches with this query (HowTos)