3.1, the command format used
Is:
Monkey-C Android. Intent. Category. launcher-V 50
Figure 3.8 and Figure 3.9 respectively specify the class test command input and the test process.
3.1.3 specify the test event type and frequency
The monkey command provides multiple options to specify the event type and frequency, such as touch events, navigation events, track events (composed of one or more random moves, click ). Sometimes, in order to test a specific application, special function tests need to
. permission. get_tasks allows a program to obtain information about the current or most recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently orrecently running tasks: a thumbnail representation of the tasks, whatactivities are running in it, etc .)Android. Permission. hardware_test allows access to hardware (allows access to hardware peripherals .)Android. permission. inject_events allows a program to in
388 17.2.2 high-speed canvas surfaceview method-surfaceholder. callback example 390 17.2.3 smooth sawtooth method-antialias example 392 17.2.4 illustration of methods and methods-simple game395 17.2.5 depicts the storage and reply examples of the canvas-canvas method 405 17.2.6 example of Button event processing-Key 408 17.2.7 examples of touch and trackball event processing-touch trackball 410 17.2.8 exa
:
onKeyDown(int, KeyEvent)-Called when a new key event occurs.
onKeyUp(int, KeyEvent)-Called when a key up event occurs.
onTrackballEvent(MotionEvent)-Called when a trackball motion event occurs.
onTouchEvent(MotionEvent)-Called when a touch screen motion event occurs.
onFocusChanged(boolean, int, Rect)-Called when the view gains or loses focus.There are other methods that do not belong to the View class, but can directly affect the way you handle eve
Precautions for switching Android images and precautions for using Android Images
Considerations for splitting Android Images
1. Two sets of resolutions are required for the cut graph: 480*800,720*1280. In different folders, the same image must have the same name in the two folders.
2. In case of Stretched and flat images, you can use 9patchto to prepare them and use xxx.9.png images. Advantages: high flexibility, reusable, reduced package size, and increased program running efficiency. (For ex
allows a program to obtain the space occupied by any package (allows an application to find out the space used by anyPackage .) Android. permission. get_tasks allows a program to obtain information about the current or most recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc .) android. permission
, and then press optical trackball to confirm.3) after the ext partition, press the [Optical Track Ball] to automatically enter the next swap size window. Here is the page for setting the swap partition size, which is generally 32 MB ~ It can be between mb. After selecting the size, press [Optical Track Ball] to determine. After confirmation, we can see that partitioning SD card... please wait... indicates that the partition is in progress. The donel
. get_tasksAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc .)
Android. Permission. hardware_testAllow access to hardware (allows access to hardware peripherals .)
Android. Permission. inject_eventsAllows a program to intercept
. get_tasksAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc .)Android. Permission. hardware_testAllow access to hardware (allows access to hardware peripherals .)
Android. Permission. inject_eventsAllows a program to intercept
, there is a dead end in front of it, and the women are crying on the ground.
"Do what you want to do. Please do not kill me ." The man smiled and said,"
Really? Now you start to chase me ."
3. When someone is good at using a notebook computer and listens to a friend who says that a mouse is better than a trackball, he borrowed one from his friend.
Home trial. Because it is not essential, electricity his friends. A: The mouse is more difficult to use
thumbnail representation of the tasks, Whatactivities is running in it, etc.)Android.permission.hardware_testAllow access to hardware (allows access to hardware peripherals.)Android.permission.inject_eventsAllows a program to intercept user events such as keystrokes, touches, trackball and so on until a time stream, Android Development Network alert is hook technology bar (allows an application to inject user events (keys, touch,
Reprinted from Http://www.cnblogs.com/xiaoweiz/p/3833079.htmlFirst, let's look at the definition of touch mode. It is a state of the view hierarchy when the user interacts with the phone. It's very easy to understand,Represents whether the most recent interaction occurred through a touchscreen, because there are other ways of interacting on Android devices, such as d-pad, scrolling balls, and so on.Why is Android introducing such a mode? This is because of interaction, design considerations, whe
-trackball 2Adjust the percentage of track events (track events consist of one or several random movements, sometimes accompanied by clicks)--(Trackball)--pct-nav 3Adjust the percentage of basic navigation events (navigation events consist of up/down/left/right from the direction input device)--pct-majornav 4Adjust the percentage of primary navigation events (these navigation events usually trigger actions
the visible keyboard type (including the soft keyboard ).
Main text input method
NokeysQwertyL2key
Nokeys: The device does not have a hard keyboard for text input;Qwerty: the device has a standard hard keyboard, whether visible or not;12 key: the device has 12 keys, regardless of whether the user is visible.The keyboard configuration field specifies the available main text input methods.
Validity of the navigation key
NavexposedNavhidden
Navexposed: the navigation
the Accounts Service)
Android. permission. GET_PACKAGE_SIZEAllows a program to obtain the space occupied by any package (Allows an application to find out the space used by any package .)
Android. permission. GET_TASKSAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks
connects to the computer.Open the command line and enter the adb shell commandEnter the mobile phone directory, enter the cd etc command, and enter the etc directoryEnter the cat factory. ini command to check whether factory. ini in the mobile phone contains the test item.Cause 4: inconsistent string DefinitionsTo display the test items properly, make sure that the test item string is the same in ftm_test_item [] and factory. ini.Factory. cStatic item_t ftm_test_items [] = {# Ifdef FEATURE_FTM_
)
Android. permission. GET_PACKAGE_SIZE
Allows a program to obtain the space occupied by any package (Allows an application to find out the space used by any package .)
Android. permission. GET_TASKS
Allows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities a
Emulated Device Key
Keyboard Key
Home
HOME
Menu (left soft key)
F2 or Page-up button
Start (Right soft key)
Shift-F2 or Page Down
Return
ESC
Call
F3
Host key
F4
Open Google browser search
F5
Power supply key
F7
Increase volume
KEYPAD_PLUS, Ctrl-5
Decrease volume
KEYPAD_MINUS, Ctrl-F6
Camera shortcuts
Ctrl-KEYPAD_5, C
mouse button, and 0x112 indicates the BTN _ MIDDLE) in the left-side navigation pane. for other code meanings, see include/linux/input. h file. if the event type code is EV_REL, the code value indicates the trajectory type. for example, it indicates the x-axis direction of the mouse (Code: 0x00) and the y-axis direction of the mouse (Code: 0x01 ), indicates the direction of the wheel in the mouse (Code: 0x08 ).
Type:
EV_KEY, keyboard
EV_REL, Relative Coordinate
EV_ABS, absolute Coordinate
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.