Dim r As Reflector
Dim motion1 As Object
r.Target = r.GetContext
'cwm = r.RunMethod2("getSystemService", "window", "java.lang.String")
uptime = r.RunStaticMethod("android.os.SystemClock", "uptimeMillis", Null, Null)
'Msgbox("uptime" & uptime,"")
eltime=uptime+100
'Msgbox("uptime" & uptime,"")
'Private ACTION_UP = 1, ACTION_MOVE = 2, ACTION_DOWN = 0 As Int
motion1=r.RunStaticMethod("android.view.MotionEvent","obtain",Array As Object( uptime,eltime,0, 300,300,0),Array As String("java.lang.long","java.lang.long","java.lang.int","java.lang.float","java.lang.float","java.lang.int"))
r.Target=Panel1
'sendPointerSync
r.RunMethod4("onTouchEvent", Array As Object(motion1), Array As String("android.view.MotionEvent"))
r.Target = r.GetContext
motion1=r.RunStaticMethod("android.view.MotionEvent","obtain",Array As Object( uptime,eltime,1, 300,300,0),Array As String("java.lang.long","java.lang.long","java.lang.int","java.lang.float","java.lang.float","java.lang.int"))
r.Target=Panel1
r.RunMethod4("onTouchEvent", Array As Object(motion1), Array As String("android.view.MotionEvent"))
'https://www.b4x.com/android/forum/threads/action_pointer_down-etc.36990/#content
Dim motion1 As Object
r.Target = r.GetContext
'cwm = r.RunMethod2("getSystemService", "window", "java.lang.String")
uptime = r.RunStaticMethod("android.os.SystemClock", "uptimeMillis", Null, Null)
'Msgbox("uptime" & uptime,"")
eltime=uptime+100
'Msgbox("uptime" & uptime,"")
'Private ACTION_UP = 1, ACTION_MOVE = 2, ACTION_DOWN = 0 As Int
motion1=r.RunStaticMethod("android.view.MotionEvent","obtain",Array As Object( uptime,eltime,0, 300,300,0),Array As String("java.lang.long","java.lang.long","java.lang.int","java.lang.float","java.lang.float","java.lang.int"))
r.Target=Panel1
'sendPointerSync
r.RunMethod4("onTouchEvent", Array As Object(motion1), Array As String("android.view.MotionEvent"))
r.Target = r.GetContext
motion1=r.RunStaticMethod("android.view.MotionEvent","obtain",Array As Object( uptime,eltime,1, 300,300,0),Array As String("java.lang.long","java.lang.long","java.lang.int","java.lang.float","java.lang.float","java.lang.int"))
r.Target=Panel1
r.RunMethod4("onTouchEvent", Array As Object(motion1), Array As String("android.view.MotionEvent"))
'https://www.b4x.com/android/forum/threads/action_pointer_down-etc.36990/#content