Android Question Activity events

Markos

Active Member
Licensed User
Longtime User
Hi All

Does anyone have the complete list of events associated with an Activity?
 

udg

Expert
Licensed User
Longtime User
https://www.b4x.com/android/help/views.html#activity

Events:
Touch (Action As Int, X As Float, Y As Float)
KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
KeyUp (KeyCode As Int) As Boolean
WindowFocusChanged (Focused As Boolean)
ActionBarHomeClick
PermissionResult (Permission As String, Result As Boolean)
Click
LongClick
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
test.gif
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Hi All

Does anyone have the complete list of events associated with an Activity?

You should watch the 'Erel Teaches' series of videos, especially this one. What you want is at about 4 minutes if my memory serves me correctly (I've posted this answer before). Anyway you should first watch this whole video, then you should watch the other videos too. They are all extremely informative and you WILL learn new programming techniques and the correct way to implement your code.

 
Last edited:
Upvote 0
Top