WO2019153211A1 - 一种应用切换方法及终端 - Google Patents

一种应用切换方法及终端 Download PDF

Info

Publication number
WO2019153211A1
WO2019153211A1 PCT/CN2018/075876 CN2018075876W WO2019153211A1 WO 2019153211 A1 WO2019153211 A1 WO 2019153211A1 CN 2018075876 W CN2018075876 W CN 2018075876W WO 2019153211 A1 WO2019153211 A1 WO 2019153211A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal
foreground
time
user
Prior art date
Application number
PCT/CN2018/075876
Other languages
English (en)
French (fr)
Inventor
钟锦红
金华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880074955.8A priority Critical patent/CN111373348B/zh
Priority to PCT/CN2018/075876 priority patent/WO2019153211A1/zh
Priority to US16/968,375 priority patent/US20200396325A1/en
Publication of WO2019153211A1 publication Critical patent/WO2019153211A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • H04M1/673Preventing unauthorised calls from a telephone set by electronic means the user being required to key in a code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to an application switching method and a terminal.
  • terminals such as mobile phones and tablet computers generally have a lock screen function. After the screen of the terminal is locked, the user needs to input correct identity authentication information (such as a digital password, a gesture password, or a fingerprint) to the terminal, so that the terminal unlocks the screen, thereby restoring the interactivity between the terminal screen and the user.
  • identity authentication information such as a digital password, a gesture password, or a fingerprint
  • the display interface of the terminal staying at the last lock screen is always displayed to the user. For example, as shown in FIG. 1 , in the process of browsing a picture using a photo album on a terminal, if the user detects that the user inputs a lock screen operation to the terminal, the terminal enters a lock screen state. Subsequently, when receiving the user inputting the correct identity authentication information to the terminal, the terminal unlocks the screen and continues to display the picture viewed before the lock screen.
  • the terminal receives a new message such as a short message or a WeChat during the time of entering the lock screen state, or if the user wants to use the functions provided by other applications when unlocking the terminal, the user needs to exit the current display interface after unlocking the screen. Then, the target application desired by the user is searched for and opened, so that the switching process of the application before and after the screen unlocking is cumbersome, and the interaction efficiency between the terminal and the user is reduced.
  • the embodiment of the present application provides an application switching method and a terminal, which can simplify the switching process of the application before and after the screen is unlocked, and improve the interaction efficiency between the terminal and the user.
  • an embodiment of the present application provides an application switching method, including: a terminal running a first application in a foreground; a terminal locking a screen of the terminal in response to the lock screen instruction; and responding to the unlocking instruction, when the terminal satisfies running the second application
  • the terminal unlocks the screen of the terminal and runs the second application in the foreground (the first application is different from the second application). That is to say, when the terminal detects that the terminal meets the preset condition for running an application (ie, the second application) while the screen is locked, it indicates that the user wants to open the application when unlocking the terminal screen.
  • the terminal can automatically and conveniently switch the application running in the foreground from the first application before the lock screen to the second application required by the user, thereby improving the terminal and the user. The efficiency of interaction between the two.
  • the preset condition includes at least one of the following: the terminal receives a new message related to the second application in a lock screen state, and the terminal detects that the terminal is connected to the audio output device in a lock screen state, The terminal detects that the current location is in the preset geofence in the lock screen state, or the terminal detects that the current time is within the preset time period in the lock screen state.
  • the terminal runs the second application in the foreground, and the method includes: the terminal running the details interface of the new message in the second application in the foreground; Alternatively, the terminal runs a preview interface of the new message in the second application in the foreground, so that the user can quickly read the unread new message.
  • the new message includes at least one of a short message, a missed call notification, an instant messaging message, an application update reminder, a push message, and an advertisement message.
  • the method further includes: the terminal opening the second application in the background.
  • the terminal can automatically switch the second application that has been running in the background to the foreground to run, reducing the time for the user to wait for the second application to start.
  • the new message is received by the terminal at the first moment; then, the terminal running the second application in the foreground, specifically: if the terminal acquires the first time to the second time If the unlocking command is executed, the terminal runs the first interface of the second application in the foreground, and the second time is later than the first time; if the terminal obtains the unlocking command between the second time and the third time, the terminal runs the second in the foreground The second interface of the application, the third moment is later than the second moment.
  • the method further includes: the terminal continues to run the first application in the foreground.
  • the terminal may further set the effective duration of the terminal to switch to the second application, and based on the valid duration, the terminal may determine whether to switch from the first application before the lock screen to the second application to which the new message belongs, when it is determined to switch to In the second application, the terminal may further determine which specific interface to switch to the second application according to the effective duration.
  • the terminal runs the first application in the foreground, which includes: the terminal runs the first interface of the first application in the foreground; at this time, the terminal runs the second application in the foreground, specifically: when the new message When the priority of the target interface belongs to be higher than the priority of the first interface, the terminal runs the target interface of the second application in the foreground.
  • the terminal When the preset condition is that the terminal detects that the terminal is connected to the audio output device in the lock screen state, it indicates that the user has an operation intention of playing audio when subsequently unlocking, and therefore, the second application may be an application supporting audio playback.
  • the terminal runs the second application in the foreground, and specifically includes: if the terminal receives the unlocking instruction for the first time while maintaining the connection with the audio output device, the terminal runs the second application in the foreground.
  • the terminal only needs to switch the second application to the foreground when the unlocking command is received for the first time after connecting the audio output device, and when the terminal receives the unlocking command again (not the first time) while the terminal is connected with the audio output device, Do not switch to the second application, thereby avoiding the inconvenience caused by frequent jumps to the second application when unlocking.
  • the preset condition includes any one or two of the following: the terminal detects that the current location is in the preset geofence in the lock screen state, or the terminal detects that the current time is within the preset time period in the lock screen state.
  • the second application may be the attendance class. application.
  • the terminal runs the second application in the foreground, which specifically includes: when the terminal receives the unlocking instruction for the first time in the punching time period, the terminal runs the second application in the foreground.
  • the method further includes: if detecting that the user performs the punching operation in the second application, the terminal continues to run the first application in the foreground when receiving the unlocking operation input by the user, to avoid When the user unlocks the terminal during the above-mentioned working hours or after-hours, the user often displays the punching application to bother the user; if it is detected that the user does not perform the punching operation in the second application, the terminal operates in the foreground when receiving the unlocking operation input by the user again.
  • the second application prevents the user from forgetting to punch in.
  • the preset time period is when the user uses the historical time of the second application, indicating that the user has the operation intention of using the second application during subsequent unlocking.
  • the second application can be a game or reading application.
  • the second application may be an application including an electronic ticket.
  • the preset condition may further include that the priority of the second application is higher than the priority of the first application.
  • the terminal runs the second application in the foreground, specifically: the terminal switches the second application from the background to the foreground operation; or the terminal opens the second application and runs the second application in the foreground.
  • an embodiment of the present application provides a terminal, including: an operation unit, configured to: run a first application in a foreground; a lock screen unit, configured to: lock a screen of the terminal in response to the lock screen instruction; and unlock the unit, And responsive to the unlocking instruction, when the terminal meets the preset condition for running the second application, unlocking the screen of the terminal; the running unit is further configured to: run the second application in the foreground, the first application being different from the second application.
  • the preset condition includes: the terminal receives a new message related to the second application in a lock screen state; the new message includes a short message, a missed call notification, an instant messaging message, and an application update. At least one of a reminder, a push message, and an advertisement message; the running unit is specifically configured to: run a detailed interface of the new message in the second application in the foreground; or run a preview interface of the new message in the second application in the foreground.
  • the new message is received by the terminal at the first moment; the running unit is specifically configured to: if the terminal obtains the unlocking instruction between the first time and the second time, The first interface of the second application is run by the foreground, and the second time is later than the first time; if the terminal obtains the unlocking command between the second time and the third time, the second interface of the second application is run in the foreground, The third moment is later than the second moment.
  • the running unit is further configured to: if the terminal acquires the unlocking instruction after the third moment, continue to run the first application in the foreground.
  • the running unit is specifically configured to: run a first interface of the first application in the foreground; when the priority of the target interface to which the new message belongs is higher than the priority of the first interface, in the foreground Running the target interface of the second application.
  • the preset condition includes: the terminal detects that the terminal is connected to the audio output device in the lock screen state; the second application is an application that supports audio playback; and the operation unit is specifically configured to: if the terminal The first application is received in the foreground while the unlock command is received for the first time in a state in which the audio output device is kept connected.
  • the preset condition includes any one or two of the following: the terminal detects that the current location is in the preset geofence in the lock screen state, or the terminal detects the current time in the lock screen state.
  • the preset time period when the second application is an attendance application, the preset geofence is near a preset punching position, the preset time period is a preset punching time period; when the second application is a game or When the application is read, the preset geofence is a historical position of the second application, and the preset time period is a historical time when the user uses the second application; when the second application is an application including the electronic ticket, the preset The geofence is the station.
  • the preset condition further includes: the priority of the second application is higher than the priority of the first application.
  • an embodiment of the present application provides a terminal, including: a processor, a memory, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is coupled to the memory, when the terminal is running, the processor The computer executing the memory stores execution instructions to cause the terminal to execute any of the application switching methods described above.
  • an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores an instruction, when the instruction is run on any one of the foregoing terminals, causing the terminal to perform any one of the application switching method.
  • an embodiment of the present application provides a computer program product, including an instruction, when the terminal is executed on any of the foregoing terminals, causing the terminal to perform any one of the foregoing application switching methods.
  • the names of the components in the terminal are not limited to the device itself, and in actual implementation, the components may appear under other names. As long as the functions of the various components are similar to the embodiments of the present application, they are within the scope of the claims and their equivalents.
  • FIG. 1 is a schematic diagram of a scenario when a terminal is unlocked in the prior art
  • FIG. 2 is a schematic structural diagram 1 of a terminal according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a programming module in a terminal according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a principle when a terminal is unlocked in the prior art
  • FIG. 5 is a schematic diagram 1 of a scenario of an application switching method according to an embodiment of the present disclosure
  • FIG. 6 is a second schematic diagram of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram 3 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram 4 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram 5 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram 6 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram 7 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram 8 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram nin of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic diagram 10 of an application switching method according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic diagram 11 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic diagram 12 of a scenario of an application switching method according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram 2 of a terminal according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram 3 of a terminal according to an embodiment of the present disclosure.
  • FIG. 19 is a flowchart of an application switching method according to an embodiment of the present application.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, “multiple” means two or more unless otherwise stated.
  • An application switching method provided by an embodiment of the present application can be applied to a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR), a virtual reality (VR) device, a notebook computer, a super mobile device.
  • the embodiment of the present application does not impose any limitation on any terminal having a file sharing function, such as an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the terminal in the embodiment of the present application may be the mobile phone 100.
  • the embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated mobile phone 100 is only one example of the above terminal, and the mobile phone 100 may have more or fewer components than those shown in FIG. 2, and two or more components may be combined, or Can have different component configurations.
  • the handset 100 can communicate with other electronic devices 102 and 104, other than the handset 100, and the server 106.
  • the handset 100 can include a bus 110, a processor 120, a memory 130, a user input module 150, a display module 160, a communication interface 170, and other similar and/or suitable components.
  • Bus 110 may be circuitry that interconnects the above elements and communicates (e.g., control messages) between the elements.
  • the processor 120 can receive commands from the other components (such as the memory 130, the user input module 150, the display module 160, the communication interface 170, the communication configuration control module 170, etc.) through the bus 110, can interpret the received commands, and can Interpret commands to perform calculations or data processing.
  • the other components such as the memory 130, the user input module 150, the display module 160, the communication interface 170, the communication configuration control module 170, etc.
  • Memory 130 may store commands or data received from processor 120 or other components (e.g., user input module 150, display module 160, communication interface 170, etc.) or commands or data generated by processor 120 or other components.
  • processor 120 e.g., user input module 150, display module 160, communication interface 170, etc.
  • Memory 130 may include programming modules such as kernel 131, middleware 132, application programming interface (API) 133, applications 134, and the like. Each of the above programming modules may be implemented in software, firmware, hardware, or a combination of two or more thereof, as described in detail in the related description of FIG.
  • the kernel 131 may control or manage system resources (e.g., bus 110, processor 120, memory 130, etc.) for performing operations or functions implemented by other programming modules (e.g., middleware 132, API 133, and applications 134). Additionally, the kernel 131 can provide an interface that can access and control or manage the various elements of the handset 100 by using the middleware 132, the API 133, or the application 134.
  • system resources e.g., bus 110, processor 120, memory 130, etc.
  • other programming modules e.g., middleware 132, API 133, and applications 134.
  • the kernel 131 can provide an interface that can access and control or manage the various elements of the handset 100 by using the middleware 132, the API 133, or the application 134.
  • the middleware 132 can be used to operate between the API 133 or the application 134 and the kernel 131 in communication with the kernel 131 with the API 133 or the application 134 and exchange data therewith.
  • the middleware 132 can be configured as an intermediary for communication between the API 133 or the application 134 and the kernel 131.
  • a priority may be assigned to at least one of the one or more applications 134 (where the priority may be Load balancing of work requests is performed using methods of system resources (e.g., bus 110, processor 120, memory 130, etc.) of handset 100.
  • the API 133 is an interface by which the application 134 can control functions provided by the kernel 131 or the middleware 132, and can include, for example, at least one interface or function for file control, window control, image processing, character control, and the like.
  • Applications 134 may include, for example, a home page application, a dialer application, a short message service (SMS)/multimedia message service (MMS) application, an instant messaging (IM) application, a browser application, a camera application, an alarm clock application, a contact application, voice dialing.
  • SMS short message service
  • MMS multimedia message service
  • IM instant messaging
  • browser application a browser application
  • camera application a camera application
  • alarm clock application a contact application
  • voice dialing voice dialing.
  • email (e-mail) applications calendar applications, media player applications, photo album applications, clock applications, and any other suitable and/or similar applications.
  • the user input module 150 can receive commands or data input from a user via input-output means (eg, sensors, keyboards, touch screens, etc.) and can transmit the received commands or data to the processor 120 or memory 130 via the bus 110.
  • Display module 160 can display video, images, data, and the like to the user.
  • the display module 160 can display various information (eg, multimedia data, text data) received from the above components.
  • Communication interface 170 can control a short range communication connection with another electronic device 102.
  • the communication interface 170 may stop waiting for a scan operation of receiving a signal from a neighboring electronic device or stopping a broadcast operation of the broadcast signal.
  • the communication interface 170 stops waiting for a scan operation to receive a signal from a neighboring electronic device or a broadcast operation to stop the broadcast signal.
  • the communication interface 170 can control the period of the scanning or broadcast operation.
  • handset 100 can communicate with another electronic device using communication interface 170.
  • communication interface 170 can communicate with another electronic device 104, server 106, and the like.
  • Communication interface 170 can communicate with other electronic devices 104, servers 106, etc., either directly or through network 162.
  • communication interface 170 can operate to connect handset 100 to network 162.
  • FIG. 3 shows a block diagram of a configuration of a programming module disclosed in accordance with an embodiment of the present application.
  • programming module 310 can be included (or stored) in handset 100 (e.g., memory 130) shown in FIG. At least a portion of programming module 310 can be implemented as software, firmware, hardware, or a combination of two or more of them.
  • Programming module 310 can be implemented as hardware (eg, hardware 201) and can include an OS that controls resources associated with an electronic device (eg, cell phone 100) and/or various applications (eg, applications 370) that are executed in the OS.
  • the OS can be Android, iOS, Windows, Symbian, Tizen, Bada, and the like.
  • programming module 310 can include kernel 320, middleware 330, API 360, and/or application 370.
  • Kernel 320 may include system resource manager 321 and/or device driver 323.
  • the system resource manager 321 can include a process manager (not shown), a memory manager (not shown), and a file system manager (not shown).
  • the system resource manager 321 can perform control, allocation, recovery, and the like of system resources.
  • the device driver 323 may include, for example, a display driver (not shown), a camera driver (not shown), a Bluetooth driver (not shown), a shared memory driver (not shown), a USB driver (not shown) And a keypad driver (not shown), a Wi-Fi driver (not shown), and/or an audio driver (not shown).
  • device driver 323 can include an interprocess communication (IPC) driver (not shown).
  • IPC interprocess communication
  • the middleware 330 may include a plurality of modules that are implemented in advance to provide functions shared by the application 370.
  • middleware 330 can provide functionality to application 370 via API 360 to enable application 370 to efficiently utilize limited system resources within the electronic device.
  • the middleware 330 eg, the middleware 132
  • the middleware 330 may include at least one of the following: a runtime library 335, an application manager 341, a window manager 342, a multimedia manager 343, a resource manager 344, and a power supply.
  • the runtime library 335 can include library modules, such as used by a compiler, to add new functionality by using a programming language during execution of the application 370. According to an embodiment disclosed herein, the runtime 335 can perform functions related to input and output, management of memory, arithmetic functions, and the like.
  • the application manager 341 can manage, for example, the lifecycle of at least one application 370.
  • Window manager 342 can manage graphical user interface (GUI) resources used on the screen.
  • GUI graphical user interface
  • the multimedia manager 343 can detect a format for reproducing various media files, and can encode or decode the media file by using a codec suitable for the relevant format.
  • the resource manager 344 can manage resources of at least one application 370, such as source code, memory, storage space, and the like.
  • the power manager 345 can operate with a basic input/output system (BIOS), can manage a battery or power source, and can provide power information for operation and the like.
  • Database manager 346 can manage the database in a manner that enables generation, searching, and/or changing of a database to be used by at least one application 370.
  • the package manager 347 can manage the installation and/or update of applications distributed in the form of package files.
  • Connection manager 348 can manage wireless connections such as Wi-Fi and BT.
  • the notification manager 349 can display or report events such as arrival messages, appointments, proximity alerts, etc. to the user in a manner that does not bother the user.
  • the location manager 350 can manage location information of the electronic device.
  • the graphics manager 351 can manage graphics effects to be provided to the user and/or UIs related to the graphics effects.
  • Security manager 352 can provide various security functions for system security, user authentication, and the like. According to an embodiment of the present disclosure, when an electronic device (eg, mobile phone 100) has a phone function, the middleware 330 may further include a phone manager (not shown) for managing voice phone call functions of the electronic device and/or Video call function.
  • the middleware 330 can generate and use a new middleware module through various functional combinations of the internal component modules described above.
  • the middleware 330 can provide modules specialized according to the type of OS to provide differentiated functions.
  • the middleware 330 can also dynamically delete some of the existing components, or can add new components. Accordingly, the middleware 330 may omit some of the elements described in the various embodiments disclosed herein, and may include other elements, or some of these elements may be replaced with elements that perform similar functions and have different names.
  • API 360 (eg API 133) is a collection of API programming functions and can have different configurations depending on the OS. In the case of, for example, Android or iOS, one API set can be provided to each platform. In the case of, for example, Tizen, two or more API sets can be provided to each platform.
  • Application 370 may include, for example, a preloaded application and/or a third party application.
  • Application 370 eg, application 134) may include, for example, home page application 371, dialing application 372, SMS/MMS application 373, IM application 374, browser application 375, camera application 376, alarm application 377, contact application 378, voice dialing application 379.
  • email application 380 calendar application 381, media player application 382, album application 383, clock application 384, and any other suitable and/or similar applications.
  • the display module 160 can present a corresponding visual output to the user. Then, when the user inputs a lock screen operation to the mobile phone 100 (for example, pressing a power button or the like), or does not receive any input from the user within a preset time, the mobile phone 100 may be triggered to generate a lock screen command, and the mobile phone 100 responds to the lock.
  • the screen command loads the lock screen on the current display interface and turns off the screen to enter a black screen state.
  • the mobile phone 100 can switch the browser application 375 running in the foreground to run in the background.
  • the browser application 375 runs in the background, the user does not provide visual output, and the mobile phone 100 is still in a black screen state.
  • the screen of the mobile phone 100 is illuminated, and the above-mentioned lock screen interface is displayed.
  • the mobile phone when receiving the correct identity authentication information (such as a fingerprint, a face, a password, and the like) input by the user, it indicates that the user currently operating the mobile phone is a legitimate user authenticated by the identity, and therefore, as shown in FIG. 4, the mobile phone is still
  • the above-mentioned lock screen interface can be removed, so that the browser application 375 can be restored to the foreground, and the mobile phone 100 presents the user with the display interface of the browser application 375 before the lock screen.
  • the user's intention to use the terminal before and after the lock screen is not necessarily consistent.
  • the user uses the video application to watch the video before the lock screen, but when the screen is received after receiving the missed call or message, the intention of the user to unlock the terminal may be to view these missed calls or messages; for example, the user is at the lock screen Before using the social application chat, but when the user inserts a headset or connects a Bluetooth stereo to the terminal after the screen is locked, the intention of the user to unlock the terminal may be to listen to the song.
  • the terminal still displays the application running before the lock screen (for example, the browser application 375) after unlocking, the user needs to quit the browser application 375, find the target application that he needs and open the target application, so that the screen is unlocked.
  • the switching process of the application before and after becomes cumbersome, which reduces the interaction efficiency between the terminal and the user.
  • the terminal when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal may lock the screen. Subsequently, when the terminal receives the unlocking instruction, if the terminal meets the preset condition for running the second application (the first application is different from the second application), after the terminal unlocks the screen, the second application may be run in the foreground.
  • the terminal may collect feature data for reflecting the usage requirement of the user during the time when the screen is locked to the unlocking screen.
  • the feature data meets the preset condition for running the second application
  • the user wants to open the screen when the user unlocks the terminal.
  • the terminal can automatically and conveniently switch the application running in the foreground from the first application before the lock screen to the second application required by the user, thereby improving the terminal and the user. The efficiency of interaction between the two.
  • the unlocking instruction may be generated by the terminal according to the identity authentication information such as a fingerprint and a password that are previously set by the user for the unlocking screen.
  • the unlocking command may also be generated by the terminal according to a gesture or operation for the user to wake up the terminal screen, for example, the user's hand-raising gesture, the operation of pressing the power button by the user, etc. There are no restrictions on this.
  • the preset condition may be: receiving a new message related to the second application in the lock screen state, detecting that the terminal is connected to the audio output device (such as a headset) in the lock screen state, and the terminal is in a lock screen state. It is detected that the current location is within the preset geofence, or one or more of the plurality of conditions, such as the current time being detected within the preset time period, are detected in the lock screen state.
  • the terminal can automatically run the second application corresponding to the preset condition when unlocking.
  • the application switching method provided by the embodiment of the present application under different preset conditions will be described in detail below with reference to a specific application scenario.
  • the terminal may randomly select one of the application A, the application B, and the application C as the second application that is run after the unlocking; or the terminal may also be preset according to the user or the default priority order of the terminal.
  • the application with the highest priority among the application A, the application B, and the application C is used as the second application that is run after the unlocking; or the terminal can also determine an application in the application A, the application B, and the application C according to the user's usage habits.
  • the second application that runs after being unlocked; or the terminal may further determine an application from the application A, the application B, and the application C as the second application that runs after the unlocking according to the sequence in which the three preset conditions are satisfied.
  • the terminal may use the application that is used by the user in the application A, the application B, and the application C, or the application that is the most frequently used by the user as the second application that is used after the terminal is unlocked. .
  • the application running in the foreground by the terminal is a first application (for example, an e-book APP).
  • the terminal locks the screen.
  • the terminal may enter a black screen state when the screen is locked or after the screen is locked, or the terminal may only lock the screen but does not enter the black screen state.
  • the terminal receives a new message related to any installed application (for example, the second application), it may be determined that the terminal satisfies the preset condition for running the second application.
  • the terminal may automatically run the second application related to the new message in the foreground after unlocking the screen.
  • the foregoing new information may specifically be a short message, a missed call notification, an update reminder, an application push message, an advertisement, and the like, and the embodiment of the present application does not impose any limitation on this.
  • the second application is the application to which the new message belongs.
  • the second application to which the short message belongs may be a short message application or an instant messaging application
  • the second application to which the missed call notification belongs may be a call application.
  • the update reminder, the push message of the application, and the second application to which the advertisement belongs may be any third party application.
  • the terminal receiving the new message may refer to the terminal receiving the new message sent by the server or other terminal, or the processor of the terminal may receive a new message reported by the application in the terminal or the operating system. Do not make any restrictions.
  • the foregoing preset condition may further include: the priority of the second application is higher than the priority of the first application. That is, after the terminal receives the new message, the terminal may further compare the priority of the second application to which the new message belongs and the priority of the first application. When the priority of the second application is higher than the priority of the first application, for example, the second application is a higher priority WeC application, indicating that the user needs to view the new message more urgently, and therefore, the terminal may be the second The app is determined to be an application that runs in the foreground after being unlocked.
  • the terminal may also trigger the terminal to compare the priority of the second application to which the new message belongs and the priority of the first application when the terminal receives the identity authentication information input by the terminal, when the priority of the second application is higher than the priority of the second application.
  • the terminal determines the second application as an application running in the foreground after being unlocked.
  • the identity authentication information input by the user is the identity authentication information of the legal user stored in advance
  • the user of the current operation terminal is a legitimate user
  • the terminal can unlock the terminal screen. Automatically switch the second application to the foreground. At this time, after the terminal screen is unlocked, the user may display a preview interface of the above new message in the second application.
  • the terminal can automatically enter the detail interface of the new message in the second application, which is convenient for the user to quickly Read to an unread new message.
  • the terminal may switch the second application to the foreground to specifically switch to: switch the second application running in the background to the foreground; or, if unlocked When the second application is not running in the terminal, the terminal may switch the second application to the foreground to specifically: the second application is automatically opened.
  • the terminal switches the second application to the foreground
  • the first application running in the foreground before the lock screen can be killed, or the first application running in the foreground before the lock screen is switched to the background.
  • the embodiment of the present application does not impose any limitation on this.
  • the terminal may trigger the terminal to determine whether the second application to which the new message belongs is running in the terminal. If the second application is not running on the terminal, the terminal can automatically open the second application when the terminal screen is in the locked state, and run the second application in the background of the terminal.
  • the terminal can automatically switch the second application that has been running in the background to the foreground to run, reducing the time for the user to wait for the second application to start.
  • the terminal may also set the specific function, service or window in the application as the granularity. For example, set the priority of the transfer message in the Alipay application > the priority of the unread message in the WeChat application > the priority of the system notification message in the Taobao application. That is to say, the terminal can determine whether the requirement of opening the second application when the user is unlocked is urgent according to the specific function, service or window granularity, so that after the unlocking, the application with urgent user demand is switched to the foreground operation more reasonably.
  • the terminal in front of the lock screen is running in the foreground, the interface of the unread message in the WeChat application, if the terminal receives the transfer message sent to the Alipay application in the lock screen state, the terminal receives the unlock command, because the Alipay
  • the terminal can automatically jump to the interface of the higher priority Alipay transfer message.
  • the terminal can also set different functions in the application, different services or priority order between different windows. For example, for a WeChat application, you can set the priority of the chat interface > the priority of the address book interface > the priority of the settings interface.
  • the terminal can automatically switch from the address book interface 801 before the lock screen to the chat interface 802. So that users can quickly view new messages sent by friend A.
  • the terminal can continue to display the address book interface 801 to avoid the user being disturbed when the terminal is unlocked in response to an event requiring less user demand.
  • the terminal can jump to a higher priority after unlocking.
  • the new message belongs to the app.
  • the new message when the frequency of use of the second application to which a new message belongs is high, the new message may be set as a new message with a higher priority; or, the new message with the earliest or latest reception time may be set as the priority.
  • the priority of the above-mentioned new message may also be preset or randomly selected by the user or the terminal, and the embodiment of the present application does not impose any limitation on this.
  • the terminal may further set one or more other determination conditions to trigger the user to switch to the second application when the unlocking screen is triggered.
  • the terminal may also set an effective duration for the terminal to switch to the second application. Then, the terminal may determine whether to switch from the first application before the lock screen to the second application to which the new message belongs according to the valid duration, and when determining to switch to the second application, the terminal may further determine to switch to the second according to the valid duration. Which specific interface is applied.
  • setting the first effective duration of the terminal to switch to the second application is within 5s from the receipt of the new message. If the user unlocks the terminal within 5s from the receipt of the new message, the intention of the user to reply to the new message is very obvious. . Therefore, as shown in (a) of FIG. 9, when the terminal screen is locked, if the terminal receives the missed call notification, the terminal may start with a first time when the missed call notification is received, and start a duration. If the first timer is 5 seconds, if the user receives the correct identity authentication information before the second timeout of the first timer expires, the terminal can automatically dial the caller of the missed call after the terminal is unlocked. The terminal switches from the first application before the lock screen to the call interface of the dialing application to which the missed call notification belongs (ie, the first interface of the second application).
  • the second effective duration of the terminal is set to switch to the second application within 5s-15s from the receipt of the new message. If the user unlocks the terminal within 5s-15s from the receipt of the new message, the user's intention to reply to the new message is more obvious. Therefore, as shown in (b) of FIG. 9 , when the terminal screen is locked, the terminal receives the missed call notification.
  • the terminal may start with the second time when the first timer expires. At the moment, a second timer with a duration of 10 seconds is started. If the user receives the correct identity authentication information before the third moment when the second timer expires, the terminal can automatically switch to the recent call of the dialing application after the terminal is unlocked.
  • the interface ie, the second interface of the second application
  • the interface is convenient for the user to further process the missed call.
  • the terminal may further set an effective period in which the terminal switches to the second application. For example, after the lock screen is set, each time a new message is received, if the user inputs the correct identity authentication information, the terminal automatically triggers the terminal to automatically switch the first application before the lock screen to the second application to which the new message belongs; During a certain period of time (for example, 18:00-24:00 during the off-hours every day), if the terminal receives a new message while locking the screen, the terminal is allowed to automatically switch the first application before the lock screen to the new message. The second application.
  • the foregoing determining condition may be pre-stored in the terminal, or may be manually set by the user, or may be acquired by the terminal from the server, or may be automatically generated by the terminal through an artificial intelligence algorithm according to the usage habit of the user.
  • the embodiment of the present application does not impose any limitation on this.
  • the terminal when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal may lock the screen; in the lock screen state, if the terminal detects the connection with the audio output device, The terminal satisfies the preset condition of the application running the support application play. Therefore, if the terminal receives the unlock instruction, the terminal can be unlocked, and the application supporting the application play is run in the foreground.
  • the application running in the foreground by the terminal is a first application (for example, an e-book APP).
  • the terminal receives a lock screen command input by the user, the terminal locks the screen.
  • the terminal may enter a black screen state when the screen is locked or after the screen is locked, or the terminal may only lock the screen but does not enter the black screen state.
  • the terminal determines a second application that is running in the foreground after being unlocked. That is to say, the preset condition for running the second application is: detecting that the terminal is connected to the audio output device in the lock screen state.
  • the terminal when the terminal receives the identity authentication information input by the user (for example, a password, a fingerprint, etc. input by the user), the terminal may be triggered to detect whether the earphone is inserted or connected to the audio.
  • the terminal When the terminal is connected to the earphone or the stereo, the installed audio application can be determined as the second application that is run in the foreground after being unlocked.
  • the identity authentication information input by the user is the identity authentication information of the legal user stored in advance
  • the user of the current operation terminal is a legitimate user
  • the terminal can automatically add the audio after unlocking the terminal screen.
  • the class application switches to the foreground.
  • the display interface displayed for the user is the audio application (ie, the second application).
  • the preset condition for running the above-mentioned application supporting audio playback may further include: the priority of the application supporting the audio playback is higher than the priority of the first application. That is, if the terminal detects that the terminal is connected to the audio output device during the lock screen, the terminal may further determine whether the priority of the second application running after the unlocking determined at this time is higher than the first application running before the lock screen. priority. When the priority of the second application is higher than the priority of the first application running before the lock screen, the terminal jumps to the above-mentioned application supporting audio playback after unlocking. Otherwise, the terminal can continue to run the first application in the foreground after being unlocked.
  • the terminal may jump to the display interface of the program or song that the user recently listened to in the second application, so that the user can continue to listen after unlocking.
  • the terminal installs a plurality of second applications supporting playing audio, such as NetEase music, ⁇ FM, QQ music, etc.
  • the terminal detects connection with the audio output device during the lock screen, the terminal can jump after unlocking Go to the second application with higher priority.
  • the application when the frequency of use of a second application supporting audio playback is high, the application may be set as the second application with higher priority; or when a second application supporting audio playback is used by the user recently.
  • the application can be set to the second application with higher priority.
  • the priority of the second application supporting the audio playing may be preset or randomly selected by the user or the terminal, and the embodiment of the present application does not impose any limitation on this.
  • the terminal switches the second application to the foreground
  • the first application running in the foreground before the lock screen can be killed, or the first application running in the foreground before the lock screen is switched to the background.
  • the embodiment of the present application does not impose any limitation on this.
  • the terminal may further set an effective duration of the terminal switching to the second application.
  • setting the effective duration of the terminal to switch to the second application is within 15 s of detecting the insertion of the earphone. If the user unlocks the terminal within 15 seconds of inserting the earphone, the intention of the user to listen to the audio using the earphone is more obvious. Therefore, as shown in (a) of FIG. 11, when the terminal screen is locked, if the terminal receives the correct identity authentication information input by the user within 15s of detecting the insertion of the earphone, the second application can be automatically activated after the terminal is unlocked. Switch to the foreground to run.
  • the terminal may further set an effective period in which the terminal switches to the second application.
  • the terminal when the user is automatically connected to the Bluetooth audio in the home when the user is at home, the terminal can be detected to be connected to the Bluetooth speaker each time the user unlocks the terminal, and the terminal automatically switches to the second audio class each time the screen is unlocked. Apps will affect the user experience. Therefore, the above effective period can be set for 4 hours, so that, as shown in FIG. 12, if the Bluetooth sound is connected when the terminal detects the lock screen for the first time in each valid period, the second application can be automatically activated after the terminal is unlocked. Switch to the foreground operation. If the terminal connects to the Bluetooth audio when the lock screen is detected again within 4 hours, the terminal can continue to run the first application before the lock screen in the foreground.
  • the above effective period may also refer to the entire period of time from the connection of the Bluetooth audio to the disconnection of the terminal from the Bluetooth audio connection. Then, the terminal only needs to switch the second application to the foreground when the unlock command is received for the first time after the Bluetooth audio is connected, so as to avoid the inconvenience caused by frequent jumps to the second application when unlocking.
  • the terminal can also learn and correct the judgment condition of whether to switch to the second application when unlocking according to the usage habit of the user. For example, the user unlocks the screen after inserting the earphone when the screen is locked. At this time, the terminal automatically switches the second application to the foreground operation. Then, if the user is detected to quit the second application after unlocking the screen twice, the user is unlocked. The intended use is not to use the second application. Therefore, when the terminal detects that the user inserts the earphone while locking the screen again, if the user inputs the correct identity authentication information for unlocking, the terminal may continue to run the first application before the lock screen in the foreground.
  • the terminal may also collect and collect data such as the time, location, or motion state of the user using the second application, thereby determining a preset condition for the user to use the second application. For example, the user has a habit of listening to the song before going to bed (for example, 10:30-11:00 in the evening), or the user has a habit of listening to the song while driving. Then, at 10:30-11:00 in the evening or when it is determined that the user is driving, if the user detects that the user inserts the earphone or connects the sound in the lock screen state, the terminal can automatically switch the second application of the audio class when unlocking. Run to the front desk to provide users with a customized application switching experience.
  • the terminal when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal may lock the screen; in the lock screen state, if the terminal detects that the current location of the terminal is preset During the geo-fencing, and/or detecting that the current time is within the preset time period in the lock screen state, the terminal satisfies the preset condition for running the second application, and therefore, if the terminal receives the unlock command , the screen of the terminal can be unlocked, and the second application described above can be run in the foreground.
  • the preset condition for automatically running the second application after the terminal is unlocked may be: detecting that the current location of the terminal is in the preset geofence in the lock screen state, and/or detecting the current time in the lock screen state Within the preset time period.
  • the second application is an application for the attendance application (APPs for attendance or Attendance tracking APP)
  • the terminal when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal can lock the screen; in the lock screen state, if The terminal detects that the current location of the terminal is near the preset punching position, and the current time is within the punching time period, indicating that the terminal meets the preset condition for running the attendance application, and therefore, if the terminal receives the unlocking command, the terminal can be unlocked.
  • the screen of the terminal is described, and the attendance application described above is run in the foreground.
  • the preset geofence may be a preset vicinity of the preset punching position, and the preset time period may specifically be a preset punching time period.
  • the terminal can learn the time of punching (such as working time and off-duty time) that the user needs to punch by collecting the location information of the user at different times, for example, the working time of the user is 8:00 from Monday to Friday. At 9:00, the user's off-hours are from Monday to Friday from 17:30 to 18:30.
  • the time of punching such as working time and off-duty time
  • the terminal may also detect the location information of the user during the above-mentioned working time or off-duty time. If it is detected that the user is located near the punching location (for example, a company), the terminal may install the attendance.
  • a class application (such as a punch card application) determines an application that runs in the foreground after being unlocked.
  • the identity authentication information input by the user is the identity authentication information of the legal user stored in advance
  • the user of the current operation terminal is a legitimate user
  • the terminal can automatically perform the attendance after unlocking the terminal screen.
  • the punch card application switches to the foreground to prompt the user to go to work or punch the card.
  • the preset condition for running the attendance application may further include: the priority of the attendance application is higher than the priority of the first application. That is, if the terminal detects that the current location of the terminal is near the preset punching position during the lock screen, and the current time is within the punching time period, the terminal may further determine whether the priority of the attendance application is higher than before the lock screen. The priority of the first application running. When the priority of the attendance application is higher than the priority of the first application running before the lock screen, the terminal jumps to the attendance application after unlocking. Otherwise, the terminal can continue to run the first application in the foreground after being unlocked.
  • the number of times the terminal switches to the attendance or punching application after unlocking may be one time. That is to say, when the user unlocks the terminal during the working hours or the off-duty time, the terminal only reminds the user to punch the card through an application switching operation, so as to prevent the user from frequently displaying the punching application to disturb the user when the user unlocks the terminal during the above-mentioned working hours or after-hours.
  • the terminal may continue to detect whether the user performs the punching operation after switching to the attendance or punching application after the terminal is unlocked. If it is detected that the user performs the punching operation, the subsequent terminal does not switch to the attendance or punching application when unlocking the screen; correspondingly, if the user does not detect the punching operation, for example, the user quits the open application, the subsequent terminal When unlocking the screen, you can continue to switch to the above-mentioned attendance or punching application until the user is detected to perform the punching operation, preventing the user from forgetting to punch the card.
  • the terminal installs multiple attendance applications, if the terminal detects that the current location of the terminal is near the preset punching position during the lock screen, and the current time is within the punching time period, the terminal can jump to the unlocked state after unlocking. A higher priority attendance application.
  • the application when an attendance application is used frequently, the application can be set to a higher priority attendance application; or, when an attendance application is an application that the user has recently used, the application can be set. For higher priority attendance applications.
  • the priority of the above-mentioned attendance application may be preset or randomly selected by the user or the terminal, and the embodiment of the present application does not impose any limitation on this.
  • the terminal when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal can lock the screen; in the lock screen state, if the terminal detects the current location of the terminal When the user uses the historical location of the second application, and the current time is within the historical time when the user uses the second application, the terminal satisfies the preset condition for running the game or the reading application, and therefore, if the terminal receives the unlocking instruction, Unlock the screen of the terminal and run the above game or reading application in the foreground.
  • the preset geo-fence may specifically be a historical location of the second application, and the preset time period may specifically be a historical time when the user uses the second application.
  • the terminal may determine the intention of using the user when unlocking the screen at different times, different places or different scenes by acquiring a user portrait of the user or collecting behavior data for reflecting the behavior characteristics of the user.
  • the terminal can automatically switch to the corresponding function of the application or application that meets the user's intention of use, so that the user can quickly and accurately switch the application before and after the lock screen to implement the user. Efficient interaction with the terminal.
  • the user portrait usually includes one or more tags of the user (eg, gender, day and night habits, reading preferences, etc.), the user portrait can reflect the overall information of the user, and the terminal can predict the current possible behavior of the user through the user image or Likes.
  • tags of the user eg, gender, day and night habits, reading preferences, etc.
  • the user's user portrait indicates that the user is a person with a bedtime entertainment habit, and the user's sleep time is 23:00-7:30.
  • the terminal can determine the use intention when the user unlocks the terminal between 22:00-23:00 (before bedtime) according to the user portrait as using the game application B. Therefore, if it is detected between 22:00-23:00 that the user inputs the correct identity authentication information unlocking screen to the terminal, the game application B can be automatically opened after the terminal is unlocked, or the terminal can be automatically run in the background after being unlocked. Game application B switches to the foreground to run.
  • the user's user portrait indicates that the user is a person with a pre-sleep reading habit, and the user's sleep time is 23:00-7:30. Then, the terminal can determine the use intention when the user unlocks the terminal between 22:00-23:00 (before bedtime) according to the user portrait as using the reading application. Therefore, if it is detected between 22:00-23:00 that the user inputs the correct identity authentication information to the terminal to unlock the screen, the terminal can automatically open the reading application after unlocking, or the terminal can automatically read after the terminal is unlocked. The app switches to the foreground to run.
  • the preset condition for running the above game or reading application may further include: the priority of the game or reading application is higher than the priority of the first application. That is, if the terminal detects that the current location of the terminal during the lock screen is in the historical position where the user uses the game or the reading application, and the current time is within the historical time when the user uses the game or the reading application, the terminal may also It is further determined whether the priority of the game or reading application is higher than the priority of the first application running before the lock screen. When the priority of the game or reading application is higher than the priority of the first application running before the lock screen, the terminal jumps to the above game or reading application after unlocking. Otherwise, the terminal can continue to run the first application in the foreground after being unlocked.
  • the terminal when the second application is an application including an electronic ticket, when the terminal runs the first application in the foreground, if the lock screen command is received, the terminal can lock the screen; in the lock screen state, if the terminal detects the current location of the terminal In the vicinity of the station, the terminal satisfies the preset condition for running the application containing the electronic ticket. Therefore, if the terminal receives the unlocking command, the terminal can be unlocked and the above-mentioned electronic ticket-containing application can be run in the foreground.
  • the preset geographical fence may specifically be a station such as a subway station, a bus station, or a railway station.
  • the electronic ticket may refer to a virtual voucher obtained through a network (for example, a two-dimensional code, a short message information, etc.), and instead of using the original paper ticket (for example, a bus ticket, a train ticket, etc.) to use the boarding or Outbound ticket.
  • the terminal can determine the current location of the user by using various positioning methods. For example, the terminal can determine whether the user is located in the subway station by detecting an identifier of a service set identifier (SSID) of the current Wi-Fi network. As shown in FIG. 15, when it is determined that the user is located in the subway station, if it is detected that the user inputs the correct identity authentication information to the terminal to unlock the screen, the terminal can automatically open the NFC function and display the electronic bus card and other credit card credentials after the terminal is unlocked, so that the user can quickly Swipe out of the station.
  • SSID service set identifier
  • the terminal may also detect the current motion state of the user.
  • the NFC function can be automatically opened after the terminal is unlocked, and the card issuing certificate such as the electronic bus card is displayed, so as to prevent the user from swiping the card without waiting for the user.
  • the terminal is unlocked in the outbound scene, the electronic bus card is displayed to disturb the user.
  • the preset condition for running the above application including the electronic ticket may further include: the priority of the application including the electronic ticket is higher than the priority of the first application. That is, if the terminal detects that the current location of the terminal is near the station during the lock screen, the terminal may further determine whether the priority of the application including the electronic ticket is higher than the priority of the first application running before the lock screen. When the priority of the application containing the electronic ticket is higher than the priority of the first application running before the lock screen, the terminal jumps to the above-mentioned application containing the electronic ticket after unlocking. Otherwise, the terminal can continue to run the first application in the foreground after being unlocked.
  • the user can also preset a quick gesture to quickly enter an application or a certain function when the screen is unlocked.
  • the correspondence between the gesture of the knuckle tapping the screen and the payment interface in the Alipay application is set. Then, if the user detects that the user taps the screen through the knuckle when the terminal locks the screen, the terminal may first display an unlocking interface prompting the user to input the identity authentication information. After the user inputs the correct identity authentication information, the terminal may unlock and automatically display the payment treasure.
  • the payment interface of the app makes it easy for users to quickly activate the payment function of the Alipay application when unlocking.
  • the terminal may further provide a setting function 1602 for each application to be intelligently turned on when the unlocking is provided in the setting interface 1601.
  • a specific application that allows smart opening when unlocking may be further selected.
  • the method for determining whether to enable the WeChat application when the terminal is unlocked may be determined by the terminal in advance or automatically generated by the terminal, or may be manually set by the user.
  • the judgment conditions such as the time, location, and effective period of the smart WeChat application can be set.
  • the terminal detects that the terminal meets the judgment conditions in the lock screen state the related function of the WeChat application or the WeChat application is automatically enabled for the user after the screen is unlocked, thereby simplifying the switching process of the application before and after the screen unlocking, and improving the terminal and the user.
  • the above terminal and the like include hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
  • the embodiment of the present application may perform the division of the function modules on the terminal or the like according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 17 is a schematic diagram of a possible structure of a terminal involved in the foregoing embodiment, where the terminal includes: an operation unit 1701, a lock screen unit 1702, and an unlocking unit 1703. .
  • the operating unit 1701 is configured to: run the first application in the foreground; the lock screen unit 1702 is configured to: lock the screen of the terminal in response to the lock screen instruction; and the unlocking unit 1703 is configured to: in response to the unlocking instruction, when When the terminal meets the preset condition for running the second application, the screen of the terminal is unlocked; the running unit 1701 is further configured to: run the second application in the foreground, where the first application is different from the second application .
  • the preset condition includes: the terminal receiving a new message related to the second application in a lock screen state; the new message includes a short message, a missed call notification, an instant messaging message, an application Update at least one of a reminder, a push message, and an advertisement message.
  • the running unit 1701 is specifically configured to: run a detailed interface of the new message in the second application in a foreground; or run a preview interface of the new message in the second application in a foreground.
  • the running unit 1701 is specifically configured to: if the terminal acquires the location between the first time and the second time The unlocking command is executed, the first interface of the second application is run in the foreground, the second time is later than the first time; if the terminal obtains the location between the second time and the third time In the unlocking instruction, the second interface of the second application is run in the foreground, and the third moment is later than the second moment.
  • the running unit 1701 is further configured to: if the terminal acquires the unlocking instruction after the third moment, continue to run the first application in the foreground.
  • the running unit 1701 is specifically configured to: run a first interface of the first application in a foreground; when a priority of the target interface to which the new message belongs is higher than a priority of the first interface, The foreground interface of the second application is run by the foreground.
  • the preset condition includes: the terminal detects that the terminal is connected to an audio output device in a lock screen state; the second application is an application that supports audio playback; wherein the running unit 1701, Specifically, if the terminal receives the unlocking instruction for the first time in a state of being connected to the audio output device, the second application is executed in the foreground.
  • the preset condition includes any one or two of the following: the terminal detects that the current location is in a preset geofence in a lock screen state, or the terminal detects the current time in a lock screen state.
  • the preset time period is a preset punching time period; when the second application is a game or reading
  • the preset geofence is a historical location of the second application used by the user, the preset time period is a historical time when the user uses the second application; and when the second application is an electronic ticket
  • the preset geofence is a station.
  • the above-described operating unit 1701, lock screen unit 1702, and unlocking unit 1703 may be integrated into a processing module.
  • the terminal may further include a storage module, a communication module, an input and output module, and the like.
  • the processing module 1801 is configured to control and manage the action of the terminal.
  • the communication module 1802 is configured to support communication between the terminal and other network entities.
  • the input/output module 1803 is for receiving information input by a user or outputting information provided to the user and various menus of the terminal.
  • the storage module 1804 is configured to save program codes and data of the terminal.
  • the processing module 1801 may be a processor or a controller, for example, may be a central processing unit (CPU), a GPU, a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit. (Application-Specific Integrated Circuit, ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1802 can be a transceiver, a transceiver circuit, an input/output device, a communication interface, or the like.
  • the communication module 1802 may specifically be a Bluetooth device, a Wi-Fi device, a peripheral interface, or the like.
  • the memory module 1804 can be a memory, which can include high speed random access memory (RAM), and can also include non-volatile memory, such as magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
  • RAM high speed random access memory
  • non-volatile memory such as magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
  • the input/output module 1803 can be an input/output device such as a touch screen, a keyboard, a microphone, and a display.
  • the display may specifically be configured in the form of a liquid crystal display, an organic light emitting diode or the like.
  • a touch panel can be integrated on the display for collecting touch events on or near the display, and transmitting the collected touch information to other devices (such as a processor, etc.).
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请的实施例提供一种应用切换方法及终端,涉及通信技术领域,可简化屏幕解锁前后应用的切换过程,提高终端与用户之间的交互效率。该方法包括:终端在前台运行第一应用;响应于锁屏指令,所述终端锁定所述终端的屏幕;响应于解锁指令,当所述终端满足运行第二应用的预设条件时,所述终端解锁所述终端的屏幕,并在前台运行所述第二应用,所述第一应用与所述第二应用不同。

Description

一种应用切换方法及终端 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种应用切换方法及终端。
背景技术
为了保证用户隐私等重要信息的安全性,手机、平板电脑等终端一般都具有锁屏功能。当终端的屏幕锁定后,需要用户向终端输入正确的身份认证信息(例如数字密码、手势密码或者指纹等),才会触发终端解锁屏幕,从而恢复终端屏幕与用户之间的可交互性。
目前,终端解锁屏幕后始终会向用户显示最近一次锁屏时终端停留的显示界面。例如,如图1所示,用户在终端上使用相册浏览图片的过程中,如果检测到用户向终端输入锁屏操作,则终端进入锁屏状态。后续,当接收到用户向终端输入正确的身份认证信息时,终端解锁屏幕并继续显示锁屏前浏览的图片。
那么,如果终端在进入锁屏状态的这段时间内接收到短信、微信等新消息,或者用户在解锁终端时想要使用其他应用提供的功能时,需要在解锁屏幕后先退出当前的显示界面,进而查找并打开用户所希望的目标应用,使得屏幕解锁前后应用的切换过程操作较为繁琐,降低了终端与用户之间的交互效率。
发明内容
本申请的实施例提供一种应用切换方法及终端,可简化屏幕解锁前后应用的切换过程,提高终端与用户之间的交互效率。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请的实施例提供一种应用切换方法,包括:终端在前台运行第一应用;响应于锁屏指令,终端锁定终端的屏幕;响应于解锁指令,当终端满足运行第二应用的预设条件时,终端解锁终端的屏幕并在前台运行第二应用(第一应用与第二应用不同)。也就是说,当终端在锁屏时检测到终端满足运行某一应用(即第二应用)的预设条件时,说明用户解锁终端屏幕时希望打开该应用。那么,在接收到用户输入的解锁指令时,终端可以智能、便捷的为用户自动将前台运行的应用从锁屏前的第一应用切换为用户所需的第二应用,从而提高终端与用户之间的交互效率。
示例性的,上述预设条件包括以下多项中的至少一项:终端在锁屏状态下接收到与第二应用相关的新消息,终端在锁屏状态下检测到终端与音频输出设备连接,终端在锁屏状态下检测到当前位置在预设地理围栏内,或,终端在锁屏状态下检测到当前时间在预设时间段内。
当该预设条件为终端在锁屏状态下接收到与第二应用相关的新消息时,终端在前台运行第二应用,具体包括:终端在前台运行第二应用中该新消息的详情界面;或者,终端在前台运行第二应用中该新消息的预览界面,方便用户快速读取到未读的新消息。
其中,该新消息包括短消息、未接来电通知、即时通讯消息、应用更新提醒、推送消息以及广告消息中的至少一个。
在一种可能的设计方法中,在终端在锁屏状态下接收到与第二应用相关的新消息 之后,还包括:终端在后台打开第二应用。这样,当接收到解锁指令后,终端可自动将已经在后台运行的第二应用切换至前台运行,减少用户等待第二应用启动的时间。
在一种可能的设计方法中,该新消息是终端在第一时刻接收到的;那么,终端在前台运行第二应用,具体包括:若终端在第一时刻至第二时刻之间获取到该解锁指令,则终端在前台运行第二应用的第一界面,第二时刻晚于第一时刻;若终端在第二时刻至第三时刻之间获取到该解锁指令,则终端在前台运行第二应用的第二界面,该第三时刻晚于第二时刻。
另外,若终端在该第三时刻之后获取到该解锁指令,则该方法还包括:终端在前台继续运行第一应用。
也就是说,终端还可以设置终端切换至第二应用的有效时长,进而基于该有效时长终端可以判断是否从锁屏前的第一应用切换至上述新消息所属的第二应用,当确定切换至第二应用时,终端还可以根据该有效时长确定切换至第二应用的哪一个具体的界面中。
在一种可能的设计方法中,终端在前台运行第一应用,具体包括:终端在前台运行第一应用的第一界面;此时,终端在前台运行第二应用,具体包括:当该新消息所属的目标界面的优先级高于第一界面的优先级时,终端在前台运行第二应用的该目标界面。
当上述预设条件为终端在锁屏状态下检测到终端与音频输出设备连接时,说明用户在后续解锁时有播放音频的操作意图,因此,第二应用可以为支持音频播放的应用。此时,终端在前台运行第二应用,具体包括:若终端在与该音频输出设备保持连接的状态下首次接收到该解锁指令,则终端在前台运行第二应用。这样,终端只需在连接音频输出设备之后首次接收到解锁指令时,将第二应用切换至前台运行,在终端与音频输出设备保持连接的状态下再次(非首次)接收到解锁指令时,可以不切换到第二应用,从而避免解锁时频繁跳转至第二应用给用户带来的不便。
或者,上述预设条件包括以下任意一个或两个:终端在锁屏状态下检测到当前位置在预设地理围栏内,或,终端在锁屏状态下检测到当前时间在预设时间段内。
当上述预设地理围栏为预设的打卡位置附近,上述预设时间段为预设的打卡时间段时,说明用户在后续解锁时有记录考勤的操作意图,因此,第二应用可以为考勤类应用。此时,终端在前台运行第二应用,具体包括:当终端在该打卡时间段内首次接收到解锁指令时,终端在前台运行第二应用。
进一步地,在终端在前台运行第二应用之后,还包括:如果检测到用户在第二应用中执行打卡操作,则终端再次接收到用户输入的解锁操作时,继续在前台运行第一应用,避免用户在上述上班时间或下班时间内解锁终端时频繁显示打卡应用对用户造成打扰;如果检测到用户在第二应用中没有执行打卡操作,则终端再次接收到用户输入的解锁操作时,在前台运行第二应用,防止用户忘记打卡。
当上述预设地理围栏为用户使用第二应用的历史位置,上述预设时间段为用户使用第二应用的历史时间时,说明用户在后续解锁时有使用第二应用的操作意图,此时,该第二应用可以为游戏或阅读类应用。
当该预设地理围栏为车站时,说明用户在后续解锁时有使用电子车票的意图,因 此,第二应用可以为包含电子车票的应用。
进一步地,在上述任意一种可能的设计方法中,该预设条件还可以包括第二应用的优先级高于第一应用的优先级。
在一种可能的设计方法中,终端在前台运行第二应用,具体包括:终端将第二应用从后台切换至前台运行;或者,终端打开第二应用并在前台运行第二应用。
第二方面,本申请的实施例提供一种终端,包括:运行单元,用于:在前台运行第一应用;锁屏单元,用于:响应于锁屏指令,锁定终端的屏幕;解锁单元,用于:响应于解锁指令,当终端满足运行第二应用的预设条件时,解锁终端的屏幕;该运行单元,还用于:在前台运行第二应用,第一应用与第二应用不同。
在一种可能的设计方法中,该预设条件包括:终端在锁屏状态下接收到与第二应用相关的新消息;该新消息包括短消息、未接来电通知、即时通讯消息、应用更新提醒、推送消息以及广告消息中的至少一个;该运行单元,具体用于:在前台运行第二应用中该新消息的详情界面;或者,在前台运行第二应用中该新消息的预览界面。
在一种可能的设计方法中,该新消息是终端在第一时刻接收到的;该运行单元,具体用于:若终端在第一时刻至第二时刻之间获取到该解锁指令,则在前台运行第二应用的第一界面,第二时刻晚于第一时刻;若终端在第二时刻至第三时刻之间获取到该解锁指令,则在前台运行第二应用的第二界面,该第三时刻晚于第二时刻。
在一种可能的设计方法中,该运行单元,还用于:若终端在该第三时刻之后获取到该解锁指令,则在前台继续运行第一应用。
在一种可能的设计方法中,该运行单元,具体用于:在前台运行第一应用的第一界面;该新消息所属的目标界面的优先级高于第一界面的优先级时,在前台运行第二应用的该目标界面。
在一种可能的设计方法中,该预设条件包括:终端在锁屏状态下检测到终端与音频输出设备连接;第二应用为支持音频播放的应用;该运行单元,具体用于:若终端在与该音频输出设备保持连接的状态下首次接收到该解锁指令,则在前台运行第二应用。
在一种可能的设计方法中,该预设条件包括以下任意一个或两个:终端在锁屏状态下检测到当前位置在预设地理围栏内,或,终端在锁屏状态下检测到当前时间在预设时间段内;当第二应用为考勤类应用时,该预设地理围栏为预设的打卡位置附近,该预设时间段为预设的打卡时间段;当第二应用为游戏或阅读类应用时,该预设地理围栏为用户使用第二应用的历史位置,该预设时间段为用户使用第二应用的历史时间;当第二应用为包含电子车票的应用时,该预设地理围栏为车站。
在一种可能的设计方法中,该预设条件还包括:第二应用的优先级高于第一应用的优先级。
第三方面,本申请的实施例提供一种终端,包括:处理器、存储器和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器耦接,当终端运行时,该处理器执行该存储器存储的该计算机执行指令,以使终端执行上述任一项应用切换方法。
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项终端上运行时,使得终端执行上述任一项应用 切换方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项终端上运行时,使得终端执行上述任一项应用切换方法。
本申请的实施例中,上述终端内各部件的名字对设备本身不构成限定,在实际实现中,这些部件可以以其他名称出现。只要各个部件的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。
另外,第二方面至第五方面中任一种设计方式所带来的技术效果可参见上述第一方面中不同设计方法所带来的技术效果,此处不再赘述。
附图说明
图1为现有技术中终端解锁时的场景示意图;
图2为本申请实施例提供的一种终端的结构示意图一;
图3为本申请实施例提供的一种终端内编程模块的架构示意图;
图4为现有技术中一种终端解锁时的原理示意图;
图5为本申请实施例提供的一种应用切换方法的场景示意图一;
图6为本申请实施例提供的一种应用切换方法的场景示意图二;
图7为本申请实施例提供的一种应用切换方法的场景示意图三;
图8为本申请实施例提供的一种应用切换方法的场景示意图四;
图9为本申请实施例提供的一种应用切换方法的场景示意图五;
图10为本申请实施例提供的一种应用切换方法的场景示意图六;
图11为本申请实施例提供的一种应用切换方法的场景示意图七;
图12为本申请实施例提供的一种应用切换方法的场景示意图八;
图13为本申请实施例提供的一种应用切换方法的场景示意图九;
图14为本申请实施例提供的一种应用切换方法的场景示意图十;
图15为本申请实施例提供的一种应用切换方法的场景示意图十一;
图16为本申请实施例提供的一种应用切换方法的场景示意图十二;
图17为本申请实施例提供的一种终端的结构示意图二;
图18为本申请实施例提供的一种终端的结构示意图三;
图19为本申请实施例提供的一种应用切换方法的流程图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的一种应用切换方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等任意具有文件分享功能的终端上,本申请实施例对此不作任何限制。
如图2所示,本申请实施例中的终端可以为手机100。下面以手机100为例对实 施例进行具体说明。应该理解的是,图示手机100仅是上述终端的一个范例,并且手机100可以具有比图2中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。
参照图2,手机100可与除手机100外的其它电子设备102和104、以及服务器106通信。手机100可包括总线110、处理器120、存储器130、用户输入模块150、显示模块160、通信接口170和其它相似和/或合适组件。
总线110可以是将上述元件相互连接并在上述元件之间传递通信(例如控制消息)的电路。
处理器120可以通过总线110从上述其它元件(例如存储器130、用户输入模块150、显示模块160、通信接口170、通信配置控制模块170等)接收命令,可以解释接收到的命令,并可以根据所解释的命令来执行计算或数据处理。
存储器130可以存储从处理器120或其它元件(例如用户输入模块150、显示模块160、通信接口170等)接收的命令或数据或者由处理器120或其它元件产生的命令或数据。
存储器130可以包括编程模块,诸如内核131、中间件132、应用编程接口(API)133、应用134等。上述编程模块中的每个均可以用软件、固件、硬件或者其中两个或更多个的组合来实现,其详细描述可参见附图3的相关描述。
内核131可以控制或管理用于执行由其它编程模块(例如中间件132、API 133和应用134)实现的操作或功能的系统资源(例如总线110、处理器120、存储器130等等)。另外,内核131可以提供能够通过使用中间件132、API 133或应用134来访问并控制或者管理手机100的各个元件的接口。
中间件132可以用于在API 133或应用134与内核131之间以API 133或应用134与内核131通信并与其交换数据的方式运行。例如,中间件132可以被配置为用于在API 133或应用134与内核131之间进行通信的中介。另外,例如,关于从一个或多个应用134和/或中间件132接收的工作请求,可以通过使用向一个或多个应用134中的至少一个应用指派优先级(其中可以按所述优先级来使用手机100的系统资源(例如总线110、处理器120、存储器130等))的方法来执行工作请求的负载均衡。
API 133是应用134能够通过其控制由内核131或中间件132提供的功能的接口,并可以包括例如用于文件控制、窗口控制、图像处理、字符控制等的至少一个接口或功能。
应用134可以包括例如主页应用、拨号器应用、短消息服务(SMS)/多媒体消息服务(MMS)应用、即时消息(IM)应用、浏览器应用、相机应用、闹钟应用、联系人应用、语音拨号应用、电子邮件(e-mail)应用、日历应用、媒体播放器应用、相册应用、时钟应用以及任意其它合适和/或类似的应用。
用户输入模块150可以接收经由输入-输出手段(例如,传感器、键盘、触摸屏等)从用户输入的命令或数据,并可以通过总线110向处理器120或存储器130传送接收到的命令或数据。显示模块160可以向用户显示视频、图像、数据等。
显示模块160可以显示从上述元件接收到的各种信息(例如多媒体数据、文本数据)。
通信接口170可以控制与另一电子设备102之间的短距离通信连接。当手机100 与另一电子设备配对时,通信接口170可以停止等待从邻近电子设备接收信号的扫描操作或者停止广播信号的广播操作。例如,响应于手机100与另一电子设备102配对,通信接口170停止等待从邻近电子设备接收信号的扫描操作或者停止广播信号的广播操作。当手机100与另一电子设备配对时,通信接口170可以控制扫描或广播操作的周期。
根据本申请公开的各实施例,手机100可以使用通信接口170与另一电子设备通信。例如,通信接口170可以与另一电子设备104、服务器106等进行通信。通信接口170可以直接或者通过网络162与其它电子设备104、服务器106等进行通信。例如,通信接口170可以操作为将手机100连接至网络162。
图3示出了根据本申请实施例公开的编程模块的配置的框图。
参照图3,编程模块310可被包括(或被存储)在图2中示出的手机100(例如存储器130)中。编程模块310的至少一部分可以实施为软件、固件、硬件或它们中的两个或更多个的组合。编程模块310可以实施为硬件(例如硬件201),并可以包括控制与电子设备(例如手机100)相关的资源的OS和/或在OS中执行的各种应用(例如应用370)。例如,OS可以是Android、iOS、Windows、Symbian、Tizen、Bada等。
参照图3,编程模块310可以包括内核320、中间件330、API 360和/或应用370。
内核320(例如,内核131)可以包括系统资源管理器321和/或设备驱动程序323。系统资源管理器321可以包括进程管理器(未示出)、存储器管理器(未示出)和文件系统管理器(未示出)。系统资源管理器321可以执行对系统资源的控制、分配、恢复等。设备驱动程序323可以包括例如显示器驱动程序(未示出)、相机驱动程序(未示出)、蓝牙驱动程序(未示出)、共享存储器驱动程序(未示出)、USB驱动程序(未示出)、键区驱动程序(未示出)、Wi-Fi驱动程序(未示出)和/或音频驱动程序(未示出)。此外,根据本申请公开的实施例,设备驱动程序323可以包括进程间通信(IPC)驱动程序(未示出)。
中间件330可以包括预先实施的多个模块,以提供由应用370共用的功能。此外,中间件330可以通过API 360向应用370提供功能,以使应用370能够高效地使用电子设备内的有限系统资源。例如,如图3中所示,中间件330(例如中间件132)可以包括以下至少一项:运行库335、应用管理器341、窗口管理器342、多媒体管理器343、资源管理器344、电源管理器345、数据库管理器346、包管理器347、连接管理器348、通知管理器349、位置管理器350、图形管理器351、安全管理器352和任何其它合适和/或类似的管理器。
运行库335可以包括例如由编译器使用的库模块,以在应用370的执行期间通过使用编程语言来添加新功能。根据本申请公开的实施例,运行库335可以执行与输入和输出、存储器的管理、算术功能等相关的功能。
应用管理器341可以管理例如至少一个应用370的生命周期。窗口管理器342可以管理在屏幕上使用的图形用户界面(GUI)资源。多媒体管理器343可以检测用于再现各种媒体文件的格式,并可以通过使用适合于相关格式的编解码器对媒体文件进行编码或解码。资源管理器344可以管理至少一个应用370的资源,如源代码、存储器、存储空间等。
电源管理器345可以与基本输入/输出系统(BIOS)一起操作,可以管理电池或电源,并可以提供用于操作的电源信息等。数据库管理器346可以用以下方式来管理数据库:使得能够产生、搜索和/或改变将由至少一个应用370使用的数据库。包管理器347可以管理对以包文件的形式分发的应用的安装和/或更新。
连接管理器348可以管理诸如Wi-Fi和BT之类的无线连接。通知管理器349可以用不打扰用户的方式向用户显示或报告诸如到达消息、约会、接近警报等的事件。位置管理器350可以管理电子设备的位置信息。图形管理器351可以管理要向用户提供的图形效果和/或与图形效果相关的UI。安全管理器352可以提供用于系统安全、用户认证等的各种安全功能。根据本申请公开的实施例,当电子设备(例如,手机100)具有电话功能时,中间件330还可以包括电话管理器(未示出),用于管理电子设备的语音电话呼叫功能和/或视频电话呼叫功能。
中间件330可以通过上述内部元件模块的各种功能组合来产生和使用新中间件模块。中间件330可以提供根据OS的类型而专门化的模块,以提供差异化功能。中间件330还可以动态删除现有元件中的一些元件,或可以添加新元件。因此,中间件330可以省略在本申请公开各个实施例中描述的元件中的一些元件,还可以包括其他元件,或可以将这些元件中的一些元件替换为执行相似功能并具有不同名称的元件。
API 360(例如API 133)是API编程功能的集合,并且可以根据OS而具有不同配置。在例如Android或iOS的情况下,可以向每个平台提供一个API集合。在例如Tizen的情况下,可以向每个平台提供两个或更多个API集合。
应用370(例如图2中的应用134)可以包括例如预加载的应用和/或第三方应用。应用370(例如应用134)可以包括例如主页应用371、拨号应用372、SMS/MMS应用373、IM应用374、浏览器应用375、相机应用376、闹钟应用377、联系人应用378、语音拨号应用379、电子邮件应用380、日历应用381、媒体播放器应用382、相册应用383、时钟应用384以及任意其它合适和/或类似的应用。
以上述浏览器应用375为例,如图4所示,当浏览器应用375在前台运行时,可通过显示模块160为用户呈现相应的视觉输出。那么,当用户向手机100输入锁屏操作(例如按压电源键等),或者,在预设时间内没有接收到用户的任何输入时,可触发手机100生成锁屏指令,由手机100响应该锁屏指令在当前显示界面上加载锁屏界面(lock screen),并熄灭屏幕进入黑屏状态。
此时,仍如图4所示,手机100可将前台运行的浏览器应用375切换至后台运行,当浏览器应用375在后台运行时不会向用户提供视觉输出,手机100仍处于黑屏状态。后续,当用户操作手机100时,手机100的屏幕被点亮,并显示上述锁屏界面。
进而,当接收到用户输入的正确的身份认证信息(例如指纹、人脸、密码等)时,说明当前操作手机的用户为通过身份鉴权的合法用户,因此,仍如图4所示,手机100可去除上述锁屏界面,使得浏览器应用375可以恢复至前台运行,此时手机100向用户呈现的仍然为锁屏之前浏览器应用375的显示界面。
但是,在许多应用场景下用户在锁屏前和解锁后这两个时机对终端的使用意图不一定是一致的。例如,用户在锁屏前使用视频应用观看视频,但当锁屏后接收到未接 来电或消息时,用户解锁终端的使用意图可能是查看这些未接来电或消息;又例如,用户在锁屏前使用社交应用聊天,但当锁屏后用户向终端插入耳机或连接蓝牙音响时,用户解锁终端的使用意图可能是听歌。
因此,如果终端在解锁后仍然向用户显示锁屏前运行的应用(例如浏览器应用375),则用户需要先退出浏览器应用375,再查找自身需要的目标应用并打开目标应用,使得屏幕解锁前后应用的切换过程变得繁琐,降低了终端与用户之间的交互效率。
对此,在本申请实施例提供一种应用切换方法中,如图19所示,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕。后续,当终端接收到解锁指令时,如果终端满足运行第二应用(第一应用与第二应用不同)的预设条件,则终端解锁屏幕后,可在前台运行该第二应用。
具体的,终端可以收集在屏幕锁定至解锁屏幕这段时间内用于反映用户使用需求的特征数据,当该特征数据满足运行上述第二应用的预设条件时,说明用户解锁终端屏幕时希望打开该应用或该应用中的某一功能。那么,在接收到用户输入的解锁指令时,终端可以智能、便捷的为用户自动将前台运行的应用从锁屏前的第一应用切换为用户所需的第二应用,从而提高终端与用户之间的交互效率。
其中,上述解锁指令可以是终端根据用户输出的预先为解锁屏幕设置的指纹、密码等身份认证信息生成的。对于未设置锁屏密码的终端,该解锁指令也可以是终端根据用户输入用于唤醒终端屏幕的手势或操作生成的,例如,用户的抬手手势、用户按压电源键的操作等,本申请实施例对此不做任何限制。
另外,上述预设条件具体可以为:在锁屏状态下接收到与第二应用相关的新消息,在锁屏状态下检测到终端与音频输出设备(例如耳机)连接,终端在锁屏状态下检测到当前位置在预设地理围栏内,或者,在锁屏状态下检测到当前时间在预设时间段内等多个条件中的一个或多个。
在每一种预设条件下,终端在解锁时可自动运行与该预设条件相对应的第二应用。以下将结合具体应用场景详细阐述在不同预设条件下本申请实施例提供的应用切换方法。
需要说明的是,当终端在锁屏状态下满足上述预设条件中的多个条件,例如,满足运行应用A的第一预设条件,运行应用B的第二预设条件,以及运行应用C的第三预设条件时,终端可以在应用A、应用B以及应用C中随机选择一个作为在解锁之后运行的第二应用;或者,终端也可以按照用户预先设置或终端默认的优先级顺序,将应用A、应用B以及应用C中优先级最高的应用作为在解锁之后运行的第二应用;又或者,终端还可以根据用户的使用习惯在应用A、应用B以及应用C中确定一个应用作为在解锁之后运行的第二应用;又或者,终端还可以根据上述三个预设条件被满足的先后顺序从应用A、应用B以及应用C中确定一个应用作为在解锁之后运行的第二应用。
例如,终端可以将应用A、应用B以及应用C中用户最近一次使用的应用,或者,将用户使用频率最高的应用作为终端解锁之后运行的第二应用,本申请实施例对此不做任何限制。
如图5所示,在终端屏幕锁定之前,终端在前台运行的应用为第一应用(例如电子书APP),后续,当终端接收到锁屏指令时,终端锁定屏幕。其中,终端可以在锁定屏幕时或锁定屏幕之后进入黑屏状态,或者,终端也可以仅锁定屏幕但是不进入黑屏状态。那么,在终端屏幕锁定的这段时间内,如果终端接收到与安装的任意应用(例如第二应用)相关接收到新消息,则可确定终端满足运行该第二应用的预设条件。后续,若终端接收到解锁指令,则终端可以在解锁屏幕后自动在前台运行与上述新消息相关的第二应用。
其中,上述新消息具体可以为短消息、未接来电通知、更新提醒、应用的推送消息以及广告等,本申请实施例对此不做任何限制。而上述第二应用即为上述新消息所属的应用,例如,短消息所属的第二应用具体可以为短消息应用或即时通讯类应用,未接来电通知所属的第二应用具体可以为通话类应用,更新提醒、应用的推送消息以及广告所属的第二应用可以为任意第三方应用。
另外,终端接收该新消息可以是指终端接收服务器或其他终端发来的上述新消息,也可以是指终端的处理器接收到终端内应用或操作系统上报的新消息,本申请实施例对此不做任何限制。
进一步地,上述预设条件还可以包括:第二应用的优先级高于上述第一应用的优先级。也就是说,当终端接收到上述新消息后,终端可进一步比较该新消息所属的第二应用的优先级与上述第一应用的优先级。当第二应用的优先级高于第一应用的优先级时,例如,第二应用为优先级更高的微信应用,说明用户查看该新消息的需求更为迫切,因此,终端可以将第二应用确定为解锁后在前台运行的应用。
当然,终端也可以在终端接收到用户输入的身份认证信息时,触发终端比较上述新消息所属的第二应用的优先级与上述第一应用的优先级,当第二应用的优先级高于第一应用的优先级时,终端将第二应用确定为解锁后在前台运行的应用。
进而,如图6中的(a)所示,当用户输入的身份认证信息为预先存储的合法用户的身份认证信息时,说明当前操作终端的用户为合法用户,则终端在解锁终端屏幕后可以自动将第二应用切换至前台运行。此时终端屏幕解锁后为用户显示的可以是第二应用中上述新消息的预览界面。
又或者,如图6中的(b)所示,当用户输入的身份认证信息为预先存储的合法用户的身份认证信息时,终端可以自动进入第二应用中新消息的详情界面,方便用户快速读取到未读的新消息。
需要说明的是,如果解锁时上述第二应用正在终端的后台运行,则终端将第二应用切换至前台运行具体可以是指:将后台运行的第二应用切换至前台运行;又或者,如果解锁时上述第二应用没有在终端运行,则终端将第二应用切换至前台运行具体可以是指:自动打开上述第二应用。
同时,在终端将第二应用切换至前台运行时,还可以将锁屏前在前台运行的第一应用杀掉(kill),或者,将锁屏前在前台运行的第一应用切换至后台运行,本申请实施例对此不做任何限制。
在一种可能的设计方式中,如图7所示,终端还可以在接收到上述新消息后,触发终端确定该新消息所属的第二应用是否在终端运行。如果第二应用没有在终端上运 行,则在终端屏幕处于锁定状态时终端便可以自动打开上述第二应用,将第二应用运行在终端的后台。
这样,当接收到用户输入的正确的身份认证信息后,终端可自动将已经在后台运行的第二应用切换至前台运行,减少用户等待第二应用启动的时间。
另外,在设置第一应用与第二应用的优先级时,终端还可以以应用中的具体功能、服务或者窗口为粒度进行设置。例如,设置支付宝应用中转账消息的优先级>微信应用中未读消息的优先级>淘宝应用中系统通知消息的优先级。也就是说,终端可以以具体功能、服务或者窗口为粒度判断用户解锁时打开第二应用的需求是否迫切,从而在解锁后更加合理的将用户需求迫切的应用切换至前台运行。
例如,锁屏前终端在前台运行的是微信应用中未读消息的界面,那么,如果终端在锁屏状态下接收到向支付宝应用发送的转账消息,则终端在接收到解锁指令后,由于支付宝应用中转账消息的优先级>微信应用中未读消息的优先级,因此,终端可自动跳转至优先级更高的支付宝转账消息的界面。
类似的,对于同一应用,终端也可以设置该应用中的不同功能、不同服务或者不同窗口之间的优先级顺序。例如,对于微信应用,可以设置聊天界面的优先级>通讯录界面的优先级>设置界面的优先级。
那么,如图8所示,如果在终端屏幕锁定之前,终端停留在微信应用的通讯录界面801中,那么,当屏幕锁定后如果接收到来自好友A发送的新消息,由于该新消息所属的聊天界面802的优先级大于通讯录界面801的优先级,因此,后续当接收到用户输入的正确的身份认证信息后,终端可自动从锁屏前的通讯录界面801切换至聊天界面802中,以便用户快速查看好友A发送的新消息。
相应的,仍如图8所示,当屏幕锁定后如果接收到微信版本更新的系统消息,由于该系统消息所属的设置界面的优先级小于通讯录界面801的优先级,因此,后续当接收到用户输入的正确的身份认证信息后,终端仍可继续显示通讯录界面801,避免终端解锁时响应用户需求较小的事件而对用户造成打扰。
另外,终端如果在锁屏期间接收到多条所属不同应用的新消息,例如,接收到微信好友发来的新消息1以及支付宝转账消息2,则终端在解锁后可以跳转至优先级较高的新消息所属的应用中。
例如,当某一新消息所属的第二应用的使用频率较高时,可将该新消息设置为优先级较高的新消息;或者,可以将接收时间最早或最晚的新消息设置为优先级较高的新消息;又或者,当某一新消息所属的第二应用为用户最近使用过的应用时,可将该新消息设置为优先级较高的新消息。当然,上述新消息的优先级也可以是用户或终端预先设置或随机选取的,本申请实施例对此不做任何限制。
进一步地,为了能够准确识别出用户解锁屏幕时对终端的使用意图,除了上述优先级的判断条件外,终端还可以设置一个或多个其他判断条件触发解锁屏幕时自动为用户切换至第二应用。
示例性的,终端还可以设置终端切换至第二应用的有效时长。那么,基于该有效时长终端可以判断是否从锁屏前的第一应用切换至上述新消息所属的第二应用,当确定切换至第二应用时,终端还可以根据该有效时长确定切换至第二应用的哪一个具体 的界面中。
例如,设置终端切换至第二应用的第一有效时长为接收到新消息起的5s内,如果用户在接收到新消息起的5s内解锁终端,则说明用户回复该新消息的使用意图非常明显。因此,如图9中的(a)所示,当终端屏幕锁定时,如果终端接收到未接来电通知,则终端可以以接收到未接来电通知的第一时刻为起始时刻,启动一个时长为5秒的第一定时器,如果在该第一定时器超时的第二时刻之前接收到用户输入正确的身份认证信息,则终端解锁后可自动向该未接来电的呼叫方拨号,此时,终端从锁屏前的第一应用切换为上述未接来电通知所属的拨号应用的呼叫界面(即第二应用的第一界面)。
进一步地,还可以设置终端切换至第二应用的第二有效时长为接收到新消息起的5s-15s内。如果用户在接收到新消息起的5s-15s内解锁终端,则说明用户回复该新消息的使用意图较为明显。因此,如图9中的(b)所示,当终端屏幕锁定时终端接收到未接来电通知,当上述第一定时器超时时,终端可以以第一定时器超时的第二时刻为起始时刻,启动一个时长为10秒的第二定时器,如果在该第二定时器超时的第三时刻之前接收到用户输入正确的身份认证信息,则终端解锁后可自动切换至拨号应用的最近通话界面(即第二应用的第二界面),方便用户对该未接来电做进一步处理。
相应的,如图9中的(c)所示,如果在终端接收到新消息起的15s之后接收到用户输入的正确的身份认证信息,则说明用户查看上述新消息的使用意图相对较弱,此时终端可继续在前台运行锁屏前的第一应用。
示例性的,终端还可以设置终端切换至第二应用的有效周期。例如,可以设置锁屏时每次接收到新消息后,如果用户输入正确的身份认证信息,都会触发终端自动将锁屏前的第一应用切换为上述新消息所属的第二应用;也可以设置在某一时间段(例如每天的下班时间18:00-24:00)内,如果终端在锁屏时接收到新消息,则允许终端自动将锁屏前的第一应用切换为上述新消息所属的第二应用。
当然,上述判断条件可以是预先存储在终端内的,也可以是由用户手动设置的,还可以是终端从服务器中获取的,当然也可以是终端根据用户的使用习惯通过人工智能算法自动生成的,本申请实施例对此不做任何限制。
在本申请的一些实施例中,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕;在锁屏状态下,如果终端检测到与音频输出设备连接,则说明终端满足运行支持应用播放的应用的预设条件,因此,若终端接收到解锁指令,则可解锁所述终端的屏幕,并在前台运行上述支持应用播放的应用。
如图10所示,在终端屏幕锁定之前,终端在前台运行的应用为第一应用(例如电子书APP),后续,当终端接收到用户输入的锁屏指令时,终端锁定屏幕。其中,终端可以在锁定屏幕时或锁定屏幕之后进入黑屏状态,或者,终端也可以仅锁定屏幕但是不进入黑屏状态。
那么,在终端屏幕锁定的这段时间内,如果终端检测到插入耳机或连接音响等事件,说明用户此时有听歌或听书等音频播放意图,因此,终端可以将安装的支持音频播放的应用确定为解锁后在前台运行的第二应用。也就是说,运行该第二应用的预设条件为:在锁屏状态下检测到终端与音频输出设备连接。
当然,也可以在终端接收到用户输入的身份认证信息(例如用户输入的密码、指纹等)时,触发终端检测是否有耳机插入或与音响连接。当终端与耳机或音响连接时,可将已安装的音频类应用确定为解锁后在前台运行的第二应用。
进而,仍如图10所示,当用户输入的身份认证信息为预先存储的合法用户的身份认证信息时,说明当前操作终端的用户为合法用户,则终端在解锁终端屏幕后可以自动将上述音频类应用切换至前台运行。此时终端屏幕解锁后为用户显示的为该音频类应用(即第二应用)的显示界面。
进一步地,运行上述支持音频播放的应用的预设条件还可以包括:该支持音频播放的应用的优先级高于第一应用的优先级。也就是说,如果终端在锁屏期间检测到与音频输出设备连接,终端还可以进一步判断此时确定出的解锁后运行的第二应用的优先级是否高于锁屏前运行的第一应用的优先级。当第二应用的优先级高于锁屏前运行的第一应用的优先级时,终端在解锁后跳转至上述支持音频播放的应用中。否则,终端解锁后可继续在前台运行第一应用。
示例性的,解锁屏幕后终端可以跳转至第二应用中用户最近收听的节目或歌曲的显示界面,方便用户解锁后继续收听。
另外,如果终端安装了多个支持播放音频的第二应用,例如网易音乐、蜻蜓FM、QQ音乐等,那么,如果终端在锁屏期间检测到与音频输出设备连接,则终端在解锁后可以跳转至优先级较高的第二应用中。
例如,当某一支持播放音频的第二应用的使用频率较高时,可将应用设置为优先级较高的第二应用;或者,当某一支持播放音频的第二应用为用户最近使用过的应用时,可将应用设置为优先级较高的第二应用。当然,上述支持播放音频的第二应用的优先级也可以是用户或终端预先设置或随机选取的,本申请实施例对此不做任何限制。
类似的,在终端将第二应用切换至前台运行时,还可以将锁屏前在前台运行的第一应用杀掉(kill),或者,将锁屏前在前台运行的第一应用切换至后台运行,本申请实施例对此不做任何限制。
进一步地,如图11所示,终端还可以设置终端切换至上述第二应用的有效时长。例如,设置终端切换至第二应用的有效时长为检测到插入耳机的15s内,如果用户在插入耳机的15s内解锁终端,则说明用户使用耳机收听音频的意图较为明显。因此,如图11中的(a)所示,当终端屏幕锁定时,如果终端在检测到插入耳机的15s内接收到用户输入的正确的身份认证信息,则终端解锁后可自动将第二应用切换至前台运行。
相应的,如图11中的(b)所示,当终端屏幕锁定时,如果终端在检测到插入耳机的15s之后接收到用户输入的正确的身份认证信息,则终端解锁后可继续在前台运行锁屏前的第一应用。
示例性的,终端还可以设置终端切换至上述第二应用的有效周期。例如,当用户在家时终端与家中的蓝牙音响自动连接,那么每次用户解锁终端时均可检测到终端与蓝牙音箱处于连接状态,如果每次解锁屏幕时终端都自动切换至音频类的第二应用,则会影响用户的使用体验。因此,可以将上述有效周期设置4个小时,这样,如图12所示,在每个有效周期内,如果终端首次检测到锁屏时连接了蓝牙音响,则终端解锁 后可自动将第二应用切换至前台运行,后续如果终端在这4个小时内再次检测到锁屏时连接了蓝牙音响,则终端解锁后可继续在前台运行锁屏前的第一应用。
又或者,上述有效周期也可以是指终端从连接蓝牙音响到终端与蓝牙音响连接断开的整个时间段。那么,终端只需在连接蓝牙音响之后首次接收到解锁指令时,自动将第二应用切换至前台运行,避免解锁时频繁跳转至第二应用给用户带来的不便。
另外,终端还可以根据用户的使用习惯对解锁时是否切换至第二应用的判断条件进行学习和修正。例如,用户在锁屏时插入耳机后解锁屏幕,此时终端自动将第二应用切换至前台运行,那么,如果检测到用户连续两次在解锁屏幕后退出该第二应用,则说明用户解锁后的使用意图并不是使用该第二应用。因此,当终端再次在锁屏时检测到用户插入耳机时,如果用户输入正确的身份认证信息进行解锁,则终端可继续在前台运行锁屏前的第一应用。
又例如,终端还可以采集并统计用户使用第二应用的时间、地点或运动状态等数据,进而确定用户使用第二应用的预设条件。例如,用户在睡前(例如晚上10:30-11:00)有听歌习惯,或者用户在开车时有听歌习惯。那么,可以在晚上10:30-11:00或者在确定用户正在开车时,如果在锁屏状态下检测到用户插入耳机或连接音响,则终端可以在解锁时自动将音频类的第二应用切换至前台运行,为用户提供定制化的应用切换体验。
在本申请的另一些实施例中,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕;在锁屏状态下,如果终端检测到终端的当前位置在预设地理围栏(Geo-fencing)内,和/或,在锁屏状态下检测到当前时间在预设时间段内,则说明终端满足运行第二应用的预设条件,因此,若终端接收到解锁指令,则可解锁所述终端的屏幕,并在前台运行上述第二应用。
也就是说,终端解锁后自动运行第二应用的预设条件可以为:在锁屏状态下检测到终端的当前位置在预设地理围栏内,和/或,在锁屏状态下检测到当前时间在预设时间段内。
以第二应用为考勤类应用(APPs for attendance或Attendance tracking APP)为例,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕;在锁屏状态下,如果终端检测到终端的当前位置在预设的打卡位置附近,且当前时间在打卡时间段内,则说明终端满足运行考勤类应用的预设条件,因此,若终端接收到解锁指令,则可解锁所述终端的屏幕,并在前台运行上述考勤类应用。
也就是说,当第二应用为考勤类应用时,上述预设地理围栏具体可以为预设的打卡位置附近,而上述预设时间段具体可以为预设的打卡时间段。
示例性的,终端可以通过采集不同时间用户所处的位置信息等方式学习出用户需要打卡的打卡时间(例如上班时间和下班时间),例如,用户的上班时间为周一至周五8:00-9:00,用户的下班时间为周一至周五17:30-18:30。
那么,如图13所示,当终端屏幕锁定之后,终端还可以在上述上班时间或下班时间检测用户的位置信息,如果检测到用户位于打卡位置(例如公司)附近,则终端可以将安装的考勤类应用(例如打卡应用)确定为解锁后在前台运行的应用。
进而,仍如图13所示,当用户输入的身份认证信息为预先存储的合法用户的身份认证信息时,说明当前操作终端的用户为合法用户,则终端在解锁终端屏幕后可以自动将上述考勤或打卡应用切换至前台运行,以提示用户上班打卡或下班打卡。
进一步地,运行上述考勤类应用的预设条件还可以包括:该考勤类应用的优先级高于第一应用的优先级。也就是说,如果终端在锁屏期间检测到终端的当前位置在预设的打卡位置附近,且当前时间在打卡时间段内,终端还可以进一步判断考勤类应用的优先级是否高于锁屏前运行的第一应用的优先级。当考勤类应用的优先级高于锁屏前运行的第一应用的优先级时,终端在解锁后跳转至上述考勤类应用中。否则,终端解锁后可继续在前台运行第一应用。
示例性的,当终端在上述上班时间或下班时间内检测到用户位于公司附近时,终端解锁后切换至上述考勤或打卡应用的次数可以为一次。也就是说,用户在上班时间或下班时间解锁终端时,终端仅会通过一次应用切换操作提醒用户打卡,避免用户在上述上班时间或下班时间内解锁终端时频繁显示打卡应用对用户造成打扰。
又或者,如果在上述上班时间或下班时间内检测到用户位于公司附近,则在终端解锁后切换至上述考勤或打卡应用之后,终端还可以继续检测用户是否执行打卡操作。如果检测到用户执行了打卡操作,则后续终端在解锁屏幕时不会再切换至上述考勤或打卡应用;相应的,如果没有检测到用户执行打卡操作,例如用户退出了该打开应用,则后续终端在解锁屏幕时可继续切换至上述考勤或打卡应用,直至检测到户执行了打卡操作为止,防止用户忘记打卡。
另外,如果终端安装了多个考勤类应用,如果终端在锁屏期间检测到终端的当前位置在预设的打卡位置附近,且当前时间在打卡时间段内,则终端在解锁后可以跳转至优先级较高的考勤类应用中。
例如,当某一考勤类应用的使用频率较高时,可将应用设置为优先级较高的考勤类应用;或者,当某一考勤类应用为用户最近使用过的应用时,可将应用设置为优先级较高的考勤类应用。当然,上述考勤类应用的优先级也可以是用户或终端预先设置或随机选取的,本申请实施例对此不做任何限制。
以第二应用为游戏或阅读类应用为例,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕;在锁屏状态下,如果终端检测到终端的当前位置在用户使用第二应用的历史位置,且当前时间在用户使用第二应用的历史时间内,则说明终端满足运行游戏或阅读类应用的预设条件,因此,若终端接收到解锁指令,则可解锁所述终端的屏幕,并在前台运行上述游戏或阅读类应用。
也就是说,当第二应用为游戏或阅读类应用时,上述预设地理围栏具体可以为用户使用第二应用的历史位置,上述预设时间段具体可以为用户使用第二应用的历史时间。
示例性的,终端可以通过获取用户的用户画像,或者采集用于反映用户行为特征的行为数据,确定用户在不同时间、不同地点或不同场景下解锁屏幕时的使用意图。进而,用户在相应的时间、地点或场景下解锁终端屏幕时,终端可以自动切换至符合用户使用意图的应用或应用的相应功能中,使得用户可以在锁屏前后快捷准确的切换 应用,实现用户与终端之间的高效互动。
其中,上述用户画像中通常包括用户的一个或多个标签(例如性别、熬夜习惯、阅读偏好等),该用户画像可反映出用户的信息全貌,终端可以通过用户画像预测用户当前可能的行为或喜好。
示例性的,如图14所示,用户的用户画像中指示该用户是一个具有睡前娱乐习惯的人,且该用户的睡眠时间为23:00-7:30。那么,终端根据该用户画像可以将用户在22:00-23:00之间(睡前)解锁终端时的使用意图确定为使用游戏应用B。因此,如果在22:00-23:00之间检测到用户向终端输入正确的身份认证信息解锁屏幕,则终端解锁后可以自动打开游戏应用B,或者,终端解锁后可自动将正在后台运行的游戏应用B切换至前台运行。
又例如,用户的用户画像中指示该用户是一个具有睡前阅读习惯的人,且该用户的睡眠时间为23:00-7:30。那么,终端根据该用户画像可以将用户在22:00-23:00之间(睡前)解锁终端时的使用意图确定为使用阅读应用。因此,如果在22:00-23:00之间检测到用户向终端输入正确的身份认证信息解锁屏幕,则终端解锁后可以自动打开阅读应用,或者,终端解锁后可自动将正在后台运行的阅读应用切换至前台运行。
进一步地,运行上述游戏或阅读类应用的预设条件还可以包括:该游戏或阅读类应用的优先级高于第一应用的优先级。也就是说,如果终端在锁屏期间检测到终端的当前位置在用户使用该游戏或阅读类应用的历史位置,且当前时间在用户使用该游戏或阅读类应用的历史时间内,则终端还可以进一步判断该游戏或阅读类应用的优先级是否高于锁屏前运行的第一应用的优先级。当游戏或阅读类应用的优先级高于锁屏前运行的第一应用的优先级时,终端在解锁后跳转至上述游戏或阅读类应用中。否则,终端解锁后可继续在前台运行第一应用。
以第二应用为包含电子车票的应用为例,当终端在前台运行第一应用时,如果接收到锁屏指令,则终端可锁定屏幕;在锁屏状态下,如果终端检测到终端的当前位置在车站附近,则说明终端满足运行包含电子车票的应用的预设条件,因此,若终端接收到解锁指令,则可解锁所述终端的屏幕,并在前台运行上述包含电子车票的应用。
也就是说,当第二应用为包含电子车票的应用时,上述预设地理围栏具体可以为地铁站、公交车站、火车站等车站。其中,电子车票可以是指通过网络获取的虚拟凭证(例如,二维码,短信信息等),并凭此代替原本的纸质车票(例如,汽车票,火车票公交卡等)使用登车或出站的车票。
终端可以通过各种定位方式确定用户当前所处的位置,例如终端可以通过探测当前Wi-Fi网络的服务集标识(service set identifier,SSID)等标识确定用户是否位于地铁站。如图15所示,当确定用户位于地铁站时,如果检测到用户向终端输入正确的身份认证信息解锁屏幕,则终端解锁后可以自动打开NFC功能并显示电子公交卡等刷卡凭证,方便用户快速刷卡出站。
进一步地,当确定用户位于地铁站时,终端还可以检测用户当前的运动状态。当确定出用户为走路状态时,如果接收到用户向终端输入的正确的身份认证信息,则终端解锁后可以自动打开NFC功能并显示电子公交卡等刷卡凭证,避免用户在乘车等不 需要刷卡出站的场景下终端解锁时显示电子公交卡对用户造成打扰。
进一步地,运行上述包含电子车票的应用的预设条件还可以包括:该包含电子车票的应用的优先级高于第一应用的优先级。也就是说,如果终端在锁屏期间检测到终端的当前位置在车站附近,则终端还可以进一步判断该包含电子车票的应用的优先级是否高于锁屏前运行的第一应用的优先级。当包含电子车票的应用的优先级高于锁屏前运行的第一应用的优先级时,终端在解锁后跳转至上述包含电子车票的应用中。否则,终端解锁后可继续在前台运行第一应用。
当然,用户也可以预先设置解锁屏幕时快速进入某一应用或某一功能的快捷手势。例如,设置指关节敲击屏幕这一手势与支付宝应用中付款界面之间的对应关系。那么,在终端锁屏时如果检测到用户通过指关节敲击屏幕,则终端可首先显示提示用户输入身份认证信息的解锁界面,当用户输入正确的身份认证信息后,终端可解锁并自动显示支付宝应用的付款界面,方便用户在解锁时快速启动支付宝应用的付款功能。
进一步地,如图16中的(a)所示,终端还可以在设置界面1601中提供解锁时智能开启各个应用的设置功能1602。当用户开启该设置功能1602时,可进一步选择允许解锁时智能开启的具体应用。
以允许终端解锁时智能开启微信应用为例,其中,判断是否开启微信应用的判断条件可以是终端预先设置或自动生成的,也可以是用户手动设置的。示例性的,如图16中的(b)所示,用户允许解锁时智能开启的微信应用后,可对智能开启微信应用的时间、地点以及有效周期等判断条件进行设置。后续,当终端在锁屏状态下检测到终端满足这些判断条件时,可在解锁屏幕后自动为用户开启微信应用或微信应用的相关功能,从而简化屏幕解锁前后应用的切换过程,提高终端与用户之间的交互效率。
可以理解的是,上述终端等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述终端等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图17示出了上述实施例中所涉及的终端的一种可能的结构示意图,该终端包括:运行单元1701、锁屏单元1702以及解锁单元1703。
其中,运行单元1701,用于:在前台运行第一应用;锁屏单元1702,用于:响应于锁屏指令,锁定所述终端的屏幕;解锁单元1703,用于:响应于解锁指令,当所述 终端满足运行第二应用的预设条件时,解锁所述终端的屏幕;运行单元1701,还用于:在前台运行所述第二应用,所述第一应用与所述第二应用不同。
示例性的,所述预设条件包括:所述终端在锁屏状态下接收到与所述第二应用相关的新消息;所述新消息包括短消息、未接来电通知、即时通讯消息、应用更新提醒、推送消息以及广告消息中的至少一个。其中,所述运行单元1701,具体用于:在前台运行所述第二应用中所述新消息的详情界面;或者,在前台运行所述第二应用中所述新消息的预览界面。
进一步地,所述新消息是所述终端在第一时刻接收到的;那么,所述运行单元1701,具体用于:若所述终端在所述第一时刻至第二时刻之间获取到所述解锁指令,则在前台运行所述第二应用的第一界面,所述第二时刻晚于所述第一时刻;若所述终端在所述第二时刻至第三时刻之间获取到所述解锁指令,则在前台运行所述第二应用的第二界面,所述第三时刻晚于所述第二时刻。
进一步地,所述运行单元1701,还用于:若所述终端在所述第三时刻之后获取到所述解锁指令,则在前台继续运行所述第一应用。
进一步地,所述运行单元1701,具体用于:在前台运行所述第一应用的第一界面;所述新消息所属的目标界面的优先级高于所述第一界面的优先级时,在前台运行所述第二应用的所述目标界面。
示例性的,所述预设条件包括:所述终端在锁屏状态下检测到所述终端与音频输出设备连接;所述第二应用为支持音频播放的应用;其中,所述运行单元1701,具体用于:若所述终端在与所述音频输出设备保持连接的状态下首次接收到所述解锁指令,则在前台运行所述第二应用。
示例性的,所述预设条件包括以下任意一个或两个:所述终端在锁屏状态下检测到当前位置在预设地理围栏内,或,所述终端在锁屏状态下检测到当前时间在预设时间段内。当所述第二应用为考勤类应用时,所述预设地理围栏为预设的打卡位置附近,所述预设时间段为预设的打卡时间段;当所述第二应用为游戏或阅读类应用时,所述预设地理围栏为用户使用所述第二应用的历史位置,所述预设时间段为用户使用所述第二应用的历史时间;当所述第二应用为包含电子车票的应用时,所述预设地理围栏为车站。
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用集成的单元的情况下,可将上述运行单元1701、锁屏单元1702以及解锁单元1703集成为处理模块。当然,终端中还可以包括存储模块、通信模块以及输入输出模块等。
此时,如图18所示,示出了上述实施例中所涉及的终端的一种可能的结构示意图。其中,处理模块1801用于对终端的动作进行控制管理。通信模块1802用于支持终端与其他网络实体的通信。输入/输出模块1803用于接收由用户输入的信息或输出提供给用户的信息以及终端的各种菜单。存储模块1804用于保存终端的程序代码和数据。
示例性的,处理模块1801可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),GPU,通用处理器,数字信号处理器(Digital Signal Processor, DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。
通信模块1802可以是收发器、收发电路、输入输出设备或通信接口等。例如,通信模块1802具体可以是蓝牙装置、Wi-Fi装置、外设接口等等。
存储模块1804可以是存储器,该存储器可以包括高速随机存取存储器(RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。
输入/输出模块1803可以为触摸屏、键盘、麦克风以及显示器等输入输出设备。其中,显示器具体可以采用液晶显示器、有机发光二极管等形式来配置显示器。另外,显示器上还可以集成触控板,用于采集在其上或附近的触摸事件,并将采集到的触摸信息发送给其他器件(例如处理器等)。
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (25)

  1. 一种应用切换方法,其特征在于,包括:
    终端在前台运行第一应用;
    响应于锁屏指令,所述终端锁定所述终端的屏幕;
    响应于解锁指令,当所述终端满足运行第二应用的预设条件时,所述终端解锁所述终端的屏幕,并在前台运行所述第二应用,所述第一应用与所述第二应用不同。
  2. 根据权利要求1所述的方法,其特征在于,所述预设条件包括:所述终端在锁屏状态下接收到与所述第二应用相关的新消息;
    所述新消息包括短消息、未接来电通知、即时通讯消息、应用更新提醒、推送消息以及广告消息中的至少一个。
  3. 根据权利要求2所述的方法,其特征在于,所述终端在前台运行所述第二应用,包括:
    所述终端在前台运行所述第二应用中所述新消息的详情界面;或者,
    所述终端在前台运行所述第二应用中所述新消息的预览界面。
  4. 根据权利要求2或3所述的方法,其特征在于,所述新消息是所述终端在第一时刻接收到的;
    其中,所述终端在前台运行所述第二应用,包括:
    若所述终端在所述第一时刻至第二时刻之间获取到所述解锁指令,则所述终端在前台运行所述第二应用的第一界面,所述第二时刻晚于所述第一时刻;
    若所述终端在所述第二时刻至第三时刻之间获取到所述解锁指令,则所述终端在前台运行所述第二应用的第二界面,所述第三时刻晚于所述第二时刻。
  5. 根据权利要求4所述的方法,其特征在于,若所述终端在所述第三时刻之后获取到所述解锁指令,则所述方法还包括:
    所述终端在前台继续运行所述第一应用。
  6. 根据权利要求2-5中任一项所述的方法,其特征在于,
    终端在前台运行第一应用,包括:所述终端在前台运行所述第一应用的第一界面;
    其中,所述终端在前台运行所述第二应用,包括:当所述新消息所属的目标界面的优先级高于所述第一界面的优先级时,所述终端在前台运行所述第二应用的所述目标界面。
  7. 根据权利要求1所述的方法,其特征在于,所述预设条件包括:所述终端在锁屏状态下检测到所述终端与音频输出设备连接;所述第二应用为支持音频播放的应用。
  8. 根据权利要求7所述的方法,其特征在于,所述终端在前台运行所述第二应用,包括:
    若所述终端在与所述音频输出设备保持连接的状态下首次接收到所述解锁指令,则所述终端在前台运行所述第二应用。
  9. 根据权利要求1所述的方法,其特征在于,所述预设条件包括以下任意一个或两个:所述终端在锁屏状态下检测到当前位置在预设地理围栏内,或,所述终端在锁屏状态下检测到当前时间在预设时间段内。
  10. 根据权利要求9所述的方法,其特征在于,所述第二应用为考勤类应用,其 中,所述预设地理围栏为预设的打卡位置附近,所述预设时间段为预设的打卡时间段。
  11. 根据权利要求10所述的方法,其特征在于,所述终端在前台运行第二应用,包括:
    当所述终端在所述打卡时间段内首次接收到解锁指令时,所述终端在前台运行所述第二应用。
  12. 根据权利要求9所述的方法,其特征在于,所述第二应用为游戏或阅读类应用,其中,所述预设地理围栏为用户使用所述第二应用的历史位置,所述预设时间段为用户使用所述第二应用的历史时间。
  13. 根据权利要求9所述的方法,其特征在于,所述第二应用为包含电子车票的应用,其中,所述预设地理围栏为车站。
  14. 根据权利要求2-13中任一项所述的方法,其特征在于,所述预设条件还包括:所述第二应用的优先级高于所述第一应用的优先级。
  15. 一种终端,其特征在于,包括:
    运行单元,用于:在前台运行第一应用;
    锁屏单元,用于:响应于锁屏指令,锁定所述终端的屏幕;
    解锁单元,用于:响应于解锁指令,当所述终端满足运行第二应用的预设条件时,解锁所述终端的屏幕;
    所述运行单元,还用于:在前台运行所述第二应用,所述第一应用与所述第二应用不同。
  16. 根据权利要求15所述的终端,其特征在于,所述预设条件包括:所述终端在锁屏状态下接收到与所述第二应用相关的新消息;所述新消息包括短消息、未接来电通知、即时通讯消息、应用更新提醒、推送消息以及广告消息中的至少一个;
    所述运行单元,具体用于:在前台运行所述第二应用中所述新消息的详情界面;或者,在前台运行所述第二应用中所述新消息的预览界面。
  17. 根据权利要求16所述的终端,其特征在于,所述新消息是所述终端在第一时刻接收到的;
    所述运行单元,具体用于:若所述终端在所述第一时刻至第二时刻之间获取到所述解锁指令,则在前台运行所述第二应用的第一界面,所述第二时刻晚于所述第一时刻;若所述终端在所述第二时刻至第三时刻之间获取到所述解锁指令,则在前台运行所述第二应用的第二界面,所述第三时刻晚于所述第二时刻。
  18. 根据权利要求17所述的终端,其特征在于,
    所述运行单元,还用于:若所述终端在所述第三时刻之后获取到所述解锁指令,则在前台继续运行所述第一应用。
  19. 根据权利要求16-18中任一项所述的终端,其特征在于,
    所述运行单元,具体用于:在前台运行所述第一应用的第一界面;所述新消息所属的目标界面的优先级高于所述第一界面的优先级时,在前台运行所述第二应用的所述目标界面。
  20. 根据权利要求15所述的终端,其特征在于,所述预设条件包括:所述终端在锁屏状态下检测到所述终端与音频输出设备连接;所述第二应用为支持音频播放的应 用;
    所述运行单元,具体用于:若所述终端在与所述音频输出设备保持连接的状态下首次接收到所述解锁指令,则在前台运行所述第二应用。
  21. 根据权利要求15所述的终端,其特征在于,所述预设条件包括以下任意一个或两个:所述终端在锁屏状态下检测到当前位置在预设地理围栏内,或,所述终端在锁屏状态下检测到当前时间在预设时间段内;
    当所述第二应用为考勤类应用时,所述预设地理围栏为预设的打卡位置附近,所述预设时间段为预设的打卡时间段;
    当所述第二应用为游戏或阅读类应用时,所述预设地理围栏为用户使用所述第二应用的历史位置,所述预设时间段为用户使用所述第二应用的历史时间;
    当所述第二应用为包含电子车票的应用时,所述预设地理围栏为车站。
  22. 根据权利要求16-21中任一项所述的终端,其特征在于,所述预设条件还包括:所述第二应用的优先级高于所述第一应用的优先级。
  23. 一种终端,其特征在于,包括:处理器、显示器、存储器和通信接口;
    所述存储器用于存储计算机执行指令,所述处理器与所述存储器耦接,当所述终端运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述终端执行如权利要求1-14中任一项所述的应用切换方法。
  24. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在终端上运行时,使得所述终端执行如权利要求1-14中任一项所述的应用切换方法。
  25. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,使得所述终端执行如权利要求1-14中任一项所述的应用切换方法。
PCT/CN2018/075876 2018-02-08 2018-02-08 一种应用切换方法及终端 WO2019153211A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201880074955.8A CN111373348B (zh) 2018-02-08 2018-02-08 一种应用切换方法及终端
PCT/CN2018/075876 WO2019153211A1 (zh) 2018-02-08 2018-02-08 一种应用切换方法及终端
US16/968,375 US20200396325A1 (en) 2018-02-08 2018-02-08 Application switching method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/075876 WO2019153211A1 (zh) 2018-02-08 2018-02-08 一种应用切换方法及终端

Publications (1)

Publication Number Publication Date
WO2019153211A1 true WO2019153211A1 (zh) 2019-08-15

Family

ID=67548687

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075876 WO2019153211A1 (zh) 2018-02-08 2018-02-08 一种应用切换方法及终端

Country Status (3)

Country Link
US (1) US20200396325A1 (zh)
CN (1) CN111373348B (zh)
WO (1) WO2019153211A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10264113B2 (en) 2014-01-10 2019-04-16 Onepin, Inc. Automated messaging
US10298740B2 (en) * 2014-01-10 2019-05-21 Onepin, Inc. Automated messaging
US11543932B1 (en) * 2020-10-29 2023-01-03 mmhmm inc. Rule-based prioritization and activation of overlapping screen areas using pointing device
CN112559044A (zh) * 2020-12-23 2021-03-26 Oppo广东移动通信有限公司 一种播放切换方法、装置及计算机可读存储介质
WO2022222576A1 (zh) * 2021-04-23 2022-10-27 荣耀终端有限公司 一种场景识别方法及电子设备
CN114928809B (zh) * 2021-06-11 2023-04-07 荣耀终端有限公司 一种地理围栏的使用方法及电子设备
WO2023005362A1 (zh) * 2021-07-30 2023-02-02 深圳传音控股股份有限公司 处理方法、处理设备及存储介质
CN115022461B (zh) * 2021-12-01 2023-02-28 荣耀终端有限公司 地铁出行检测方法及电子设备
CN115562743B (zh) * 2022-03-31 2023-10-27 荣耀终端有限公司 一种应用程序加载方法及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981763A (zh) * 2012-11-16 2013-03-20 中科创达软件股份有限公司 触控屏锁定状态下运行应用程序的方法
CN103645825A (zh) * 2013-11-22 2014-03-19 华为终端有限公司 消息的处理方法及装置
CN107395872A (zh) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 应用启动方法、装置、存储介质及电子设备
CN107609374A (zh) * 2017-09-08 2018-01-19 维沃移动通信有限公司 一种解锁方法及移动终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7657849B2 (en) * 2005-12-23 2010-02-02 Apple Inc. Unlocking a device by performing gestures on an unlock image
CN104468963B (zh) * 2014-08-25 2017-03-15 宇龙计算机通信科技(深圳)有限公司 非接触应用的切换方法及系统
CN104468993A (zh) * 2014-11-27 2015-03-25 深圳市金立通信设备有限公司 一种查看消息的方法
CN106331318A (zh) * 2016-08-15 2017-01-11 宇龙计算机通信科技(深圳)有限公司 一种应用自动开启方法以及装置
CN106843923A (zh) * 2016-12-14 2017-06-13 广东小天才科技有限公司 一种移动终端的音频应用程序的启动方法及装置
CN107181856A (zh) * 2017-03-30 2017-09-19 努比亚技术有限公司 一种应用控制方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981763A (zh) * 2012-11-16 2013-03-20 中科创达软件股份有限公司 触控屏锁定状态下运行应用程序的方法
CN103645825A (zh) * 2013-11-22 2014-03-19 华为终端有限公司 消息的处理方法及装置
CN107395872A (zh) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 应用启动方法、装置、存储介质及电子设备
CN107609374A (zh) * 2017-09-08 2018-01-19 维沃移动通信有限公司 一种解锁方法及移动终端

Also Published As

Publication number Publication date
US20200396325A1 (en) 2020-12-17
CN111373348A (zh) 2020-07-03
CN111373348B (zh) 2021-08-13

Similar Documents

Publication Publication Date Title
WO2019153211A1 (zh) 一种应用切换方法及终端
US10863023B2 (en) Devices and methods of providing response message in the devices
US10789044B2 (en) End-to-end user experiences with a digital assistant
EP3245579B1 (en) User interaction pattern extraction for device personalization
AU2011202836B2 (en) Mobile terminal and method of controlling a mode screen display therein
JP6228676B2 (ja) 接続状態プロンプティング方法および装置
US9807218B2 (en) Method for filtering spam in electronic device and the electronic device
WO2019227488A1 (zh) 一种查看信息内容的方法及终端
AU2011202838A1 (en) Mobile terminal and method of controlling a mode screen display therein
CN107395880B (zh) 信息显示方法、装置及终端
EP2885909B1 (en) Apparatus, method and computer program product for sharing data
CN107423064B (zh) 消息处理方法、装置、终端设备及存储介质
US20170293494A1 (en) Method and device for starting application interface
CN111656347A (zh) 一种项目的显示方法及终端
US10027629B2 (en) Short message service reading method and device
CN113163051B (zh) 移动终端及其管控方法
KR20120016771A (ko) 이동 단말기 및 이것의 웹 사이트를 통한 정보 공개 제어 방법
KR20180108142A (ko) 통화 관련 정보를 표시하기 위한 전자 장치 및 그의 동작 방법
CN110622160B (zh) 通过筛选好友类型进行交友的方法及装置
KR102495242B1 (ko) 통화 기능을 제어하기 위한 전자 장치 및 방법
WO2019153687A1 (zh) 一种通话记录的管理方法及终端
US20240219506A1 (en) Locating method and apparatus, electronic device, and storage medium
US20150063171A1 (en) Method and apparatus for transmitting multimedia data during call origination in communication terminal
KR20150104862A (ko) 메시지의 송수신 신호 및 통화 요청에 관한 신호를 검출하는 방법과 이를 구현하는 전자장치
CN115729770A (zh) 界面状态检测方法、装置和用于检测界面状态的装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18904936

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18904936

Country of ref document: EP

Kind code of ref document: A1