Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキストボックスにカーソルを介して取得したデータを表示する方法..「カーソルが範囲外です...」というエラーが表示されます
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null); editname.settext(c.getString(0));
使うだけ、 c.moveToFirst()前にc.getString(0);
c.moveToFirst()
c.getString(0);
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null); if (c.moveToFirst()){ editname.settext(c.getString(0)); }