Want to detect User_Interaction with B4XPages. Came across a few lines of code on the forum. The thread mentioned something like " use this in activity module".
Sub User_Interaction
Log("interaction")
End Sub
#if Java
@Override
public void onUserInteraction() {
processBA.raiseEventFromUI(null, "user_interaction");
}
#End If
it produces this error:
src\b4a\xxx\xxx.java:258: error: method does not override or implement a method from a supertype
@override
^
Any idea what i am doing wrong ?
EDIT: When posting Javacode in main, things work.