CN103885668A - Method and device for implementing custom shortcut keys on android platform - Google Patents

Method and device for implementing custom shortcut keys on android platform Download PDF

Info

Publication number
CN103885668A
CN103885668A CN201210560773.6A CN201210560773A CN103885668A CN 103885668 A CN103885668 A CN 103885668A CN 201210560773 A CN201210560773 A CN 201210560773A CN 103885668 A CN103885668 A CN 103885668A
Authority
CN
China
Prior art keywords
key
management module
shortcut
user
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210560773.6A
Other languages
Chinese (zh)
Inventor
张帅
王德满
杨森
王堃
杨彦青
陈皓
陈懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201210560773.6A priority Critical patent/CN103885668A/en
Publication of CN103885668A publication Critical patent/CN103885668A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for implementing custom shortcut keys on an Android platform. The method and the device have the advantages that the method and the device are applicable to android platform terminal equipment with physical keyboards, physical keys can optionally be in one-to-one relation with application programs in systems, and accordingly the programs can be conveniently and quickly started; the method and the device with functions are mainly developed for certain industries where certain particular functions are frequently utilized.

Description

A kind of method and apparatus of realizing self-defined shortcut at Android platform
Technical field
The present invention relates to mobile terminal, relate in particular to a kind of method and apparatus of realizing self-defined shortcut at Android platform.
Background technology
Android system is at home and abroad widely used at present, himself code also in development at full speed to meet various hardware devices and business demand, but Android equipment majority all only has Home, Menu and tri-buttons of Back, this is in order to cater to the various mobile terminals take touch-screen as main display device at present.But a lot of time is all to repeat some operations in the industries such as service, can feel that by the mode of touch-screen the unhappy cooperation that even sometimes needs both hands of operation just can complete.Consider that these situations have added the function of shortcut on the keyboard of equipment.
Summary of the invention
In order to solve the problems of the technologies described above, the present invention proposes a kind of method and apparatus of realizing self-defined shortcut at Android platform, be applicable to the android platform terminal equipment with physical keyboard, can be arbitrarily by physical button with should to have program to realize in system associated one to one, facilitate the quick startup of program.The realization of this function is developed frequent use of certain concrete function mainly for some industry.
Wherein, propose a kind of method that realizes self-defined shortcut at Android platform, it is characterized in that, comprising:
Input administration module receives user's input, by user key-press reporting events to service management module;
Described service management module receives from described input administration module reported event information, and described event information is passed to policy management module;
Described policy management module judges whether to need to deliver according to described event information, if so, described event information is passed to window management module; If not, finish;
Described window management module judges whether user supresses shortcut, if not, Keyboard Message is distributed to the active window of current activation, carries out common processing; If so, in database, search the application program corresponding to key information of interception;
Calling system application programming interfaces start the application program corresponding with described shortcut.
The invention allows for a kind of device of realizing self-defined shortcut at Android platform, it is characterized in that, comprising:
Input administration module, it is for receiving user's key-press input, and user's key-press event is reported;
Service management module, it is for receiving the key-press event reporting information from the user of described input administration module;
Policy management module, it judges whether to need to deliver according to described event information, if so, described event information is passed to window management module, if not, finishes;
Window management module, it judges the shortcut whether user presses, and if not, Keyboard Message is distributed to the active window of current activation, carries out common processing, if so, in database, searches the application program corresponding to key information of interception;
Application programming interfaces, it is for starting the application program corresponding with described shortcut.
There is self-defined quick bond energy greatly to increase work efficiency by the invention enables transportation, express delivery etc. to have the industry of repetitive operation, have great practical value.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method that realizes self-defined shortcut that provides with the embodiment of the present invention one;
Fig. 2 is the schematic diagram of the device of realizing self-defined shortcut that provides with the embodiment of the present invention one.
Specific embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
First by compiler definition push key key assignments in keyboard drive, and in Android layer identification code, shine upon the KEY_CODE of this key assignments.
Utilize Android application programming interfaces (Android API) to write application program and allow the corresponding relation of User Defined button and application program, and this corresponding relation is write in corresponding database table to (or adopt other Android to share data mode preserve this corresponding data).
In Android system, keyboard event is managed by service management module, when system starts, system server meeting starting-window management services module, window management service module will be inputted administration module by system and carry out overall responsibility's supervisory keyboard message in starting.These Keyboard Messages are all generally that activity (Activity) window that is distributed to current activation is processed, therefore, activity (Activity) window of current activation is in creating, can in mouth management services module, register a passage that receives Keyboard Message, show that it will process Keyboard Message, and when input manager module monitors is when having Keyboard Message, will give to it and process.When the Activity of current activation window is during no longer in state of activation, it also can be to the Keyboard Message receiving cable before anti-registration in mouth management services module, and like this, input manager module just can not be distributed to it Keyboard Message again and process.Based on above-mentioned principle, can Keyboard Message be distributed to activity (Activity) in system and before button be tackled to judgement, if the button of pressing is shortcut, carries out intercept process, otherwise continue to carry out activity (Activity) window that is distributed to activation.After under button interception, search the application program corresponding with shortcut in system, calling system API starts this application program.
It should be noted that button in Android system to press and upspring be two different press key messages, need to mask one to the processing after shortcut interception, otherwise can cause there is program process twice by one-touch, cause system resource waste.
As shown in Figure 1, be the method flow diagram of realizing self-defined shortcut of the present invention.
Step 1, input administration module receive user's input, by user key-press reporting events to service management module;
Step 2, service management module receive from input administration module reporting information, and dependent event information is passed to policy management module;
Step 3, policy management module judge whether according to dependent event information whether user's input needs to deliver, and if so, described event information is passed to window management module, if not, finishes;
Step 4, window management module judge the shortcut whether user presses, and if not, Keyboard Message are distributed to the active window of current activation, process normally; If so, in database, search the application program corresponding to key information of interception;
Step 5, calling system application programming interfaces (API) start corresponding application program.
As shown in Figure 2, be the self-defined shortcut device based on Android platform providing with the embodiment of the present invention one, wherein 1 is this device, it comprises:
Input administration module, it is for receiving user's key-press input, and user's key-press event is reported;
Service management module, it is for receiving the key-press event reporting information from the user of described input administration module;
Policy management module, it judges whether to need to deliver according to described event information, if so, described event information is passed to window management module, if not, finishes;
Window management module, it judges the shortcut whether user presses, and if not, Keyboard Message is distributed to the active window of current activation, carries out common processing, if so, in database, searches the application program corresponding to key information of interception;
Application programming interfaces, it is for starting the application program corresponding with described shortcut.
Described device, also comprises:
Compiler, definition push key key assignments in its keyboard drive, and in Android layer identification code, shine upon the KEY_CODE of this key assignments, then utilize described application programming interfaces to write application program and allow the corresponding relation of button and described application program described in User Defined, and this corresponding relation is write in corresponding database or adopt other Android platforms to share the related data that data mode is preserved this corresponding relation.
Above embodiment is only for illustrating the present invention; and be not limitation of the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. a method that realizes self-defined shortcut at Android platform, is characterized in that, comprising:
Input administration module receives user's input, by user key-press reporting events to service management module;
Described service management module receives from described input administration module reported event information, and described event information is passed to policy management module;
Described policy management module judges whether to need to deliver according to described event information, if so, described event information is passed to window management module; If not, finish;
Described window management module judges whether user supresses shortcut, if not, Keyboard Message is distributed to the active window of current activation, carries out common processing; If so, in database, search the application program corresponding to key information of interception;
Calling system application programming interfaces start the application program corresponding with described shortcut.
2. the method that realizes as claimed in claim 1 self-defined shortcut at Android platform, is characterized in that, receives user's input at input administration module, and user key-press reporting events, to before service management module, is also comprised:
By compiler definition push key key assignments in keyboard drive, and in Android layer identification code, shine upon the KEY_CODE of this key assignments, then utilize described application programming interfaces to write application program and allow the corresponding relation of User Defined button and described application program, and this corresponding relation is write in corresponding database or adopt other Android platforms to share the related data that data mode is preserved this corresponding relation.
3. the method that realizes as claimed in claim 1 self-defined shortcut at Android platform, is characterized in that, the processing after shortcut interception need to be masked and be pressed and of upspringing in message, to avoid there is program process twice by one-touch.
4. a device of realizing self-defined shortcut at Android platform, is characterized in that, comprising:
Input administration module, it is for receiving user's key-press input, and user's key-press event is reported;
Service management module, it is for receiving the key-press event reporting information from the user of described input administration module;
Policy management module, it judges whether to need to deliver according to described event information, if so, described event information is passed to window management module, if not, finishes;
Window management module, it judges the shortcut whether user presses, and if not, Keyboard Message is distributed to the active window of current activation, carries out common processing, if so, in database, searches the application program corresponding to key information of interception;
Application programming interfaces, it is for starting the application program corresponding with described shortcut.
5. the device of realizing as claimed in claim 4 self-defined shortcut at Android platform, is characterized in that, described device also comprises:
Compiler, definition push key key assignments in its keyboard drive, and in Android layer identification code, shine upon the KEY_CODE of this key assignments, then utilize described application programming interfaces to write application program and allow the corresponding relation of button and described application program described in User Defined, and this corresponding relation is write in corresponding database or adopt other Android platforms to share the related data that data mode is preserved this corresponding relation.
CN201210560773.6A 2012-12-20 2012-12-20 Method and device for implementing custom shortcut keys on android platform Pending CN103885668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210560773.6A CN103885668A (en) 2012-12-20 2012-12-20 Method and device for implementing custom shortcut keys on android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210560773.6A CN103885668A (en) 2012-12-20 2012-12-20 Method and device for implementing custom shortcut keys on android platform

Publications (1)

Publication Number Publication Date
CN103885668A true CN103885668A (en) 2014-06-25

Family

ID=50954595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210560773.6A Pending CN103885668A (en) 2012-12-20 2012-12-20 Method and device for implementing custom shortcut keys on android platform

Country Status (1)

Country Link
CN (1) CN103885668A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677078A (en) * 2015-12-25 2016-06-15 惠州Tcl移动通信有限公司 Mobile terminal and shortcut key customizing method thereof
CN106250131A (en) * 2016-07-26 2016-12-21 北京小米移动软件有限公司 Prompt operation screen method and device
CN106572256A (en) * 2016-11-08 2017-04-19 惠州Tcl移动通信有限公司 Method and system for Android mobile phone to switch applications
CN109324743A (en) * 2018-11-19 2019-02-12 Tcl移动通信科技(宁波)有限公司 A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut
CN109979180A (en) * 2019-03-25 2019-07-05 深圳创维数字技术有限公司 Remote controller key multiplexing method, device, storage medium and remote controler

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677078A (en) * 2015-12-25 2016-06-15 惠州Tcl移动通信有限公司 Mobile terminal and shortcut key customizing method thereof
CN106250131A (en) * 2016-07-26 2016-12-21 北京小米移动软件有限公司 Prompt operation screen method and device
CN106250131B (en) * 2016-07-26 2020-07-03 北京小米移动软件有限公司 Shortcut operation shielding method and device
CN106572256A (en) * 2016-11-08 2017-04-19 惠州Tcl移动通信有限公司 Method and system for Android mobile phone to switch applications
CN109324743A (en) * 2018-11-19 2019-02-12 Tcl移动通信科技(宁波)有限公司 A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut
CN109979180A (en) * 2019-03-25 2019-07-05 深圳创维数字技术有限公司 Remote controller key multiplexing method, device, storage medium and remote controler

Similar Documents

Publication Publication Date Title
CN104967550B (en) unread message display method and device
EP3142304B1 (en) Synchronization method for notification message of electronic device, server and electronic device
CN103885668A (en) Method and device for implementing custom shortcut keys on android platform
CN104820566B (en) Small intelligent touch terminal returns to the method and device of main screen
CN113037924B (en) Voice transmission method, device, electronic equipment and readable storage medium
CN105760045A (en) Application program login method, application program login device and terminal
US9170842B2 (en) Information processing terminal and resource release method
CN113242275B (en) Cloud mobile phone control method and equipment
CN103313140A (en) Television receiving terminal, text information input method and system thereof and mobile terminal
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN104539791A (en) Method and device for performing instant messaging in communication terminal
CN103179283A (en) Method and system for implementing shortcut key operation on mobile telephone status bar short message notice
CN108132735A (en) Terminal and application control method
CN110708535A (en) Physical key detection method and device and computer readable storage medium
CN103761201A (en) Method and device for processing application event of terminal
CN103973542A (en) Voice information processing method and device
CN105893019A (en) User manual calling-out method and apparatus for smartphone
CN101673194B (en) Device and method for processing user notification message by using same
CN112929254B (en) Message processing method and device and electronic equipment
TW201624252A (en) Information integrating system and method
CN113079084B (en) Message transmission method and device
CN105531662A (en) Method for processing an audio message
CN101610605A (en) A kind of method and system of avoiding focus loss for multi-task user interface interaction
CN112235412B (en) Message processing method and device
CN101644967A (en) Method and device for calling software functions of mobile device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140625

RJ01 Rejection of invention patent application after publication