Hello every one,
Is it possible to use java class from library directly?
In file library we can call methods directly for instance
But I can't call my class like that for example I have class names Utils
I intend to call Utils in b4a like that,
but Utils is not recognized, I have to add ShortName annotation and declare variable then call test method from variable like below.
in b4a,
Any help would be appreciated
Is it possible to use java class from library directly?
In file library we can call methods directly for instance
B4X:
File.delete()
Java:
public class Utils {
public void test(){
// DO SOME OPERATION
}
}
B4X:
Utils.test()
Java:
@BA.ShortName("Utils")
public class Utils {
public void test(){
}
}
B4X:
dim utils as Utils
utils.test()