我只是无法获得我的数据库列的索引,而其他列索引工作正常。该列是图像(item4)和我得到-1的索引
CursorDb.moveToFirst();
if (CursorDb.getCount()>0)
do
{
int i=CursorDb.getColumnIndex(item2);//ok
int t=CursorDb.getColumnIndex(item3);//ok
int z=CursorDb.getColumnIndex(item4);//not ok
byte b[]=CursorDb.getBlob(4);
我的创建代码和插入工作正常。创建是
private static final String DATABASE_CREATE =
"create table if not exists titles (_id integer primary key autoincrement, "
+ "link text not null UNIQUE, RssTitle text not null,Rtl text not null,image BLOB);";
感谢帮助!