﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-君子性非异也，善假于物也。-文章分类-Android相关</title><link>http://www.cppblog.com/xushaohua/category/10805.html</link><description>如有恒，何须三更起，半夜眠；最怕莫，三天打鱼两天晒网，竹篮打水一场空！</description><language>zh-cn</language><lastBuildDate>Thu, 24 Jun 2010 10:13:10 GMT</lastBuildDate><pubDate>Thu, 24 Jun 2010 10:13:10 GMT</pubDate><ttl>60</ttl><item><title>[转]Android模拟器快捷键</title><link>http://www.cppblog.com/xushaohua/articles/118585.html</link><dc:creator>neter</dc:creator><author>neter</author><pubDate>Wed, 23 Jun 2010 10:52:00 GMT</pubDate><guid>http://www.cppblog.com/xushaohua/articles/118585.html</guid><wfw:comment>http://www.cppblog.com/xushaohua/comments/118585.html</wfw:comment><comments>http://www.cppblog.com/xushaohua/articles/118585.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/xushaohua/comments/commentRss/118585.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xushaohua/services/trackbacks/118585.html</trackback:ping><description><![CDATA[<p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">在键盘上映射的就是home键，这倒是很好记。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Menu键</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">用于打开菜单的按键，在键盘上映射的是F2键，PgUp键同样可以。另外，看英文原文的意思，貌似这个键在某些机型上会被设计为左软件(left softkey)</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Start键</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">这个键在模拟器和G1真机上我都没有找到到底是哪个键。映射的是Shift+F2或PgDn，某些机型会被设计为右软键(right softkey)。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Back键</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">返回键，用户返回上一个UI或者退出当前程序。键盘上映射ESC键。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Call/Dial键（电话键）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">接听来电或启动拨号面板，这是一部手机最基本的功能键。PC键盘映射为F3键。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Hangup/Light Off键（挂机键）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">挂断电话或关闭背灯用。键盘映射F4键。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Search键</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">在提供了Search功能的应用里快速打开Search对话框，比如在Browser里可以快速打开地址搜索栏。键盘映射F5。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Power Down键（关闭电源）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">对应模拟器左上边缘的电源按钮，不过似乎在模拟器上按这个键并没什么用处。键盘映射F7。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Volume Up （增大音量）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">键盘映射Ctrl+5，也可以使用小数字键盘的&#8221;+&#8221;键。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Volume Down（减小音量）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">键盘映射Ctrl+6，也可以使用小数字键盘的&#8221;-&#8221;键。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Camera 键</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">键盘映射Ctrl+F3。不过也许是我设置有问题，在模拟上用这个快捷键似乎没任何反应。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Switch Screen Orientation （旋屏）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">旋转模拟器屏幕方向，键盘映射Ctrl+F11。这是非常有用和常用的快捷键，几乎所有应用都会受到屏幕方向带来的Layout变化困扰，在开发程序时候，一定要测试屏幕方向的兼容性。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Cell Networking On/Off （手机网络开关）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">这里说的手机网络指的是GPRS/3G这种数据网络，并不影响GSM网络。对于编写基于网络应用的同学，这个快捷键非常有用，可以测试网络异常中断的情况。键盘映射F8</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Code Profiling</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">不知此为何物-.-，快捷键F9。英文原文：F9 (only with -trace startup option)</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Fullscreen Mode （全屏模式）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">一个没什么用的鸡肋功能。也许对于测试画面比较精细的游戏能有点帮助。快捷键是大家喜闻乐见的Alt+Enter。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Trackball mode （轨迹球模式）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">这是一个非常有用的功能，按F6之后，可以打开轨迹球模式，模拟器左上角会显示一个小轨迹球。通过鼠标移动，可以模拟轨迹球的转动。对于测试利用轨迹球操作的应用会非常方便。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; "><strong>Trackball mode Temporaily （临时轨迹球模式）</strong></p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">这个功能很有意思，如果你有比较短暂的使用轨迹球的操作，那么可以按住Delete键滑动鼠标。释放Delete键会自动结束轨迹球模式。</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">四方向键和中心键</p><p style="margin-top: 10px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, san-serif; font-size: 14px; line-height: 21px; ">对应键盘四方向键和Enter键，当然也可以用数字小键盘，KEYPAD_5对应中心键。</p>
<img src ="http://www.cppblog.com/xushaohua/aggbug/118585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xushaohua/" target="_blank">neter</a> 2010-06-23 18:52 <a href="http://www.cppblog.com/xushaohua/articles/118585.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>