Android Question [SOLVED]Detect User_Interaction with B4xPages

koffie

Member
Licensed User
Longtime User
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".

detect user_interaction:
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.
 
Last edited:

Mike1970

Well-Known Member
Licensed User
Longtime User
THANK YOU

where did you find that Java function??
 
Upvote 0
Its in this older thread:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…