sqliteを使用してAndroidアプリを開発しています。次のコード行を実行すると、エラーが発生しました。
if(student_name.length()>0)
{
db.open();
Cursor c= db.searchByName(student_name);//upto this all is fine
c.moveToFirst(); //when i debug, i found exception is on this line.
names=new String[c.getCount()];
for(int i=0;i<names.length;i++)
{
names[i]=c.getString(1);
c.moveToNext();
}
db.close();
}
どんな助けでも大歓迎です...