If you are looking to synchronously perform a request you could use a RequestFuture to wait until the response has been returned. This should not be done on the main thread, as it will cause your UI to lock up.
This has been answered as well here: https://stackoverflow.com/a/18541806