list of backendlessUsers in an arrayList

Hey there,

i am a beginner in android and backendless and i am trying to implement an arraylist with the current users in my table in backenless but i couldn’t figure out how to do that , can you help me please ?

Hello, as I understand, you want to retrieve all users in your app. To do it check this documentation https://backendless.com/documentation/data/android/data_basic_search.htm

and try this code:


Backendless.Persistence.of( BackendlessUser.class).find( new AsyncCallback<BackendlessCollection< BackendlessUser>>(){
  @Override
  public void handleResponse( BackendlessCollection<BackendlessUser> foundUsers )
  {
     List<BackendlessUser> users = foundUsers.getCurrentPage();
  }
  @Override
  public void handleFault( BackendlessFault fault )
  {
    // an error has occurred, the error code can be retrieved with fault.getCode()
  }
});

Thank you , i will try this