![]() ![]() I’ll outline the steps to “import” a B4A project into AS. Nevertheless, this project will have an Android app dependent on a Java library to test the B4A code directly within AS. But what’s more interesting is to use Gradle to automate the generation of the xml for the wrapping jar to be consumed by the B4A IDE and the copying of both jar and xml files to whatever folder you want. ![]() It might not be widely known, but you can actually develop pure Java code (jar) with AS with no Android app/code whatsoever - AS is a cut-down version of JetBrain’s IntelliJ IDEA, after all. To Android Studio (AS) users, I want to share with you a couple of techniques that I use when I want to write Java libraries and run and test the B4A application within AS itself. With B4A being now open-source, you can very easily add extra functionality directly to the internal B4A class and keeps everything tidy. When using the latter, I had to refactor my code so that it used the new class. While B4A source code was proprietary, when I wanted to add functionality to a specific B4A internal library, I had to use reflection, write inline Java or write a new Java class and wrapper to extend the B4A class. It tries to show how to harness some AS features to create a synergistic ecosystem with B4A IDE. I’m afraid this post will only be of interest to developers conversant with or interested in Android Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |