CN103677587B - The method and system of main interface are switched fast in a kind of android system - Google Patents

The method and system of main interface are switched fast in a kind of android system Download PDF

Info

Publication number
CN103677587B
CN103677587B CN201310668844.9A CN201310668844A CN103677587B CN 103677587 B CN103677587 B CN 103677587B CN 201310668844 A CN201310668844 A CN 201310668844A CN 103677587 B CN103677587 B CN 103677587B
Authority
CN
China
Prior art keywords
main interface
event
key
management services
main
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.)
Active
Application number
CN201310668844.9A
Other languages
Chinese (zh)
Other versions
CN103677587A (en
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.)
Shenzhen Leiniao Network Media Co ltd
TCL Technology Group Co Ltd
Original Assignee
TCL 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 TCL Corp filed Critical TCL Corp
Priority to CN201310668844.9A priority Critical patent/CN103677587B/en
Publication of CN103677587A publication Critical patent/CN103677587A/en
Application granted granted Critical
Publication of CN103677587B publication Critical patent/CN103677587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The method and system of main interface are switched fast in a kind of android system, method includes the key-press event of acquisition system Home key;Judge that the key-press event is click event or long by event;When the key-press event is click event, window manager inquiry system whether there is multiple main interfaces, and when there is multiple main interfaces, system obtains and is the most recently used main interface and starts, and otherwise directly initiates main interface;When the key-press event presses event for length, whether window manager inquiry system is multiple main interfaces, and when there is multiple main interfaces, the main interface that system obtains multiple main interface information and chooses starts, and otherwise directly initiates main interface.The present invention only needs to be clicked when user operates Home key or the change main interface by long, user is fast switched main interface, avoids the operation that complicated acquiescence main interface is set, and improves user experience sense.

Description

The method and system of main interface are switched fast in a kind of android system
Technical field
The present invention relates to be switched fast main boundary in mobile terminal intelligent operating system, more particularly to a kind of android system The method and system in face.
Background technology
The Launcher abbreviation Home Screen of android system(Main interface), after being android system loaded First application program of startup, it is responsible for all operations in addition to application operation itself, including several desktops, click application Program icon start application program, it is long by desktop occur menu and dustbin, it is long by after application program can with shift position, can be with Abundant Widget, arrangement is loaded to start the shortcut icon of application program and set wallpaper etc..So Launcher is Android One very important application program of system, is the entrance of all application programs, be also system highly dependent upon a basis should With program, when system has multiple Launcher, if user can with it is convenient and simple be switched to the Launcher for oneself liking when, Can be with strengthening system Consumer's Experience.
The android system of ecosystem has a concept of acquiescence Launcher when starting Launcher, when system is installed During multiple Launcher, when user clicks on the Home key on system UI navigation bars, first determine whether to give tacit consent to Launcher, such as Fruit is not provided with giving tacit consent to Launcher, then pop-up dialogue box is selected for user, can select to set acquiescence Launcher, it is also possible to Do not select to set acquiescence Launcher, and only select certain Launcher to start.If there is provided acquiescence Launcher, clicks During Home key, then start acquiescence Launcher, no longer eject choice box and selected for user.If now user thinks switching , it is necessary into the application program management under system setting, find current acquiescence Launcher during Launcher, remove acquiescence and set Put data.So, when again tapping on Home key, Launcher dialog boxes can just be ejected and is selected for user.Removing acquiescence sets Data method is put, very hidden and complexity, to some primary android system users, it is difficult to find the method, switches It is inconvenient during Launcher;Meanwhile, the concept of acquiescence is also easy to obscure to some users, bad using bringing to user Experience
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, the present invention is the defect and deficiency of solution prior art, is proposed a kind of The method and system of Launcher in android system can be realized being switched fast.
The technical proposal for solving the technical problem of the invention is as follows:
The method of main interface is switched fast in a kind of android system, is comprised the following steps:
The key-press event of acquisition system Home key;
Judge that the key-press event is click event or long by event;
When the key-press event is click event, window manager inquiry system whether there is multiple main interfaces, exist During multiple main interfaces, system obtains and is the most recently used main interface and starts, and otherwise directly initiates main interface;
When the key-press event presses event for length, whether window manager inquiry system is multiple main interfaces, is existed many During individual main interface, the main interface that system obtains multiple main interface information and chooses starts, and otherwise directly initiates main interface.
As a further improvement, the key-press event of the acquisition system Home key receives Home by input management services module The key-press event of key.
Wherein, the system obtains and is the most recently used main interface and starts specific using following steps realization:
The nearest list of application of acquisition system;
Inquiry is the most recently used main interface from the nearest list of application;
The application package name of main interface is passed into campaign management services module, institute is started by campaign management services module State and be the most recently used main interface.
Wherein, the main interface startup that the system obtains multiple main interface information and chooses specifically uses following steps Realize:
The application information of multiple main interfaces that acquisition system is currently installed on;
Ejection main interface selection dialog box;
Choose one of main interface and the application package name of the main interface is passed into campaign management services module, by Campaign management services module starts the main interface that this is chosen.
The main interface that directly initiates specifically passes to campaign management services mould using by the application package name of main interface Block, main interface is started by campaign management services module.
The present invention also provides the system that main interface is switched fast in a kind of android system, and the system includes:Input pipe Reason service module, Home key event judge module, window manager and campaign management services module;
The input management services module is used for the key-press event of reception system Home key;
The Home key event judge module be used to judging the input Home key that receives of management services module by Key events are click event or long by event;
The window manager is used to be looked into when judging the key-press event of Home key according to the judgement Home key event module Inquiry system whether there is multiple main interfaces, and when the key-press event is click event, acquisition is the most recently used main interface letter Main interface information is ceased and sent to the campaign management services module, when the key-press event presses event for length, obtain multiple Main interface information is selective concurrently send to be elected in main interface information give the campaign management services module;Otherwise select single main boundary Face simultaneously sends the single main interface information to the campaign management services module;
The campaign management services module is used to receiving the main interface information that the window manager sends over and starts The main interface.
As a further improvement, it is by acquisition system that the window manager acquisition is the most recently used main interface information Nearest list of application simultaneously inquires from the nearest list of application and is the most recently used main interface information to realize.
It is the multiple master being currently installed on by acquisition system that the window manager obtains multiple main interface information selective The application information at interface simultaneously ejects what main interface selected dialog box to realize.
The window manager is by by main interface when main interface information is sent into campaign management services module Application package name passes to the completion of campaign management services module.
Compared with prior art, the inventive method carries out the switching of main interface according to the kind of event of Home key, when The event of Home key first judges whether main interface has multiple when being click event, then starts when there is multiple main interfaces and uses recently The main interface crossed shows;When the event of Home key when growing by event first to judge whether main interface has multiple, there are multiple main boundaries Then pop-up dialogue box selects and selects the main interface that user chooses to start for user during face;In the case of two kinds of key-press events, work as master During the only one of which of interface, then this main interface is directly initiated.And prior art needs in the case where there are multiple main interfaces The setting of acquiescence main interface is determined whether, needs to enter system setup menu ability when user needs modification acquiescence main interface Complete, and the present invention only needs to be clicked when user operates Home key or the change main interface by long, allows user Quick switching main interface, avoids the operation that complicated acquiescence main interface is set, and improves user experience sense.
Brief description of the drawings
Fig. 1 is the flow chart of the method preferred embodiment that main interface is switched fast in android system of the present invention.
Fig. 2 is the structural principle block diagram of the System Preferred embodiments that main interface is switched fast in android system of the present invention.
Specific embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and without It is of the invention in limiting.
Android system is installed on the operating system in mobile intelligent terminal equipment, intelligent terminal bag extensively at present The equipment such as smart mobile phone, panel computer are included, can be by present invention side using the mobile intelligent terminal equipment of android system Method and system realize being switched fast the purpose of main interface, and the preferred embodiment of the present invention carries out specifically by taking smart mobile phone as an example It is bright.
As shown in figure 1, being switched fast the flow chart of the method preferred embodiment of main interface in a kind of android system, wrap Include following steps:
S100, obtains the key-press event of system Home key.
The key-press event of the acquisition system Home key is received the key-press event of Home key by input management services module.With Home key is often used at family when using smart mobile phone, and the inventive method embodiment is carried out by receiving the event of Home key Switching service, when user presses Home key, management service mould is input into by the Input Manager Service of android system Block receives user by the event for hitting Home key.
S200, judges that the key-press event is click event or long by event.
The input management services module of system judges that the key press time of user is click event or long by event, and will be by Key events pass to the window manager of system, and window manager is specially mobile phone window manager in smart mobile phone(PWM, Phone Window Manager).
S300, when the key-press event is click event, window manager inquiry system whether there is multiple main interfaces, During in the presence of multiple main interfaces, system obtains and is the most recently used main interface and starts, and otherwise directly initiates main interface.
Receive input management services module pass over click key-press event after, window manager elder generation inquiry system in With the presence or absence of multiple main interfaces, judgement is switched over according to one or more main interfaces, system meeting when there is multiple main interfaces Automatic user is the most recently used main interface, allows users to rapidly enter most recently used main interface without switching, In general most recently used main interface is user's frequency of use main interface higher, therefore, take in the presence of multiple main interfaces In the case of be switched to the use habit that most recently used main interface meets user.When system only exists single main interface, window Mouth manager then directly initiates the main interface of uniquely presence.
Wherein, the system obtains and is the most recently used main interface and starts specific using following steps realization:
1st, the nearest list of application of system is obtained;
2nd, inquiry is the most recently used main interface from the nearest list of application;
3rd, the application package name of main interface is passed into campaign management services module, is started by campaign management services module It is described to be the most recently used main interface.
Wherein, the main interface that directly initiates specifically passes to activity management clothes using by the application package name of main interface Business module, main interface is started by campaign management services module.
S400, when the key-press event presses event for length, whether window manager inquiry system is multiple main interfaces, is deposited In multiple main interfaces, the main interface that system obtains multiple main interface information and chooses starts, and otherwise directly initiates main boundary Face.
Receive input management services module pass over click key-press event after, window manager elder generation inquiry system in With the presence or absence of multiple main interfaces, judgement is switched over according to one or more main interfaces, system is obtained when there is multiple main interfaces Take the information of multiple main interfaces and be shown to user, user according to exist multiple main interfaces select oneself need main interface come Start, provide the user a kind of mode of quick selection startup in the case of many main interfaces.It is that click event is the same with key-press event, When system only exists single main interface, window manager then directly initiates the main interface of uniquely presence.
Wherein, the main interface startup that the system obtains multiple main interface information and chooses specifically uses following steps Realize:
1st, the application information of multiple main interfaces that acquisition system is currently installed on;
2nd, ejection main interface selection dialog box;
3rd, one of main interface is chosen and by the application package of main interface name(It is in android system Activity)Pass to campaign management services module(It is Activity Manager defined in android system Service), the main interface chosen is started by campaign management services module.
Wherein, the main interface that directly initiates specifically passes to activity management clothes using by the application package name of main interface Business module, main interface is started by campaign management services module.
So, user can be just switched fast by Home key to the main interface that oneself needs, and need not be entered System is set goes modification acquiescence main interface to switch, and solves the problems, such as that main interface switching is complicated.
The present invention also provides the system that main interface is switched fast in a kind of android system, as shown in Fig. 2 the system bag Include:Input management services module 10, Home key event judge module 20, window manager 30 and campaign management services module 40;
The input management services module 10 is used for the key-press event of reception system Home key;
The Home key event judge module 20 is used to judge the Home key that the input management services module is received Key-press event is click event or long by event;
When the window manager 30 is used to judge the key-press event of Home key according to the judgement Home key event module Inquiry system whether there is multiple main interfaces, and when the key-press event is click event, acquisition is the most recently used main interface Information simultaneously sends main interface information to the campaign management services module, when the key-press event presses event for length, obtains many Individual main interface information is selective concurrently send to be elected in main interface information give the campaign management services module;Otherwise select single master Interface simultaneously sends the single main interface information to the campaign management services module;
The campaign management services module 40 is used to receiving the main interface information that the window manager sends over and opens Move the main interface.
Wherein, the window manager 30 is obtained and is the most recently used main interface information is applied recently by acquisition system List simultaneously inquires from the nearest list of application and is the most recently used main interface information to realize.
It is the multiple being currently installed on by acquisition system that the window manager 30 obtains multiple main interface information selective The application information of main interface simultaneously ejects what main interface selected dialog box to realize.
The window manager 30 is by by main interface when main interface information is sent into campaign management services module Application package name pass to campaign management services module completion.
The operation principle of present system preferred embodiment is identical with above method preferred embodiment, and specific work process can Reference method embodiment, does not repeat herein.
It should be appreciated that the foregoing is only presently preferred embodiments of the present invention, limitation is e insufficient to of the invention Technical scheme, for those of ordinary skills, within the spirit and principles in the present invention, can add according to the above description To increase and decrease, replace, convert or improve, and the technical scheme after all these increases and decreases, replacement, conversion or improvement, should all belong to this The protection domain of invention appended claims.

Claims (8)

1. the method for main interface is switched fast in a kind of android system, it is characterised in that comprised the following steps:
The key-press event of acquisition system Home key;
Judge that the key-press event is click event or long by event;
When the key-press event is click event, window manager inquiry system whether there is multiple main interfaces, there is multiple During main interface, system obtains and is the most recently used main interface and starts, and otherwise directly initiates main interface;
When the key-press event presses event for length, whether window manager inquiry system is multiple main interfaces, there are multiple masters During interface, the main interface that system obtains multiple main interface information and chooses starts, and otherwise directly initiates main interface;
The main interface that the system obtains multiple main interface information and chooses starts specifically to be realized using following steps:
The application information of multiple main interfaces that acquisition system is currently installed on;
Ejection main interface selection dialog box;
Choose one of main interface and the application package name of the main interface is passed into campaign management services module, by activity Management services module starts the main interface that this is chosen.
2. the method for main interface is switched fast in android system according to claim 1, it is characterised in that described to obtain The key-press event for taking system Home key is received the key-press event of Home key by input management services module.
3. the method for main interface is switched fast in android system according to claim 1, it is characterised in that the system System acquisition is the most recently used main interface and starts specific using following steps realization:
The nearest list of application of acquisition system;
Inquiry is the most recently used main interface from the nearest list of application;
The application package name of main interface is passed into campaign management services module, described in campaign management services module starts most Nearly used main interface.
4. the method for main interface is switched fast in android system according to claim 1, it is characterised in that described straight Connect startup main interface and specifically pass to campaign management services module using by the application package name of main interface, taken by activity management Business module starts main interface.
5. the system of main interface is switched fast in a kind of android system, it is characterised in that the system includes:Input management Service module, Home key event judge module, window manager and campaign management services module;
The input management services module is used for the key-press event of reception system Home key;
The Home key event judge module is used to judge the button thing of the Home key that the input management services module is received Part is click event or long by event;
Inquiry is when the window manager is used to judge the key-press event of Home key according to the Home key event judge module With the presence or absence of multiple main interfaces, when the key-press event is click event, acquisition is the most recently used main interface information simultaneously to system Main interface information is sent to the campaign management services module, when the key-press event presses event for length, multiple main boundaries is obtained Face information is selective concurrently send to be elected in main interface information give the campaign management services module;Otherwise select single main interface simultaneously The single main interface information is sent to the campaign management services module;
The campaign management services module is used to receiving the main interface information that the window manager sends over and starts the master Interface.
6. the system of main interface is switched fast in a kind of android system according to claim 5, it is characterised in that institute Stating window manager acquisition and being the most recently used main interface information recently should by the nearest list of application of acquisition system and from this It is the most recently used main interface information and is realized with is inquired in list.
7. the system of main interface is switched fast in a kind of android system according to claim 5, it is characterised in that institute State window manager obtain multiple main interface information it is selective be the multiple main interfaces being currently installed on by acquisition system application Program information simultaneously ejects what main interface selected dialog box to realize.
8. the system of main interface is switched fast in a kind of android system according to any one of claim 5 to 7, and it is special Levy and be, the window manager is by answering main interface when main interface information is sent into campaign management services module Pass to what campaign management services module was completed with program-package name.
CN201310668844.9A 2013-12-11 2013-12-11 The method and system of main interface are switched fast in a kind of android system Active CN103677587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310668844.9A CN103677587B (en) 2013-12-11 2013-12-11 The method and system of main interface are switched fast in a kind of android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310668844.9A CN103677587B (en) 2013-12-11 2013-12-11 The method and system of main interface are switched fast in a kind of android system

Publications (2)

Publication Number Publication Date
CN103677587A CN103677587A (en) 2014-03-26
CN103677587B true CN103677587B (en) 2017-07-11

Family

ID=50315323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310668844.9A Active CN103677587B (en) 2013-12-11 2013-12-11 The method and system of main interface are switched fast in a kind of android system

Country Status (1)

Country Link
CN (1) CN103677587B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978103A (en) * 2014-04-08 2015-10-14 连科通讯股份有限公司 Method for changing user interface into Skype dedicated interface and interface change system thereof
CN104965732B (en) * 2015-06-05 2018-07-06 小米科技有限责任公司 Desktop starts method and device
CN104991780B (en) * 2015-07-21 2019-03-01 魅族科技(中国)有限公司 A kind of interface switching method and terminal
CN105100951A (en) * 2015-08-12 2015-11-25 深圳Tcl数字技术有限公司 Television main interface switching method and device
CN105808103B (en) * 2016-03-04 2018-09-18 谭永龙 A kind of method and apparatus for being switched to main screen based on iOS system
CN106468994A (en) * 2016-08-31 2017-03-01 北京奇艺世纪科技有限公司 A kind for the treatment of method and apparatus of application program
CN106775633A (en) * 2016-11-15 2017-05-31 广州视源电子科技股份有限公司 A kind of method, device and the terminal of the acquiescence Launcher that automatically switches
CN106886402A (en) * 2017-01-10 2017-06-23 武汉启目科技有限公司 A kind of method that android terminal adjusts UI and business function according to mode of operation
CN109413500B (en) * 2018-11-05 2020-12-15 四川长虹电器股份有限公司 Method for customizing main scene of television
CN110389803A (en) * 2019-06-28 2019-10-29 北京小米移动软件有限公司 A kind of page display method, device, display terminal and storage medium
CN113312097A (en) * 2021-05-28 2021-08-27 杭州迈冲科技有限公司 Method and device for modifying starting program based on Android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880415A (en) * 2012-08-30 2013-01-16 华为终端有限公司 Multi-task switching method and terminal
CN103034397A (en) * 2012-11-29 2013-04-10 广东欧珀移动通信有限公司 Dynamic unlocking method, device and mobile terminal based on recent tasks
EP2618547A2 (en) * 2012-01-20 2013-07-24 LG Electronics Inc. Mobile terminal and controlling method thereof
CN103257829A (en) * 2013-05-07 2013-08-21 北京工业大学 Terminal control system and method for switching latest task in front-back mode under Android

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10078420B2 (en) * 2012-03-16 2018-09-18 Nokia Technologies Oy Electronic devices, associated apparatus and methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2618547A2 (en) * 2012-01-20 2013-07-24 LG Electronics Inc. Mobile terminal and controlling method thereof
CN102880415A (en) * 2012-08-30 2013-01-16 华为终端有限公司 Multi-task switching method and terminal
CN103034397A (en) * 2012-11-29 2013-04-10 广东欧珀移动通信有限公司 Dynamic unlocking method, device and mobile terminal based on recent tasks
CN103257829A (en) * 2013-05-07 2013-08-21 北京工业大学 Terminal control system and method for switching latest task in front-back mode under Android

Also Published As

Publication number Publication date
CN103677587A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103677587B (en) The method and system of main interface are switched fast in a kind of android system
CN102999334B (en) A kind of shortcut based on Android platform realizes method, device and terminal
CN103744671B (en) The method and electronic equipment of a kind of information processing
KR100980683B1 (en) Apparatus and method for providing user interface to generate menu list of potable terminal
CN102902580B (en) A kind of program callback method and device
CN101739204B (en) Method and device for selecting multiple objects in batches and touch screen terminal
CN102957809B (en) Method for optimizing application programs on intelligent mobile phone
CN105335224B (en) A kind of application switching method and device
CN104135564A (en) A switching method, a displaying interface and a switching device for multimode input of an instant messaging program
CN102243889B (en) Mobile terminal and method for executing application program according to user input
CN102929478A (en) Application switching method and communication terminal
CN106201219A (en) The quick call method of function of application and system
CN102904799A (en) Method for recording streaming media data triggered via icon in instant communication and client
CN104539791A (en) Method and device for performing instant messaging in communication terminal
CN108459880A (en) voice assistant awakening method, device, equipment and storage medium
CN104238904B (en) A kind of method and mobile terminal of display interface sliding
CN107562328B (en) Method and system for optimizing application shortcut menu
US20220357822A1 (en) Information processing method and apparatus
CN103365524A (en) Application synergy method based on status bar icon and communication terminal
JP6074041B2 (en) Method and apparatus for processing communication service with common account
CN106095274A (en) Interface display method and device are set
CN105892318B (en) Terminal device control method, equipment and system
EP2933957B1 (en) Method and mobile terminal for displaying dlna equipment
CN111142739A (en) Method for setting suspension menu, terminal and readable storage medium
CN100451955C (en) Method and device for displaying a plurality of objects in single window

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 516001 technical center, 8 floor, TCL Arts crafts emporium, 6 South Goose Road, Huizhou, Guangdong

Patentee after: TCL Technology Group Co.,Ltd.

Address before: 516001 technical center, 8 floor, TCL Arts crafts emporium, 6 South Goose Road, Huizhou, Guangdong

Patentee before: TCL Corp.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20200410

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Patentee after: SHENZHEN LEINIAO NETWORK MEDIA CO.,LTD.

Address before: 516001 technical center, 8 floor, TCL Arts crafts emporium, 6 South Goose Road, Huizhou, Guangdong

Patentee before: TCL Technology Group Co.,Ltd.

TR01 Transfer of patent right