Iam retrieving data from the database and displaying it as a list,
in the list i want to display the last inserted one as the first and soon
How to acheive this?
Iam fetching data using the following query
public Cursor fetchdata() {
DBHelper.onOpen(db);
Cursor mCursor = db.query(DATABASE_Table, new String[] { "Message",
, "UserInfo", "timeStamp" }, null,
null, null, null, null);
return mCursor;
}
use the method of Cursor class mCursor.moveToLast();