Start a new topic

How to get all users in android in a blocking manner

I'm trying to get all the users in the Users collection but having no luck at all, could you please help me to achieve this in a blocking manner?

Thanks for your help, altough your answer is wrong because there are no a blocking method with that signature (you're taking an async one), i've figured out to solve my problem using:



`User[] users = myClient.user().retrieveBlocking(new Query()).execute();`



Thanks again for your help

Hey,



Take a look at the `User` class javadocs-- it shows a master list of all available methods. http://devcenter.kinvey.com/android/reference/api/java/reference/com/kinvey/java/User.html#



You probably want the retrieveBlocking method, with an empty query--



myClient.user().retrieveBlocking(new Query()).execute();





edited to remove callback parameter, was thinking async sorry about that!

Login or Signup to post a comment