Hi,
I'm trying to finish a library I'm writing and one of the things I need is to pass the current activity from B4A to the library using detecti.getSize(Getactivity)) I managed it with detecti.getSize(Getcontext)).
I did something similar with context:
I'm trying to finish a library I'm writing and one of the things I need is to pass the current activity from B4A to the library using detecti.getSize(Getactivity)) I managed it with detecti.getSize(Getcontext)).
B4X:
public static String getSize(Activity activity) {
I did something similar with context:
B4X:
public static String getWorld(Context context) {
B4X:
Sub GetContext As JavaObject
Return GetBA.GetField("context")
End Sub
Sub GetBA As JavaObject
Dim jo As JavaObject
Dim cls As String = Me
cls = cls.SubString("class ".Length)
jo.InitializeStatic(cls)
Return jo.GetFieldJO("processBA")
End Sub