Thanks Joseph, but I'm looking at doing automation of the entire device, so input at any moment to any screen.
I've been writing some helper functions around Monkey scripts as I was not able to use the private APIs (wasn't able to dig deep enough), which seems to be working alright so far. On Jul 22, 2:04 pm, Joseph Earl <[email protected]> wrote: > If you want to do unit testing etc take a look at > 1)http://developer.android.com/resources/tutorials/testing/helloandroid... > and > 2)http://developer.android.com/resources/tutorials/testing/activity_tes... > 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

