Emulated device key
Keyboard key
Home
Home
Menu (left softkey)
F2 or page-Up button
Star (right softkey)
Shift-F2 or page down
Back
ESC
Call/dial button
F3
Hangup/End call button
F4
Search
F5
Power Button
F7
Audio volume up button
Keypad_plus, Ctrl-5
Audio volume down button
Keypad_minus, Ctrl-F6
Camera button
Ctrl-KEYPAD_5, Ctrl-F3
Screen rotation switc
:
Home button main interface key
F2, Pageup menu (soft-left) button left soft key
Shift-F2, Pagedown Star (soft-Right) button right soft key
Escape back button back key
F3 call/dial button dialing/call key
F4 hangup/endcall button ends a call
F4 power button Power Supply key
F5 Search button search key
Keypad_plus, Ctrl-F5 volume up button to increase the volume key
Keypad_minus, Ctrl-F6 volume down button reduces the volume key
Ctrl-KEYPAD_5, Ctrl-F3 camera button camera keys
Keypad_7, Ctrl-F1
application 80% is touch, you can set the percentage of this parameter to a corresponding higher percentage.4 、--pct-motion effect : Adjusts the percentage of motion events. (Motion events are made up of a down event on the screen, a series of pseudo-random movement events, and an up event)example : adb shell monkey--pct-motion 100-v 10Note: Commonly used parameters, note that the moving event is a straight line slide, the following trackball movemen
using a custom view in the xml layout, you must use the "fully qualified class name"
Common View component callback methods:
Android provides some event processing callback methods for GUI components. Taking View as an example, the following methods are provided:
① Trigger a screen event on this component: booleanOnTouchEvent(MotionEvent event );② When a button is pressed on the component: booleanOnKeyDown(Int keyCode, KeyEvent event );③ When a button on the component is released: booleanOn
-500-96 = 6994mb.
Another detail is that when you use the partition software to perform partition operations, the partition size may not be exactly the above value, more or less, or it doesn't matter if there is a decimal number.
4. Partitioning Method
The above mentioned a lot of SD card related knowledge, may be a lot of oil are impatient, so let's talk about the specific SD card partition operations. To partition, You need to first enter the recovery (recovery mode, flash mode). The mag
allowing an application to solve only one problem for the user has to be said to be a joke of IOS.
6. No focus
Some Android mobile phones have trackball and other input devices. you can scroll the trackball to focus on a certain control on the interface. This can help users with some touch barrier. More importantly, with the release of Android @ Home, the android system may appear on refrigerators, washin
In the previous section, the Monkey tool was described using the environment of the building, portal. In this section I will describe in detail the use of the Monkey tool. First, Monkey test introduction Monkey testing is a means of Android platform automation, through the monkey program to simulate the user touch screen, sliding trackball, keystrokes and other operations to test the program on the device, testing the duration of the program is abnorm
Listeners
The event listener is an interface of the View class and contains a separate callback method. These methods are called by the android framework when the listener registered in the view is triggered by user interface operations. The following callback methods are included in the event listener interface:Onclick () Included in view. onclicklistener. It is called when the user touches this item (in touch mode), or focuses on this item through a browser key or a
subclasses.
onSizeChanged(int, int, int, int)
Called when the size of this view has changed.Called when the dimension of the view changes.
Drawing
onDraw(android.graphics.Canvas)
Called when the view should render (rendering) its content.Called when the view needs to render his content
Event processing
onKeyDown(int, KeyEvent)
Called when a new hardware key event occurs.Called when a new hardware press event occurs
direction is lost.
Menu key: used for calling and storage. The purpose is to retain more space for content display.
Search key: marketing the google search business
Shut down and lock the screen like other mobile phones.
Trackball touchpad
Volume key (-+) and photo key
Global return buttons
It can be cross-application. For example, If you enable application a and go back to application B through the notification system, you can go back with the r
Ext.: http://blog.csdn.net/huangbiao86/article/details/8490743Shell, Monkey, System, Android, File system Monkey, example, introductionFirst, Monkey test introductionMonkey testing is an automated test of the Android platform, through the monkey program to simulate the user touch screen, sliding trackball, keys and other operations to the device's program on the pressureForce test, the duration of the procedure will be abnormal.Ii. Introduction of Mon
. This method can also stimulate any button message listener.
Parameters
Events to be distributed
Return Value
If this event is processed, true is returned; otherwise, false is returned.
Public voidHide()
Remove the controller from the screen.
Public booleanIsShowing()
(Translator's note: determines whether the media controller is visible .)
Public voidOnFinishInflate()
Called when the XML file loads the view. This function is called at the final stage of loading, and all child views have bee
information than startup prompts, test completion, and end results. Level 1 provides more detailed testing information, such as events sent individually to the ActivITy. Level 2 provides more detailed setup information, such as the Activity that was selected or unchecked in the test. The following example uses "-v-v-V", which represents the output of the most verbose monkey log. - - 800000 >c:\long_radio_report.txtMonkeyIntroduction to TestingMonkey testing is a means of automated testing of t
Use the Monkey Help command to view the command parameters as follows:C:\users\chenfenping>adb shell Monkey-helpUsage:monkey [-P allowed_package [-P allowed_package] ...][-C Main_category [-C main_category] ...][--ignore-crashes] [--ignore-timeouts][--ignore-security-exceptions][--monitor-native-crashes] [--ignore-native-crashes][--kill-process-after-error] [--hprof][--pct-touch PERCENT] [--pct-motion PERCENT][--pct-trackball PERCENT] [--pct-syskeys P
as needed6: Do not use the absoluteLayout LayoutUI Best Practices
This is a copy from Moto. The best practices for Android UI are as follows:
1: Read the UI Guidelines (UI guideline)2: Understand and design the touch mode3: supports multiple interactive modes (such as keyboard, trackball, and touch screen)4: Use notifications and window shade)5. Interaction between applications is supported.6: Keep your user operations fast and sensitive7. Use form p
-after-errorDescription: Used to specify whether to stop execution of the current application error when it occurs. Assuming this parameter is specified, the application stops and remains in its current state when the user application error occurs[option]--throttle Description: Used to specify the interval of time for the Monkey action event, in milliseconds[option]--pct-trackball Description: Adjust the percentage of track events[option]--pct-nav Des
does not open the lid).
preferred non-lending navigation send (Primarynon-touchnavigationmethod)
Nonav, dpad; trackball; wheel.
nonav: The device does not have a non-touch navigation; trackball: The device is navigated by the trackball, wheel: The device is navigated by a pulley.
Platform version(Platform Vers
basic GUI component and override the component's event handling method, which is the custom viewNote: When you use a custom view in an XML layout, you need to use the fully qualified class name
Callback methods for common view components:Android provides some callback methods for event handling for GUI components, with view as an example, there are several methods
① trigger screen event on this component: Boolean ontouchevent(Motionevent event);② when a button is pressed on the co
be operated by the preceding actions. Android phones are divided into physical objects and screen objects.
Physical object
The physical key is a classic icon of the Android mobile phone.
◆ Return key: demonstrate the concept of the Android system activity Stack
◆ Main Screen key: ensures the navigation start point and quickly returns to the origin point when the direction is lost.
◆ Menu key: it is the outgoing call and storage function command. The purpose is to retain more space for c
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.