Basic4Android Library Generator
Hi folks,
I'm proud to unveil my latest project: B4A Library Generator.
This tool generates .java files from native jar files which are compatible with Basic4Android.
Note that this is NOT a miraculous program that automatically creates a b4a library from any normal java library.
Instead this tool imports and generates the classes you chose from a jar file and generates:
- Package
- Imports
- Annotiations (manifest)
- Permissions
- Attributes
- Initialize
- Getters
- Setters
- and all other methods from the jar file.
Let's take a look at the outcome:
My written version of SocialAuth Contact Class:
[Java] Basic4Android SocialAuth - Pastebin.com
It took me perhaps 15 minutes to type all above
Basic4Android Library Generator
[Java] Basic4Android SocialAuth Library Generator - Pastebin.com
The class was generated in less than 1 minute, and added everything needed.
No changes has been made!
Instructions:
The tool is very easy to use.
1. Select jar file
2. Enter ShortName, Package name, Author, Version and if it's an Activity Object.
* Note that during every compile time, the author and version becomes empty.
This is due every library can only have one author and version annotiation in the project. Just leave it empty for your next classes.
3. Click the Permissions button and add every permission you want.
e.g "android.permission.INTERNET" click ok, and click button again for the next one.
* Note that after compiling, the permissions gets removed and you'll have to enter them again for other classes.
4. From the left list, select the classes you want to generate and move them to the right list with the buttons.
5. At the right side, select the class you wish to compile.
6. Compile! A workspace will have been created in the same directory of the jar file.
7. For other classes, you'll have to change the ShortName, and select the new class.
(I was planning to add compiling too (to .class files and .jar), that's why the button is called Compe rather than generate.
Download:
The tool is available for free here:
https://www.dropbox.com/s/68dw143ou16tsk5/B4ALibGen.zip
I recommend scanning for virusses if you don't trust it, and happy lib making!
Have fun!
Tomas