Hi I need help with retrieving relations, if this method returns this list to my android project, How can I retrieve this list to use in a listView?
loadTeamsPlayer a = loadTeamsPlayer.getInstance().getInstance().getInstance().getInstance();
a.playersListAsync(teamId, new AsyncCallback() {
@Override
public void handleResponse(Object response)
{
//Should get and use the list here
}
@Override
public void handleFault(BackendlessFault fault)
{
Toast.makeText(getBaseContext(), fault.getMessage(), Toast.LENGTH_LONG).show();
}
});
and also I am not sure what I should put in this part (<List<Map<String, Object).
Backendless.Data.of( PARENT-CLASS ).loadRelations(
LoadRelationsQueryBuilder<List<Map<String, Object>>> queryBuilder,
AsyncCallback<List<CHILD-CLASS>> callback );
Thank You