[android-developers] Android Mouse/MotionEvent

2010-12-28 Thread Ankur Avlani
Hi All, It seems I am the first one to experiment on this, since I have got much reply to this. I tried to use the touch event, but it doest seem to work. Please find my code snippet below: Instrumentation inst = new Instrumentation(); long downTime = SystemClock.uptimeMillis(); long e

Re: [android-developers] Android Mouse/MotionEvent

2010-12-27 Thread Ankur Avlani
Hi, I tried to use the touch event, but it doest seem to work. Please find my code snippet below: Instrumentation inst = new Instrumentation(); long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); MotionEvent me = MotionEvent.obtain(downTime,

Re: [android-developers] Android Mouse/MotionEvent

2010-12-26 Thread vikram jain
make use of touch event for mouse event On Mon, Dec 27, 2010 at 1:21 AM, Ankur Avlani wrote: > Hi All, > > I am trying to build a server android, which will take keyboard and mouse > actions, and pass it on to the appropriate view. So far I am successful in > getting keyboard events. But I nee

[android-developers] Android Mouse/MotionEvent

2010-12-26 Thread Ankur Avlani
Hi All, I am trying to build a server android, which will take keyboard and mouse actions, and pass it on to the appropriate view. So far I am successful in getting keyboard events. But I need some help in generating the mouse/motion events. Can someone throw some light on how will that work.