Hello All,
I am a complete novice a making libraries and I have some simple questions. I am trying to port a java library that has multiple classes in multiple files and multiple packages too.
After creating a new java project with a different name and including the android and B4A and Core libs as specified in the tutorial, I did the following:
1. I copied all the java files to the src folder
2. I added the two lines for every class file
import anywheresoftware.b4a.BA.ShortName;
@ShortName("javaclassname")
I have two questions:
1. Can the @ShortName() label be the same as the original java class name ?
2. The java library has multiple packages, actually two. What should be the package name for the project ? can it be anything ? does it have to be "anywheresoftware.b4a.something" ? what should it be ? would that interfere with the existing package names in the java library ?
Thank You
Carlos M.
I am a complete novice a making libraries and I have some simple questions. I am trying to port a java library that has multiple classes in multiple files and multiple packages too.
After creating a new java project with a different name and including the android and B4A and Core libs as specified in the tutorial, I did the following:
1. I copied all the java files to the src folder
2. I added the two lines for every class file
import anywheresoftware.b4a.BA.ShortName;
@ShortName("javaclassname")
I have two questions:
1. Can the @ShortName() label be the same as the original java class name ?
2. The java library has multiple packages, actually two. What should be the package name for the project ? can it be anything ? does it have to be "anywheresoftware.b4a.something" ? what should it be ? would that interfere with the existing package names in the java library ?
Thank You
Carlos M.