I done my application almost.
but i am still some issues.
in my app search option is there.
edittext button
when i enter the value in edittext box ,these value i want to use in database
i have one method in database.
public Cursor getRecord(long rowid)
{
}
i am using that one in my activity as
Using java Syntax Highlighting
- Cursor c=db.getRecord(35);
- if (c.moveToFirst())
- Toast.makeText(this,
- "id: " + c.getString(0) + "\n" +
- "date: " + c.getString(1) + "\n" +
- "text: " + c.getString(2),
- Toast.LENGTH_LONG).show();
- else
- Toast.makeText(getBaseContext(), "No such record found...Try again!", Toast.LENGTH_SHORT).show();
- //Log.e("no record found", "no record display");
- db.close();
- }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
in the above i am passing the value directly,but i dont want like that.
i want if i enter in edittext box,based on that one i want to display.
And also one more problem is i dont wnat to display thes values in toast class
i want to set these values to text r edit text box.
if i clear these problems,i almost complete my aapp
thanks and regards
janardhan

