Hello Forum Users,
I tried to imitate Erels Example Lib "FirstLib" from the Tutorial, but when I run the Application, I get the message "The Application MyFTP (Process de.Dominik.MyFTPTest) has stopped unexpectly".
My B4A-Code:
My Java-Code:
I'm sure you can help me.
Thanks a lot
I tried to imitate Erels Example Lib "FirstLib" from the Tutorial, but when I run the Application, I get the message "The Application MyFTP (Process de.Dominik.MyFTPTest) has stopped unexpectly".
My B4A-Code:
B4X:
'Activity module
Sub Process_Globals
Dim fl As FirstLib
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
Log(fl.calculate(2, 5))
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
My Java-Code:
B4X:
package de.Dominik.FirstLib;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
@ShortName("FirstLib")
@Version(1f)
public class FirstLib {
/**
* Multiplicates the first given Parameter with the second
* @param a: The first multiplication factor
* @param b: The second multiplication factor
* @return: The product of both factors
*/
public int calculate(int a, int b)
{
return a*b;
}
}
I'm sure you can help me.
Thanks a lot