CN106572256A - Method and system for Android mobile phone to switch applications - Google Patents
Method and system for Android mobile phone to switch applications Download PDFInfo
- Publication number
- CN106572256A CN106572256A CN201610979709.XA CN201610979709A CN106572256A CN 106572256 A CN106572256 A CN 106572256A CN 201610979709 A CN201610979709 A CN 201610979709A CN 106572256 A CN106572256 A CN 106572256A
- Authority
- CN
- China
- Prior art keywords
- application program
- switching
- application
- user
- switches
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a system for an Android mobile phone to switch applications. The method comprises the following steps: A, presetting the number of applications needing switching; B, modifying an event distribution process in a window management service; C, when detecting that a user double-clicks a default key, intercepting the double-click event of the user, and sending a corresponding global broadcast; and D, after receiving the broadcast through a built service, calling an application switching interface to switch applications. The system comprises a presetting module, a modifying module, a broadcast sending module, and an application switching module. According to the method for switching applications quickly proposed by the invention, quick switching is performed between a specific number of recently-opened applications APP by double-clicking a virtual or physical key, and users can self-define applications needing quick switching. A novel method for quick, convenient and user-friendly application switching is provided for users.
Description
Technical field
The present invention relates to mobile terminal device technical field, more particularly to journey is applied in a kind of switching of Android phone
The method of sequence.
Background technology
With the popularization of intelligent terminal's mobile phone, various social softwares, tool software etc. are loaded with everyone mobile phone, are used
Family can open daily various application APPs to meet routine use demand, at the same time, bring user to use process
In a pain spot:Switch between conventional APP, needs length is pressed HOME keys or presses RECENT buttons and selects to need what is redirected
APP, operates redundancy and easy maloperation.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art part, it is an object of the invention to provide a kind of switching of Android phone should
With the method for program, it is intended to a kind of method for being switched fast application program is proposed, by double-clicking certain virtual key or entity
Button is realized quickly switching between the nearest certain number application APP opened, there is provided user one quickly,
Easily, the method for personalized brand-new switching application program.
In order to achieve the above object, the technical proposal for solving the technical problem of the invention is as follows:
A kind of method that Android phone switches application program, comprises the following steps:
A, pre-set and need the number of applications that switches over;
Case distribution process in B, modification window management service;
C, when detecting user and double-clicking programmable button, intercept user's double click event, and send corresponding global broadcast;
D, received after broadcast by the service that creates, by calling switching application interface, switch application program.
The method that described Android phone switches application program, wherein, in step A, also include:Pre-set needs
The application program being switched fast.
The method that described Android phone switches application program, wherein, step D is specifically included:
D1, reading user configuring, to obtain the number of applications and application package name of nearest opening;
The application data that D2, storage are opened recently;
D3, by call switching application interface switch application program, reduce application program arrive before state.
The method that described Android phone switches application program, wherein, also include between step D2 and D3:Shielding system
The switching animation of system itself, custom application program switching animation.
The system that a kind of Android phone switches application program, including:
Module is pre-seted, for pre-setting the number of applications for needing to switch over;
Modified module, for changing window management Service events distribution procedure;
Broadcast module is sent, for when user's double-click programmable button is detected, intercepting user's double click event, and sends corresponding complete
Office's broadcast;
Application program handover module, for being received after broadcast by the service for creating, by calling switching application interface, switching
Application program.
The system that described Android phone switches application program, wherein, pre-seting module is also included for pre-setting
The application program that needs are switched fast.
The system that described Android phone switches application program, wherein, application program handover module includes:
Reading unit, for reading user configuring, to obtain the number of applications and application package name of nearest opening;
Memory element, the application data that storage is opened recently;
Application program switch unit, for switching application program by calling switching application interface, before reduction application program is arrived
State.
The system that described Android phone switches application program, wherein, application program handover module also includes:
Self-defined switching animation unit, for the switching animation of shielding harness itself, custom application program switching animation.
Beneficial effect:Compared to the method that prior art, a kind of Android phone that the present invention is provided switch application program
And system, methods described include step:A, pre-set and need the number of applications that switches over;B, modification window management clothes
Case distribution process in business;C, when detecting user and double-clicking programmable button, intercept user's double click event, and send corresponding global
Broadcast;D, received after broadcast by the service that creates, by calling switching application interface, switch application program.The present invention is carried
A kind of method for being switched fast application program for going out, is realized quickly most by double-clicking certain virtual key or physical button
Switch between the nearly certain number application APP opened, while the application that user can be switched fast with self-defined needs,
There is provided user one quickly, easily, the method for personalized brand-new switching application program.
Description of the drawings
The flow chart of the method preferred embodiment of the Android phone switching application program that Fig. 1 is provided for the present invention.
2 APP are double-clicked in the method preferred embodiment of the Android phone switching application program that Fig. 2 a are provided for the present invention
Button switches application program operation interface.
3 APP are double-clicked in the method preferred embodiment of the Android phone switching application program that Fig. 2 b are provided for the present invention
Button switches application program operation interface.
The functional block diagram of the system preferred embodiment of the Android phone switching application program that Fig. 3 is provided for the present invention.
Specific embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously referring to the drawings embodiment pair
The present invention is further described.It should be appreciated that specific embodiment described herein is only to explain the present invention, and without
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the method preferred embodiment stream that the Android phone that the present invention is provided switches application program
Cheng Tu, including step:
S100, pre-set and need the number of applications that switches over;
When being embodied as, pre-set to work as needs realization quickly nearest by double-clicking default virtual key or physical button
Between certain number APP of opening(User can customize)The APP quantity for switching over, while user can be with self-defined needs
The application being switched fast, such as two APP jump to wechat from reading software, then return to reading software, or 3 from wechat
The APP of APP and above quantity.
Case distribution process in S200, modification window management service;
In this step, when being embodied as, for input distribution in modification window management service WindowManagerService
The case distribution process of InputDispatcher classes.
Specifically, it is of the invention in order to reach the function of intercepting press key message, first according to defined in EventHub.cpp
Key and key assignments transformational relation, need modification in WindowManagerService for InputDispatcher classes
Case distribution process, finally intercepts the event message of respective keys in PhoneWindowManager.
S300, when detecting user and double-clicking programmable button, intercept user's double click event, and send corresponding global broadcast;
The technology being related in the present invention realizes that component is:
Android KeyEvent System, Android key-press event handling process, is related to following Framework layers
Class:(1)InputManager, i.e. analogue-key event, are responsible for reading event and event are sent to the java layers of Framework;
(2)WinowManagerService, i.e. window management service, internal InputMonitor classes, i.e. input are monitored, and monitor event
Change and do corresponding distribution processor;(3)PhoneWindowManager, message block process;(4)
WindowMangerService, message the window reception of the superiors' operation is issued.
BroadCast, i.e. Android broadcast components, listen to the corresponding key-press event of user, send global broadcast, carry
Supply user operation entrance.
Android Recent Task System, i.e. Android open recently the management system of APP, and the present invention is main
It is related to Recent Activity, Task Stack, the management of Recent View.
Specifically, step S300 is specifically included:
S310, when detecting user and double-clicking programmable button, read by InputManager and key-press event and sent;
S320, window management service WinowManagerService monitor event change and do corresponding distribution processor;
S330, by PhoneWindowManager intercept key-press event message;
S340, by sending global broadcast by BroadCast.
When system detectio to user double-clicks programmable button, global broadcast is sent by BroadCast, what is created
Broadcast is received in Service.
S400, received after broadcast by the service that creates, by calling switching application interface, switch application program.
Received after broadcast by the Service of establishment, by calling switching application interface, switch application program, specifically
Comprise the following steps:
S410, reading user configuring, to obtain the number of applications and application package name of nearest opening;
The application data that S420, storage are opened recently;
S430, by call switching application interface switch application program, reduce application program arrive before state.
Specifically, the Service by creating is received after broadcast, completes following action:User configuring is read, to obtain
Obtain the application APP quantity and application APP bag name opened recently;Define nearest task stack(RecentTask)Data are tied
Structure and nearest task view(RecentView)Data structure, the application data that storage is opened recently;By calling switching
Application interface LaunchTask methods switch application program, according to nearest task view(RecentView)The data of middle preservation,
Reduce the state before application program is arrived.
Wherein, android system sheet has been processed by the logic that user clicks on Recent buttons in System UI,
The present invention is modified to reach the effect being switched fast according to this logic.When system detectio to user double-clicks programmable button
Afterwards, global broadcast is sent(ACTION_TOGGLE_RECENT_ACTIVITY broadcast is specially for Android 6.0), while
In order to ensure only to switch between the nearest application opened, need to redefine nearest task stack(RecentTask)Data knot
Structure and nearest task view(RecentView)Data structure, only store the application journey for pre-setting quantity opened recently
The data of sequence.Service is received after broadcast, will call the switching application of LaunchTask methods, and is protected according in RecentView
The data deposited, reduce the state before application program is arrived.
Further, in order to bring more preferable Consumer's Experience, can be self-defined to answer with the switching animation of shielding harness itself
With program switch attribute animation.Specifically, using Android Property Animation technology components, i.e. Android
Attribute animation system, completes the transition cartoon that user switches application program, first the switching animation of shielding harness itself(Specially
StopLaunchTastAnimation methods), then Custom Attributes animation, completes the perfect transition of subscriber handover process, such as
Simply switching avoids the need for extra prompting animation to fruit between two programs, it is only necessary to simple switching animation.Citing comes
Say, Fig. 2 a are specifically referred to, in the method preferred embodiment of the Android phone switching application program that Fig. 2 a are provided for the present invention
2 APP double-click button switching application program operation interface, and during 2 APP, without prompting animation, Fig. 2 b are provided for the present invention
3 APP double-click button switching application program operation interfaces in the method preferred embodiment of Android phone switching application program, 3
During individual APP, there is prompting animation.
A kind of method for being switched fast application program that the present invention is provided, is pressed by double-clicking default virtual key or entity
Key realization is quickly between nearest certain number APP opened(User can customize)Switch over, while user can be certainly
Definition needs the application that is switched fast, there is provided user one quickly, easily, the side of the brand-new switching application program of hommization
Method.
Corresponding to said method, Fig. 2 is referred to, Fig. 2 is a kind of Android phone switching application program that the present invention is provided
System preferred embodiment functional block diagram, including:
Module 10 is pre-seted, for pre-setting the number of applications for needing to switch over, as detailed above;
Modified module 20, for changing window management Service events distribution procedure, as detailed above;
Broadcast module 30 is sent, for when user's double-click programmable button is detected, intercepting user's double click event, and sends corresponding
Overall situation broadcast, as detailed above;
Application program handover module 40, for being received after broadcast by the service for creating, by calling switching application interface, is cut
Application program is changed, as detailed above.
The system that described Android phone switches application program, wherein, pre-seting module is also included for pre-setting
The application program that needs are switched fast, as detailed above.
The system that described Android phone switches application program, wherein, application program handover module includes:
Reading unit, for reading user configuring, to obtain the number of applications and application package name of nearest opening, specifically
As mentioned above;
Memory element, the application data that storage is opened recently, as detailed above;
Application program switch unit, for switching application program by calling switching application interface, before reduction application program is arrived
State, as detailed above.
The system that described Android phone switches application program, wherein, application program handover module also includes:
Self-defined switching animation unit, for the switching animation of shielding harness itself, custom application program switches animation, specifically
As mentioned above.
In sum, a kind of Android phone that the present invention is provided switches the method and system of application program, methods described
Including step:A, pre-set and need the number of applications that switches over;Case distribution mistake in B, modification window management service
Journey;C, when detecting user and double-clicking programmable button, intercept user's double click event, and send corresponding global broadcast;D, by wound
The service built is received after broadcast, by calling switching application interface, switches application program.One kind proposed by the present invention is quickly cut
The method for changing application program, is realized quickly in nearest specific for opening by double-clicking default virtual key or physical button
Switch between number application APP, while user can be with the self-defined application for needing and being switched fast, there is provided user one is fast
Speed, easily, the method for the brand-new switching application program of hommization.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method,
Can be by computer program to instruct related hardware(Such as processor, controller etc.)To complete, described program can be stored
In the storage medium of an embodied on computer readable, the program may include upon execution such as the flow process of above-mentioned each method embodiment.Its
Described in storage medium can be for memorizer, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention
Shield scope.
Claims (8)
1. a kind of method that Android phone switches application program, it is characterised in that comprise the following steps:
A, pre-set and need the number of applications that switches over;
Case distribution process in B, modification window management service;
C, when detecting user and double-clicking programmable button, intercept user's double click event, and send corresponding global broadcast;
D, received after broadcast by the service that creates, by calling switching application interface, switch application program.
2. the method that Android phone according to claim 1 switches application program, it is characterised in that in step A, also
Including:Pre-set the application program for needing to be switched fast.
3. the method that Android phone according to claim 1 switches application program, it is characterised in that step D is specifically wrapped
Include:
D1, reading user configuring, to obtain the number of applications and application package name of nearest opening;
The application data that D2, storage are opened recently;
D3, by call switching application interface switch application program, reduce application program arrive before state.
4. the method that Android phone according to claim 4 switches application program, it is characterised in that step D2 and D3
Between also include:The switching animation of shielding harness itself, custom application program switching animation.
5. the system that a kind of Android phone switches application program, it is characterised in that include:
Module is pre-seted, for pre-setting the number of applications for needing to switch over;
Modified module, for changing window management Service events distribution procedure;
Broadcast module is sent, for when user's double-click programmable button is detected, intercepting user's double click event, and sends corresponding complete
Office's broadcast;
Application program handover module, for being received after broadcast by the service for creating, by calling switching application interface, switching
Application program.
6. the system that Android phone according to claim 5 switches application program, it is characterised in that pre-set module
Also include for pre-setting the application program that needs are switched fast.
7. the system that Android phone according to claim 5 switches application program, it is characterised in that application program is cut
Mold changing block includes:
Reading unit, for reading user configuring, to obtain the number of applications and application package name of nearest opening;
Memory element, for storing the application data of nearest opening;
Application program switch unit, for switching application program by calling switching application interface, before reduction application program is arrived
State.
8. the system that Android phone according to claim 5 switches application program, it is characterised in that application program is cut
Mold changing block also includes:
Self-defined switching animation unit, for the switching animation of shielding harness itself, custom application program switching animation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610979709.XA CN106572256A (en) | 2016-11-08 | 2016-11-08 | Method and system for Android mobile phone to switch applications |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610979709.XA CN106572256A (en) | 2016-11-08 | 2016-11-08 | Method and system for Android mobile phone to switch applications |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106572256A true CN106572256A (en) | 2017-04-19 |
Family
ID=58540483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610979709.XA Pending CN106572256A (en) | 2016-11-08 | 2016-11-08 | Method and system for Android mobile phone to switch applications |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572256A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402762A (en) * | 2017-07-26 | 2017-11-28 | 青岛海信移动通信技术股份有限公司 | The implementation method and device of finger print navigation |
WO2018209781A1 (en) * | 2017-05-17 | 2018-11-22 | 华为技术有限公司 | Scheduling method and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100066698A1 (en) * | 2008-09-18 | 2010-03-18 | Samsung Electronics Co., Ltd. | Method and appress for controlling multitasking operations of mobile terminal having touchscreen |
CN103885668A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Method and device for implementing custom shortcut keys on android platform |
CN103902146A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104063136A (en) * | 2013-07-02 | 2014-09-24 | 姜洪明 | Mobile operation system |
CN105094499A (en) * | 2014-04-24 | 2015-11-25 | 青岛海信移动通信技术股份有限公司 | Intelligent mobile terminal and processing method for application windows thereof |
CN105740062A (en) * | 2014-12-09 | 2016-07-06 | 陈彦岑 | Android system based method for rapidly switching application |
-
2016
- 2016-11-08 CN CN201610979709.XA patent/CN106572256A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100066698A1 (en) * | 2008-09-18 | 2010-03-18 | Samsung Electronics Co., Ltd. | Method and appress for controlling multitasking operations of mobile terminal having touchscreen |
CN103885668A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Method and device for implementing custom shortcut keys on android platform |
CN103902146A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104063136A (en) * | 2013-07-02 | 2014-09-24 | 姜洪明 | Mobile operation system |
CN105094499A (en) * | 2014-04-24 | 2015-11-25 | 青岛海信移动通信技术股份有限公司 | Intelligent mobile terminal and processing method for application windows thereof |
CN105740062A (en) * | 2014-12-09 | 2016-07-06 | 陈彦岑 | Android system based method for rapidly switching application |
Non-Patent Citations (1)
Title |
---|
王兴梅主编: "《Android程序设计与应用开发教程[M]》", 31 May 2015 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018209781A1 (en) * | 2017-05-17 | 2018-11-22 | 华为技术有限公司 | Scheduling method and terminal |
US11140208B2 (en) | 2017-05-17 | 2021-10-05 | Huawei Technologies Co., Ltd. | Scheduling method and terminal |
US11700293B2 (en) | 2017-05-17 | 2023-07-11 | Huawei Technologies Co., Ltd. | Scheduling method and terminal |
CN107402762A (en) * | 2017-07-26 | 2017-11-28 | 青岛海信移动通信技术股份有限公司 | The implementation method and device of finger print navigation |
CN107402762B (en) * | 2017-07-26 | 2020-12-22 | 青岛海信移动通信技术股份有限公司 | Fingerprint navigation implementation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8391844B2 (en) | Voicemail systems and methods | |
KR101124766B1 (en) | System and method for managing a contact center with a graphical call connection metaphor | |
EP2712158B1 (en) | Method and Apparatus for Displaying Missed Calls on Mobile Terminal | |
WO2017008762A1 (en) | Dual-card and dual-system terminal, incoming call processing method and device thereof, and storage medium | |
CN107786730A (en) | A kind of task management method and terminal | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN104049849B (en) | A kind of information processing method and corresponding electronic equipment | |
US20150045092A1 (en) | Systems and methods for handling incoming calls on a media device | |
CN107291456A (en) | The control method and system of a kind of multihead display | |
JP5946467B2 (en) | Telecommunications service broker for orchestration of services in telecommunications networks | |
WO2015013873A1 (en) | Terminal and terminal manipulation method | |
US9733897B2 (en) | Method and apparatus of searching content | |
CN105100358B (en) | The method and system of information is recorded in call | |
CN106572256A (en) | Method and system for Android mobile phone to switch applications | |
CN110262721A (en) | Method for exhibiting data and device, electronic equipment | |
CN108572866A (en) | A kind of application management method, application program management device and mobile terminal | |
CN110324317B (en) | Service processing method, device, equipment and storage medium | |
CN110928706A (en) | Applet interaction method and device, electronic equipment and storage medium | |
AU2007342469A1 (en) | Voicemail systems and methods | |
US6115041A (en) | Display screen management apparatus and method | |
US8971509B2 (en) | Feature-based software system for programming of a business PBX | |
CN107995645A (en) | Method for connecting network, mobile terminal and computer-readable recording medium | |
KR20090101959A (en) | Voicemail systems and methods | |
CN108664301A (en) | A kind of generation method of menu, system and terminal device | |
CN112929254A (en) | Message processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |
|
RJ01 | Rejection of invention patent application after publication |