Re: [android-developers] Simulate UI Actions on device

2011-06-10 Thread Mark Murphy
On Thu, Jun 9, 2011 at 3:41 AM, gorav  wrote:
> I want to simulate keyboard events, touch events on screen. And, I
> don;t want to have dependency on Android SDK. i.e. I want to deploy
> apk file on device, which can fire some events.

Fortunately, this is impossible, as it would be a massive security flaw.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.0 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate UI Actions on device

2011-06-10 Thread Pepijn Van Eeckhoudt
If you're trying to test your own application code you can do this via 
the Instrumentation API.


Pepijn

On 10/06/2011 14:34, Mark Murphy wrote:

On Thu, Jun 9, 2011 at 3:41 AM, gorav  wrote:

I want to simulate keyboard events, touch events on screen. And, I
don;t want to have dependency on Android SDK. i.e. I want to deploy
apk file on device, which can fire some events.

Fortunately, this is impossible, as it would be a massive security flaw.



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate UI Actions on device

2011-06-11 Thread Gorav Singal
Actually, I want to have mobile application running in background. And, I
have a java application running on desktop, which will send commands through
socket. And, the device application will perform the required UI action.

e.g. touch/click on coordinates x, y

I want to perform UI action on screen regardless whatever on screen. Is it
possible without SDK? If not, then is MonkeyRunner is enough for it?


Thanks



On Fri, Jun 10, 2011 at 6:35 PM, Pepijn Van Eeckhoudt <
pep...@vaneeckhoudt.net> wrote:

> If you're trying to test your own application code you can do this via the
> Instrumentation API.
>
> Pepijn
>
>
> On 10/06/2011 14:34, Mark Murphy wrote:
>
>> On Thu, Jun 9, 2011 at 3:41 AM, gorav  wrote:
>>
>>> I want to simulate keyboard events, touch events on screen. And, I
>>> don;t want to have dependency on Android SDK. i.e. I want to deploy
>>> apk file on device, which can fire some events.
>>>
>> Fortunately, this is impossible, as it would be a massive security flaw.
>>
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Be the change U want to see in the world...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Simulate UI Actions on device

2011-06-11 Thread Mark Murphy
On Fri, Jun 10, 2011 at 9:12 AM, Gorav Singal  wrote:
> Actually, I want to have mobile application running in background. And, I
> have a java application running on desktop, which will send commands through
> socket. And, the device application will perform the required UI action.
> e.g. touch/click on coordinates x, y
> I want to perform UI action on screen regardless whatever on screen. Is it
> possible without SDK?

No, sorry.

> If not, then is MonkeyRunner is enough for it?

Only you can answer that.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate UI Actions on device

2011-06-13 Thread Pepijn Van Eeckhoudt

On 11/06/2011 20:25, Mark Murphy wrote:

On Fri, Jun 10, 2011 at 9:12 AM, Gorav Singal  wrote:

Actually, I want to have mobile application running in background. And, I
have a java application running on desktop, which will send commands through
socket. And, the device application will perform the required UI action.
e.g. touch/click on coordinates x, y
I want to perform UI action on screen regardless whatever on screen. Is it
possible without SDK?
Are you trying to make a remote drawing application or just a remote 
control of a 'form'-like application? In the latter case it's probably a 
better idea to send application commands rather than input events. In 
other words send 'do operation' rather than 'click on do operation button'.


Pepijn

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate UI Actions on device

2011-06-15 Thread Bill Napier
On Sat, Jun 11, 2011 at 11:25 AM, Mark Murphy wrote:

>
> > If not, then is MonkeyRunner is enough for it?
>
> Only you can answer that.
>
>
If MonkeyRunner doesn't work out well, you can always use the same protocol
that MR uses to talk to the device to implement the features yourself.

http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cmds/monkey/README.NETWORK.txt;h=4e78b6c8b05225900b923da0122a85037949abc0;hb=HEAD

Also note that we're actively working on refactoring the MonkeyRunner code
to expose a java API.  Mainly so you don't have to link in all the python
stuff if you don't need it.

Bill

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en