If you want to do unit testing etc take a look at 1) http://developer.android.com/resources/tutorials/testing/helloandroid_test.html and 2) http://developer.android.com/resources/tutorials/testing/activity_test.html which should help you out.
On Jul 21, 9:14 pm, Matt Rusiniak <[email protected]> wrote: > Hi everyone, > > I'm trying to figure out a way to send touch events to the foreground > activity. Essentially I want to write something that allows me to run > it from the shell and just say "I touched this co-ordinate", so that I > can automate some UI tasks for testing. Essentially what Monkey does, > but application agnostic. > > I think that android.view.MotionEvent holds the key, but I'm not sure > how to run something without view so that I don't interfere with what > is on the screen. Perhaps with a service, but I'm unclear how that > would work. > > Does anyone have any ideas? > > Thanks, > Matt -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

