History is a model class which has userName,msgType, rowId.
After getting result, i just passing in list in another activity. How to parse and get each items from History class?
Here is code
public void getHistory(List<History> arg0) {
intent = new Intent(
Constants.HISTORY_RESULT);
intent.putParcelableArrayListExtra(Constants.MESSAGE, (ArrayList<History>) arg0);
getApplicationContext().sendBroadcast(intent);
}
***in another activity***
if (action.equals(Constants.HISTORY_RESULT)) {
onHistory(intent.getParcelableArrayListExtra(Constants.MESSAGE));
}
protected void onHistory(ArrayList<Parcelable> arrayList) {
// here how to get each items from model class History?
}