Sunday, July 31, 2011

Re: [android-developers] Re: Windows 7, emulator, and orientation changes

On Sun, Jul 31, 2011 at 7:23 AM, H <me@howardb.com> wrote:
> Alternatively, just edit the "default.keyset" file in the root of the
> .android folder. This holds the mappings for keys to functions. If the
> laptop doesn't support various key combos, you can change them in here and
> they take effect the next time you start an emulator. Since it's got
> "default" in the name, I guess it's possible you could put a different named
> file in the avd folder to override the default as well, if need be.
> Just tried this and remapped the Ctrl-F12 to F10, bounced the avd and now
> the screen rotates when I press F10.

Now *that* is a fascinating solution, causing me to take a quick trip
to the docs.

The class in question is over -- we determined the problem was general
(i.e., the keys didn't work in Eclipse either), and she didn't seem
that interested in trying to figure out how to reconfigure her
notebook, so she let it drop.

If you launch the emulator from the command line, you can create your
own keyset file, apparently, if you do not wish to mess with the
current one. Run emulator -help-keyset-file for more.

Heck, you can even use this to do something with those SysRq and
ScrollLock keys that nobody doe anything with... :-)

Many thanks!

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

Warescription: Three Android Books, Plus Updates, One Low Price!

--
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

No comments:

Post a Comment