Monkey all options available on the command lineExampleadb shell monkey-p cn.lejiayuan.alpha--pct-touch--pct-motion--pct-trackball 1--pct-nav 1--pct-majornav--pc T-syskeys--pct-appswitch 20-v-v-v--throttle 200-s 3333333--kill-process-after-error 10000Conventional--helpLists the simple usage.-VEach-V of the command line increases the level of feedback information.Level 0 (default) provides less information than startup prompts, test completion, and end
: visual interaction style, tactile interaction style, auditory interaction style and olfactory interaction style.
1 Visual
1.1 Interface
The information communication function of the interface does not repeat, the influence to the interaction is Brong.
Here I would like to say that the vision is not only refers to the interface, but the screen itself from the mobile phone's visual effects, to allow users to experience the visual more and more rich effect.
1.2 Track Ball
When a new mes
Tags: Lin LAN focus Screen Keyboard useful text information contactThere is a adb shell very practical command called input , through which you can do some interesting things.inputThe complete help information for the command is as follows:Usage: input [] [...]The sources are: mouse keyboard joystick touchnavigation touchpad trackball stylus dpad gesture touchscreen gamepadThe commands and defaul
press somewhere on the screen, undergo a series of pseudo-random movements, and finally lift
--pct-trackball
Adjust the percentage of trackball events (this is no way to do this through drag, because drag is straight)
--pct-nav
Adjust the percentage of navigation events (as a percentage of the base navigation event, such as up or down keys)
--pct-majorn
used by any packages.)Android.permission.GET_TASKSAllows a program to get information about the current or most recently run task, an abbreviated task state, whether active, and so on (allows an application to get information about the currently or recently running T Asks:a thumbnail representation of the tasks, what activities is running in it, etc.)Android.permission.HARDWARE_TESTAllow access to hardware (allows access to hardware peripherals.)Android.permission.INJECT_EVENTSAllows a program
by any packages.)Android.permission.GET_TASKSAllows a program to get information about the current or most recently run task, an abbreviated task state, whether active, and so on (allows an application to get information about the currently or recently running T Asks:a thumbnail representation of the tasks, what activities is running in it, etc.)Android.permission.HARDWARE_TESTAllow access to hardware (allows access to hardware peripherals.)Android.permission.INJECT_EVENTSAllows a program to in
Android transduction Precautions1. diagram needs two sets of resolution:480*800,720*1280. Points are placed in different folders, the same picture, in two folders in the same name. 2. If you encounter the picture can be stretched can be tiled, using 9Patch for production, produce xxx.9.png picture, the advantages: flexibility is large, Reusable, the package size is reduced, and the program runs more efficiently. (such as The background of a Button)3. Plot Recommendation order: each page as a un
onAndroid.permission.HARDWARE_TESTAllows access to hardware peripherals.Allow access to hardwareAndroid.permission.INJECT_EVENTSAllows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to any windowAllows a program to intercept user events such as keystrokes, touches, trackball, etc. until a time streamAndroid.permission.INSTALL_PACKAGESAllows an applicati
is as follows :--help: Printing Help information-V: Specifies the level of detail for printing information, a -v adds a level , and the default level is 0 . 2: Event OptionsCopy Code The code is as follows :-S: Specifies that random event seed values are generated, and the same seed values produce the same sequence of events. such as: -S 200--throttle: The time interval after each event-reducing the pressure on the system (if not specified, the system will send the sequence of events as soon as
: 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 user events such as buttons, touch, trackball, and so on to a time stream. The Android Development Network reminds us that allows an application to inject user events (keys, touch,
the computer to open the command line, enter the ADB shell command to enter the mobile phone directory, enter the CD etc command, enter cat factory in the etc directory. INI command to view the factory in the mobile phone. whether the INI contains this 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_keys item
common callback methods for event processing, including: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 cl
inputdevice Based on the event type, inputmapper notifies inputdispatcher of the event information;
Currently, adroid implements inputmapper for five device types in inputreader, including slide/flip switchinputmapper, keyboard seek, trackballinputmapper, multitouch screen multitouchinputmapper, and singletouchinputmapper.
Device Type
Inputmanager
Eventtype
Notify inputdispatcher
Slide/flip
Switchinputmapper
Ev_sw
Yyswitch ()
Keyboard
Keyboardinp
callback methods for event processing, including:
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 eventOccurs.
onTouchEvent(MotionEvent)-Called when a touch screen motion event occurs.
onFocusChanged(boolean, int, Rect)-Called when the view gainsOr loses focus.There are other methods that do not belong to the View class,
.)
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 toget information about of the currently or recently running tasks: athumbnail representation of the tasks, what activities are runningin it, etc .)
Android. Permission. hardware_test allows access to hardware (allows access to hardware peripherals .)
Android. permission. inject_events al
10.1 ease of access
Many Android users have a disability and need to provide them with different ways to interact with Android devices.
Android provides an accessibility layer to help users more easily browse Android devices. This is also a detail aspect that makes your software more powerful. Let's take a good look.
10.1.1 allow navigation with a targeted Controller
Many Android devices have some targeted controllers, such:
A trackball that a user
sequence.
-- Throttle Insert a fixed delay between events. This option can reduce the execution speed of monkey. If this option is not specified, the monkey will not be delayed and the event will be generated as quickly as possible.-- PCT-touch Adjust the percentage of touch events (a touch event is a down-up event that occurs at a single location on the screen ).-- PCT-motion Adjust the percentage of Action events (Action events are composed of a down event, a series of pseudo-random events, a
Accounts Service (allows access to the listof accounts in the Accounts Service)Android. Permission. get_package_sizeAllows a program to obtain the space occupied by any package (allows an application to findout the space used by any package .)Android. Permission. get_tasksAllow 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 anapplication to get information about the currently or recentlyrunning
Technology Sharing» phone | read (459) | comment (0) oct212010android simulator if you customize a resolution, there may be no keyboard.
So how to operate the menu and return something?
The following is the test result of a Quan, which corresponds to a keyboard button:
ESC return keyF2 menu keyF3 dialing keyF4 hanging keyF5 search keyF6 WheelF7 lock screenF8 disable network
CTRL + F12 can switch between the horizontal and vertical screensReference home
Home
Menu (left softkey)F2 or page-Up but
to check whether the name is editable. This method returns true directly. AlsoThere is a getdefamovmovementmethod method that returns arrowkeymovementmethod. getinstance (),By viewing the source code of arrowkeymovementmethod, we can basically determine that this method is the "culprit" of the contextmenu and trackball monitoring ".Next, we will make a view to build our own edittext.My name is textpage, which inherits edittext and overwrites getdefau
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.