Eerst moet je herhalen in je getUserSLDetails methode in uw SQLiteHandler klas
if (cursor.moveToFirst()) {
do {
Datas pMemebr = new Datas();
pMemebr.setSL_DESC(cursor.getString(0));
pMemebr.setTR_DATE(cursor.getString(1));
pMemebr.setACTUAL_BALANCE(cursor.getString(2));
pMemebr.setAVAILABLE_BALANCE(cursor.getString(3));
mMemberDetails.add(pMemebr);
Log.d(TAG, "List<Datas>) Getting members' SL Description: " + cursor.getString(0));
Log.d(TAG, "List<Datas>) Getting members' SL TR Date: " + cursor.getString(1));
Log.d(TAG, "List<Datas>) Getting members' SL Actual Balance: " + cursor.getString(2));
Log.d(TAG, "List<Datas>) Getting members' SL Available Balance: " + cursor.getString(3));
Log.d(TAG, "-------------------------------------------------------------------------");
Log.d(TAG, "List<Datas>) Members's SL Details data: " + pMemebr.toString());
} while (cursor.moveToNext());
}
cursor.close();
return mMemberDetails;
}
Vervolgens in uw MijnAdapter je moet de onderstaande methode wijzigen -
@Override
public int getItemCount() {
//return mDataset.length;
return mdataset.size();
}
Verwijder de logboeken zodra u heeft geverifieerd dat uw gegevens correct binnenkomen.