- Embarcadero seems to have gone out of their way to make it hard to find some of the various bits of the JNI that they have provided.
- That there are some pieces missing from the supposedly comprehensive JNI wrappers.
- Delphi provides none of the syntactic sugar that makes working with the Java SDK more Pascal-like.
- The JNI wrappers use a combination of classes and interfaces. Since interfaces do not have constructors, this makes constructing instances of a class an operation which cannot simply be taken directly from any Java code you might find.
Visit the Te Waka o Pascal blog to learn how to retrieve the battery level on Android using Delphi