How to return response to calling function? (Android-App calling Java REST-Server via JSON)
问题 I'm rewriting some pieces of an Android App to call a REST-Server I've written in Java, using the Spring-Boot Framework. To summarize, let's say in the app, function A calls a function B in my MainController (which is supposed to manage the Client-Server Communication). Function B calls (with a few extra steps) calls my Server. When function B makes the call, it uses an anonymous inner class overriding a method to define how to handle the response. I struggle to get that response from the