Per prima cosa devi eseguire un'iterazione nel tuo getUserSLDetails metodo nel tuo SQLiteHandler classe
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;
}
Quindi nel tuo MyAdapter è necessario modificare il metodo seguente -
@Override
public int getItemCount() {
//return mDataset.length;
return mdataset.size();
}
Per favore rimuovi i log dopo aver verificato che i tuoi dati arrivino correttamente.