No. The book uses Codename One which has different abstractions for network. E.g. to invoke a Rest request on the server one would do something like this:
I don't like using annotations and injection for mobile code. The problem with those is two fold:
- They can't be verified by the compiler so you end up with errors in runtime for complex conditions
- Obfuscation usually fails in these cases so you need complex proguard logic
Instead we use a different technique specifically designed to withstand obfuscation while keeping the runtime much smaller. It's nice when an Android app compiles to a 3mb APK instead of 5mb. But when we compile that code to iOS the difference is 15 fold!
co-founder of the open source Codename One project