Sunday, April 17, 2011

[android-developers] Re: how do I change screen orientation from ADB or equivalent?

Flip command in monkey is expected to work only in emulator and Dream
(see MonkeyFlipEvent.java).

On Apr 15, 4:56 pm, Bill Napier <nap...@android.com> wrote:
> Then again, I just tried it with the Nexus S and it doesn't work.  It may
> work on devices with keyboards like Droid.  Here's how I tested it:
>
> $ adb shell "monkey --port 9999"
> $ adb forward tcp:9999 tcp:9999
> $ telnet localhost 9999
> Connected to localhost.
> Escape character is '^]'.
> flip open
> OK
> flip close
> OK
>
> And nothing happened on my phone.  It may actually work on a device that has
> a flip out keyboard (G1 or droid for example), but I don't have one handy.
>
>
>
>
>
>
>
>
>
> On Fri, Apr 15, 2011 at 11:24 AM, Bill Napier <nap...@android.com> wrote:
> > It looks like the "flip" command from the protocol that monkeyrunner uses
> > may do it for you.  It looks like it never got added to MonkeyDevice to be
> > exposed as part of the monkeyrunner API.
>
> >http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cm...
>
> > On Thu, Apr 14, 2011 at 4:26 AM, lbendlin <l...@bendlin.us> wrote:
>
> >> Well, the monkey can do it (change orientation, that is)  so you might be
> >> able to learn how to do it from the monkey source code.
>
> >> --
> >> 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+unsubscribe@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them
>
> --
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate