[android-developers] Re: Need a way to simulate Button Click Event.

2009-09-24 Thread Al
Is it possible to post the key strokes form background app? On Aug 19, 4:26 pm, markwhitney markwhit...@gmail.com wrote: I agree with Rama, sending keystrokes is nice, but it seems cumbersome when you really want to click something clickable in an activity.  I only see sendKeys in

[android-developers] Re: Need a way to simulate Button Click Event.

2009-09-24 Thread Dianne Hackborn
On Thu, Sep 24, 2009 at 11:51 AM, Al a.shersh...@gmail.com wrote: Is it possible to post the key strokes form background app? Nope. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private

[android-developers] Re: Need a way to simulate Button Click Event.

2009-08-25 Thread android.bu...@gmail.com
What's the difference between clickView() and tapView()? I have tried both, the tapView() doesn't work at all for a button. On Aug 19, 9:41 pm, markwhitney markwhit...@gmail.com wrote: Brilliant.  Thanks Mark! On Aug 19, 9:28 am, Mark Murphy mmur...@commonsware.com wrote: markwhitney

[android-developers] Re: Need a way to simulate Button Click Event.

2009-08-19 Thread markwhitney
I agree with Rama, sending keystrokes is nice, but it seems cumbersome when you really want to click something clickable in an activity. I only see sendKeys in InstrumentationTestCase. Is there a proper way to simulate a button click using something in ActivityInstrumentationTestCase(2) or some

[android-developers] Re: Need a way to simulate Button Click Event.

2009-08-19 Thread Mark Murphy
markwhitney wrote: I agree with Rama, sending keystrokes is nice, but it seems cumbersome when you really want to click something clickable in an activity. I only see sendKeys in InstrumentationTestCase. Is there a proper way to simulate a button click using something in

[android-developers] Re: Need a way to simulate Button Click Event.

2009-08-19 Thread markwhitney
Brilliant. Thanks Mark! On Aug 19, 9:28 am, Mark Murphy mmur...@commonsware.com wrote: markwhitney wrote: I agree with Rama, sending keystrokes is nice, but it seems cumbersome when you really want to click something clickable in an activity.  I only see sendKeys in

[android-developers] Re: Need a way to simulate Button Click Event.

2009-07-07 Thread Raju
Hi Dianne, Thanks for the response, this solution solved my problem partially. By navigating to the required button by using sendkeys (trail and error) then clicking on that button. My concern is, I'm developing a tool which should simulate user actions on any application irrespective of

[android-developers] Re: Need a way to simulate Button Click Event.

2009-07-06 Thread Dianne Hackborn
You use Instrumentation. This may help: http://mylifewithandroid.blogspot.com/2008/12/instrumentation-and-junit.html The Instrumentation class has methods to send events and interact with the application in other ways. On Mon, Jul 6, 2009 at 4:06 AM, Raju ramaraj...@gmail.com wrote: Hi,