WO2017173765A1 - 启动应用界面的方法及装置 - Google Patents

启动应用界面的方法及装置 Download PDF

Info

Publication number
WO2017173765A1
WO2017173765A1 PCT/CN2016/095905 CN2016095905W WO2017173765A1 WO 2017173765 A1 WO2017173765 A1 WO 2017173765A1 CN 2016095905 W CN2016095905 W CN 2016095905W WO 2017173765 A1 WO2017173765 A1 WO 2017173765A1
Authority
WO
WIPO (PCT)
Prior art keywords
application interface
interface
application
startup
currently interacting
Prior art date
Application number
PCT/CN2016/095905
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 北京小米移动软件有限公司
Publication of WO2017173765A1 publication Critical patent/WO2017173765A1/zh

Links

Images

Classifications

    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present disclosure relates to the field of electronic devices, and in particular to a method and apparatus for launching an application interface.
  • the application interface on the terminal is more and more diverse.
  • the terminal may provide a startup option of another application interface in one application interface to switch from one application interface to another.
  • the startup option of the second application interface is provided. If the user wants to start the second application interface, the startup option may be clicked to trigger the second application.
  • the terminal When receiving the startup instruction, the terminal first sends a pause instruction to the first application interface, waits for a period of time, and when the first application interface is in a pause state and returns a pause response, the second application interface is started.
  • the embodiments of the present disclosure provide a method and an apparatus for launching an application interface.
  • the technical solution is as follows:
  • a method of launching an application interface includes:
  • the second application interface is started.
  • the determining whether the first application interface and the second application interface are currently interacting includes:
  • the startup instruction includes a main interface startup identifier, where the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is a home main interface;
  • startup command includes the main interface startup identifier, it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining whether the first application interface and the second application interface are currently interacting includes:
  • the first application interface is not an Activity interface, it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining whether the first application interface and the second application interface are currently interacting includes:
  • first application interface and the second application interface are located in different processes, it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining whether the first application interface and the second application interface are currently interacting includes:
  • first application interface is an Activity interface
  • first application interface and the second application interface are in the same process, it is determined that the first application interface and the second application interface are currently interacting.
  • the method further includes:
  • the second application interface is started after determining that the first application interface is in a suspended state.
  • an apparatus for launching an application interface comprising:
  • the instruction receiving module is configured to receive a startup instruction for the second application interface in the first application interface
  • a determining module configured to determine whether the first application interface and the second application interface are currently interacting with each other;
  • the startup module is configured to start the second application interface if it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining module is configured to determine whether the startup instruction includes a main interface startup identifier, where the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is a home main interface; The instruction includes the main interface startup identifier, and determining that the first application interface and the second application interface are not currently interacting.
  • the determining module is configured to determine whether the first application interface is an active container activity interface; if the first application interface is not an Activity interface, determining the first application interface and the second The application interface is currently not interacting.
  • the determining module is configured to determine whether the first application interface and the second application interface are located in different processes; if the first application interface and the second application The interface is located in a different process, and it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining module is configured to determine whether the startup command includes a main interface startup identifier; if the startup command does not include the main interface startup identifier, determine whether the first application interface is An activity interface, if the first application interface is an Activity interface, determining whether the first application interface and the second application interface are located in different processes; if the first application interface and the second application interface are in the same The process determines that the first application interface and the second application interface are currently interacting.
  • the startup module is further configured to: if it is determined that the first application interface and the second application interface are currently interacting, after determining that the first application interface is in a suspended state, start the location The second application interface is described.
  • an apparatus for launching an application interface comprising:
  • a memory configured to store processor executable instructions
  • processor is configured to:
  • the second application interface is started.
  • the method and the device provided by the embodiment of the present disclosure determine whether the first application interface and the second application interface are currently interacting by receiving a startup command for the second application interface in the first application interface, if the current interaction is not performed,
  • the second application interface can be directly started without waiting for the first application interface to be in a pause state and then launching the second application interface, thereby avoiding internal logic Chaos can also save waiting time and increase startup speed.
  • FIG. 1 is a flowchart of a method for launching an application interface according to an exemplary embodiment
  • FIG. 2 is a flowchart of another method for launching an application interface according to an exemplary embodiment
  • FIG. 3 is a flowchart of still another method for launching an application interface according to an exemplary embodiment
  • FIG. 4 is a block diagram of an apparatus for launching an application interface, according to an exemplary embodiment
  • FIG. 5 is a block diagram of another apparatus for launching an application interface, according to an exemplary embodiment.
  • Activity Container is a standard component of the Android (Android) platform.
  • an Activity is a single screen in the application, it inherits from the Activity class, it will display the UI (User Interface) composed of Views and response events.
  • FIG. 1 is a flowchart of a method for launching an application interface according to an exemplary embodiment. As shown in FIG. 1 , a method for launching an application interface is used in a terminal, and includes the following steps:
  • step 101 a start command to the second application interface is received in the first application interface.
  • step 102 it is determined whether the first application interface and the second application interface are currently interacting.
  • step 103 if it is determined that the first application interface and the second application interface are not currently interacting, the second application interface is started.
  • the method provided in this embodiment determines whether the first application interface and the second application interface are currently interacting by receiving a startup command for the second application interface in the first application interface, and directly starting the interaction if the interaction is not currently performed.
  • the second application interface can start the second application interface without waiting for the first application interface to be in the pause state, thereby avoiding internal logic confusion, saving waiting time, and improving startup speed.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • the startup instruction includes a main interface startup identifier, where the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is a home main interface;
  • startup command includes the main interface startup identifier, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • the first application interface is not an Activity interface, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • first application interface and the second application interface are in different processes, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • startup command is not included in the startup command, determining whether the first application interface is an Activity interface;
  • first application interface is an Activity interface
  • first application interface and the second application interface are in the same process, it is determined that the first application interface and the second application interface are currently interacting.
  • the method further includes:
  • the second application interface is started after determining that the first application interface is in a suspended state.
  • FIG. 2 is a flowchart of a method for launching an application interface according to an exemplary embodiment. As shown in FIG. 2, the method for starting an application is used in a terminal, and includes the following steps:
  • step 201 the terminal displays the first application interface.
  • the terminal may be a mobile phone, a computer or a tablet computer, and the terminal may run multiple applications, such as a desktop application, a notification bar application, a Bluetooth application, a chat application, a shopping application, and the like. This embodiment does not limit the terminal and the application on the terminal.
  • the first application interface and the second application interface may be any different application interfaces on the terminal.
  • the first application interface and the second application interface may be interfaces of different applications, Can be different interfaces in the same application.
  • the terminal When the terminal displays the first application interface, the user can operate in the first application interface.
  • the terminal displays a home main interface, and the user can view the application icon list in the home main interface, or the first application interface is a contact interface of the chat application, and the user can be in the contact interface. View a contact or select any contact to chat.
  • step 202 the terminal receives a startup instruction for the second application interface in the first application interface.
  • the first application interface may include a startup option of the second application interface.
  • the startup option may be clicked to trigger a startup command for the second application interface.
  • the terminal receives a startup instruction for the second application interface in the first application interface.
  • the startup option may be an option in the form of a button, an icon, or the like, which is not limited in this embodiment.
  • the home main interface includes icons of multiple applications, and when the user wants to start the interface of the second application, the icon of the second application may be clicked to trigger the second application interface. Start command.
  • the first application interface is a conversation interface with a contact in the chat application.
  • the webpage link is used to jump to the merchandise interface of the shopping application. The user can click on the webpage link to trigger a startup instruction for the merchandise interface of the shopping application.
  • step 203 the terminal determines whether the first application interface and the second application interface are currently interacting with each other. If yes, step 204 is performed, and if no, step 205 is performed.
  • step 204 the terminal waits for a period of time, and after determining that the first application interface is in the suspended state, step 205 is performed.
  • step 205 the terminal starts the second application interface.
  • the terminal in consideration of receiving the startup instruction, if the first application interface and the second The application interface is interacting, and directly starting the second application interface may cause logic confusion and affect the normal operation of the terminal. Therefore, when receiving the startup command, the terminal first sends a pause instruction to the first application interface, and the first application interface receives the The pause command returns a pause response when the current interface operation is completed and the first application interface is in a pause state. At this time, the terminal determines that the first application interface is in a pause state, and does not interact with the second application interface, and then starts the second application interface. . In the above process, the terminal needs to wait for a period of time after receiving the start command, and the second application interface is started when the first application interface is determined to be in the pause state.
  • the terminal may first determine whether the first application interface and the second application interface are currently interacting, and determine whether to wait according to the determination result.
  • the terminal waits for a period of time, and determines that the first application interface is in a pause state. After that, the second application interface is started. That is, the terminal sends a pause instruction to the first application interface, and then restarts the second application interface when the first application interface returns a pause response.
  • the second application interface may also be started if the pause response returned by the first application interface has not been received.
  • the terminal may directly start the second application interface without waiting. At this time, the terminal can still send a pause instruction to the first application interface to indicate that the first application interface is paused.
  • the method for determining whether the first application interface and the second application interface are currently interacting may be multiple.
  • the determining process may include at least one of the following steps 1-3:
  • the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is Home.
  • the main interface if a startup command for any application interface is triggered on the home main interface, the startup instruction includes the main interface startup identifier.
  • the main interface startup identifier may be a preset field or a preset data in the startup command, which is not limited in this embodiment.
  • the startup command includes the main interface startup identifier
  • the first application interface is a home main interface
  • the user triggers an instruction to start the second application interface on the home main interface. Since the home main interface is usually configured to launch other application interfaces and rarely interact with other application interfaces, it can be considered that the first application interface and the second application interface are not currently interacting, and the second application interface is not activated on the desktop. The application will have an impact, and there will be no logical confusion. You can start the second application interface directly.
  • the first application interface is not the home interface, and the first application interface and the second application interface are not currently interacted.
  • the terminal may consider that the first application interface and the second application interface are currently interacting with each other, and the performing step 204 waits for a period of time, and after determining that the first application interface is in the suspended state, restarting the second application interface, or the terminal.
  • the following step 2 or 3 may also be performed to continue to determine whether the first application interface and the second application interface are currently interacting.
  • the activity interface may include an interface of a chat application, an interface of a payment application, and the like, which is not limited in this embodiment.
  • first application interface is not an Activity interface, indicating that the first application interface rarely interacts with other application interfaces, it may be considered that the first application interface and the second application interface are not currently interacting, and the second application interface is not activated. It will affect the operation of the system, and there will be no logical confusion. You can start the second application interface directly.
  • the terminal may consider that the first application and the second application are currently interacting with each other, and the performing step 204 waits for a period of time, where the first application is determined. After the second state is restarted, the terminal may perform the following step 3 to continue to determine whether the first application interface and the second application interface are currently interacting.
  • Each process on the terminal can run one or more application interfaces. If more than two application interfaces are running in the same process, indicating that there is associated data between the application interfaces, it is likely that the interaction is in progress.
  • first application interface and the second application interface are located in different processes, it may be determined that the first application interface and the second application interface are not currently interacting, and starting the second application interface does not affect the system, and no logical confusion occurs. , directly start the second application interface.
  • the terminal may consider that the first application and the second application are currently interacting with each other, and the performing step 204 waits for a period of time, and after determining that the first application is in the suspended state, restarting the second application.
  • the process queue can be maintained in the process to perform multiple tasks in the task queue. If two application interfaces in the same process are in the same task, it means that there is associated data between the two application interfaces, and it is likely that Interaction. If two application interfaces in the same process are in different tasks, it can be considered that the two application interfaces are not currently interacting.
  • the first application interface and the second application interface are located in the same process, whether the first application interface and the second application interface are located in the same task of the process, if the first application interface and the first The application interface is located in the same task, and may determine that the first application interface and the second application interface are currently interacting, and if the first application interface and the second application interface are located in different tasks, the first application may be determined. The interface and the second application interface are currently not interacting.
  • the terminal may use any one of the foregoing steps 1 to 3 or multiple manners to determine whether the first application interface and the second application interface are currently interacting.
  • the method may continue to be judged in another manner, as long as the first application interface and the second application are determined in any manner.
  • the interface is not currently interacting, and the second application interface can be directly started.
  • the three methods are used to determine that the first application interface and the second application interface may be interacting, the first application interface and the first application interface may be finalized. The application interface is interacting, and the second application interface needs to be started after the first application interface is in the pause state.
  • the terminal may use three methods in steps 1 to 3 to determine, and the second application interface is started only when it is determined that the first application interface and the second application interface are not currently interacting. .
  • the terminal may use three methods in steps 1 to 3 to determine, and the second application interface is started only when it is determined that the first application interface and the second application interface are not currently interacting. .
  • the terminal may use three methods in steps 1 to 3 to determine, and the second application interface is started only when it is determined that the first application interface and the second application interface are not currently interacting.
  • the terminal may use three methods in steps 1 to 3 to determine, and the second application interface is started only when it is determined that the first application interface and the second application interface are not currently interacting.
  • the terminal may also perform the determination in a manner other than the above three manners, which is not limited in this embodiment.
  • the above steps 202-205 can be performed by the operating system of the terminal.
  • the first application interface sends the startup instruction to the operating system, and when the operating system receives the startup instruction, determines the first application interface and the first Whether the application interface is currently interacting. If yes, the pause command is sent to the first application interface, and the first application interface returns to the pause response, and after determining that the first application interface is in the pause state, the second application interface is started. If no, the second application interface is launched directly without waiting.
  • the method provided by the embodiment determines whether the first application interface and the second application interface are currently being performed for different usage scenarios by receiving a startup instruction for the second application interface in the first application interface. Interaction, if the current interaction is not currently performed, the second application interface can be directly started, without waiting for the first application interface to be in a suspended state and then starting the second application. With the interface, if the interaction is currently being performed, waiting for the first application interface to be in the pause state and then starting the second application interface, dynamically adjusting the startup behavior, can avoid internal logic confusion, save waiting time, and improve startup speed.
  • FIG. 3 is a flowchart of a method for launching an application interface according to an exemplary embodiment. As shown in FIG. 3, the method for starting an application is used in a terminal, and includes the following steps:
  • step 301 the terminal displays the first application interface.
  • step 302 the terminal receives a startup instruction for the second application interface in the first application interface.
  • step 303 the terminal determines whether the startup command includes the main interface startup identifier. If yes, step 307 is performed, and if no, step 304 is performed.
  • startup command includes the main interface startup identifier, it may directly determine that the first application interface and the second application interface are not currently interacting.
  • the startup command does not include the main interface startup identifier, and it is not determined whether the first application interface and the second application interface are interacting with each other, in order to improve the judgment accuracy, it is continuously determined whether the first application interface is an Activity interface.
  • step 304 the terminal determines whether the first application interface is an Activity interface. If yes, step 305 is performed, and if no, step 307 is performed.
  • first application interface is not an Activity interface, it may be directly determined that the first application interface and the second application interface are not currently interacting.
  • the first application interface is an Activity interface
  • it is not determined whether the first application interface and the second application interface are interacting in order to improve the judgment accuracy, it is further determined whether the first application interface and the second application interface are different. Process.
  • step 305 the terminal determines whether the first application interface and the second application interface are located in different processes. If yes, step 307 is performed, and if no, step 306 is performed.
  • first application interface and the second application interface are in different processes, it may be directly The first application interface and the second application interface are currently not interacting.
  • the first application interface and the second application interface are in the same process, considering that the startup instruction does not include the main interface startup identifier and the first application interface is an Activity interface, the first application interface and the second application interface are likely to be The interaction is performed, and it can be determined that the first application interface and the second application interface are currently interacting.
  • step 306 it is determined that the first application interface and the second application interface are currently interacting, and the terminal waits for a period of time. After determining that the first application interface is in the suspended state, step 307 is performed.
  • step 307 it is determined that the first application interface and the second application interface are not currently interacting, and the terminal starts the second application interface.
  • the method when determining whether the first application interface and the second application interface are currently interacting, the method is combined and judged in multiple ways, which enhances the complexity of the judgment and improves the accuracy of the judgment result, thereby improving the accuracy.
  • the accuracy of starting the second application interface can avoid internal logic confusion, save waiting time and increase startup speed.
  • FIG. 4 is a block diagram of an apparatus for launching an application interface, according to an exemplary embodiment.
  • the apparatus includes an instruction receiving module 401, a determining module 402, and a starting module 403.
  • the instruction receiving module 401 is configured to receive a startup instruction for the second application interface in the first application interface
  • the determining module 402 is configured to determine whether the first application interface and the second application interface are currently interacting with each other;
  • the launching module 403 is configured to launch the second application interface if it is determined that the first application interface and the second application interface are not currently interacting.
  • the apparatus provided in this embodiment determines whether the first application interface and the second application interface are currently interacting by receiving a startup command for the second application interface in the first application interface, and directly starting the interaction if the interaction is not currently performed. Second application interface without waiting for the first application After the surface is in the pause state, the second application interface is started, which can avoid internal logic confusion, save waiting time and improve startup speed.
  • the determining module 402 is configured to determine whether the startup instruction includes a main interface startup identifier, where the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is the home main interface; if the startup instruction is in the startup instruction The main interface startup identifier is included, and it is determined that the first application interface and the second application interface are not currently interacting.
  • the determining module 402 is configured to determine whether the first application interface is an Activity interface; if the first application interface is not an Activity interface, determining that the first application interface and the second application interface are not currently performed. Interaction.
  • the determining module 402 is configured to determine whether the first application interface and the second application interface are located in different processes; if the first application interface and the second application interface are located in different processes, determining The first application interface and the second application interface are not currently interacting.
  • the determining module 402 is configured to determine whether the startup command includes a main interface startup identifier; if the startup command does not include the main interface startup identifier, determine whether the first application interface is an Activity interface; If the first application interface is an Activity interface, determine whether the first application interface and the second application interface are in different processes; if the first application interface and the second application interface are in the same process, determine the first application interface. The interaction with the second application interface is currently ongoing.
  • the startup module 403 is further configured to: if it is determined that the first application interface and the second application interface are currently interacting, start the second after determining that the first application interface is in a suspended state Application interface.
  • the device for starting the application interface provided by the foregoing embodiment is only illustrated by the division of the foregoing functional modules when the application interface is started. In actual applications, the functions may be allocated by different functional modules according to requirements. Completion, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above.
  • the device for launching the application interface provided by the foregoing embodiment is the same as the method embodiment for starting the application interface, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 5 is a block diagram of an apparatus 500 for launching an application interface, according to an exemplary embodiment.
  • device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 500 can include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and Communication component 516.
  • Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 502 can include one or more processors 520 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 502 can include one or more modules to facilitate interaction between component 502 and other components.
  • processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
  • Memory 504 is configured to store various types of data to support operation at device 500. Examples of such data include instructions, contact data, phone book data, messages, pictures, videos, etc., of any application or method configured to operate on device 500.
  • Memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic storage, flash memory, disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • magnetic storage flash memory, disk or optical disk.
  • Power component 506 provides power to various components of device 500.
  • Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
  • the multimedia component 508 includes a screen between the device 500 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and/or input an audio signal.
  • audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 504 or transmitted via communication component 516.
  • the audio component 510 also includes a speaker configured to output an audio signal.
  • the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 514 includes one or more sensors configured to provide various aspects of state assessment for device 500.
  • sensor component 514 can detect an open/closed state of device 500, relative positioning of components, such as the display and keypad of device 500, Sensor assembly 514 can also detect a change in position of one component of device 500 or device 500, the presence or absence of user contact with device 500, orientation of device 500 or acceleration/deceleration, and temperature change of device 500.
  • Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor component 514 can also include a light sensor, such as a CMOS or CCD image sensor, configured for use in imaging applications.
  • the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices.
  • the device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation configured to perform the method of launching the application interface described above.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation configured to perform the method of launching the application interface described above.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 520 of apparatus 500 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, to enable the mobile terminal to perform a method of launching an application interface, the method comprising:
  • the second application interface is started.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • the startup instruction includes a main interface startup identifier, where the main interface startup identifier is used to indicate that the application interface that triggers the startup instruction is a home main interface;
  • startup command includes the main interface startup identifier, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • the first application interface is not an Activity interface, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • first application interface and the second application interface are in different processes, it is determined that the first application interface and the second application interface are not currently interacting.
  • determining whether the first application interface and the second application interface are currently interacting including:
  • startup command is not included in the startup command, determining whether the first application interface is an Activity interface;
  • first application interface is an Activity interface
  • first application interface and the second application interface are in the same process, it is determined that the first application interface and the second application interface are currently interacting.
  • the method further includes:
  • the second application interface is started after determining that the first application interface is in a suspended state.
  • the method and the device provided by the embodiment of the present disclosure determine whether the first application interface and the second application interface are currently interacting by receiving a startup command for the second application interface in the first application interface, if the current interaction is not performed,
  • the second application interface can be directly started without waiting for the first application interface to be in a pause state and then starting the second application interface, thereby avoiding internal logic confusion, saving waiting time, and improving startup speed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

一种启动应用界面的方法及装置,属于电子设备领域。所述方法包括:在第一应用界面中接收对第二应用界面的启动指令(101);判断该第一应用界面和该第二应用界面当前是否正在进行交互(102);如果确定该第一应用界面和该第二应用界面当前未进行交互,则启动该第二应用界面(103)。

Description

启动应用界面的方法及装置
相关申请的交叉引用
本申请基于申请号为201610213431.5、申请日为2016年4月7日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开是关于电子设备领域,具体来说是关于一种启动应用界面的方法及装置。
背景技术
随着智能终端的快速发展,终端上的应用界面越来越多样。为了便于切换界面,终端可以在一个应用界面中提供另一应用界面的启动选项,以便从一个应用界面切换到另一个应用界面。
以第一应用界面和第二应用界面为例,在终端展示第一应用界面时,提供第二应用界面的启动选项,如果用户要启动第二应用界面可以点击该启动选项,触发对第二应用界面的启动指令。终端接收到该启动指令时,先向第一应用界面发送暂停指令,等待一段时间,当第一应用界面处于暂停状态并返回暂停响应时,再启动第二应用界面。
发明内容
为了解决相关技术中存在的问题,本公开实施例提供了一种启动应用界面的方法及装置。所述技术方案如下:
根据本公开实施例的第一方面,提供了一种启动应用界面的方法,所 述方法包括:
在第一应用界面中接收对第二应用界面的启动指令;
判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
在另一实施例中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
判断所述启动指令中是否包含主界面启动标识,所述主界面启动标识用于指示触发启动指令的应用界面为Home主界面;
如果所述启动指令中包含所述主界面启动标识,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
判断所述第一应用界面是否为活动容器Activity界面;
如果所述第一应用界面不是Activity界面,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
判断所述第一应用界面和所述第二应用界面是否位于不同的进程;
如果所述第一应用界面和所述第二应用界面位于不同的进程,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
判断所述启动指令中是否包含主界面启动标识;
如果所述启动指令中不包含所述主界面启动标识,判断所述第一应用 界面是否为Activity界面;
如果所述第一应用界面是Activity界面,判断所述第一应用界面和所述第二应用界面是否位于不同的进程;
如果所述第一应用界面和所述第二应用界面位于同一进程,确定所述第一应用界面和所述第二应用界面当前正在进行交互。
在另一实施例中,所述方法还包括:
如果确定所述第一应用界面和所述第二应用界面当前正在进行交互,则在确定所述第一应用界面处于暂停状态后,启动所述第二应用界面。
根据本公开实施例的第二方面,提供了一种启动应用界面的装置,所述装置包括:
指令接收模块,配置为在第一应用界面中接收对第二应用界面的启动指令;
判断模块,配置为判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
启动模块,配置为如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
在另一实施例中,所述判断模块配置为判断所述启动指令中是否包含主界面启动标识,所述主界面启动标识用于指示触发启动指令的应用界面为Home主界面;如果所述启动指令中包含所述主界面启动标识,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断模块配置为判断所述第一应用界面是否为活动容器Activity界面;如果所述第一应用界面不是Activity界面,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断模块配置为判断所述第一应用界面和所述第二应用界面是否位于不同的进程;如果所述第一应用界面和所述第二应 用界面位于不同的进程,确定所述第一应用界面和所述第二应用界面当前未进行交互。
在另一实施例中,所述判断模块配置为判断所述启动指令中是否包含主界面启动标识;如果所述启动指令中不包含所述主界面启动标识,判断所述第一应用界面是否为Activity界面;如果所述第一应用界面是Activity界面,判断所述第一应用界面和所述第二应用界面是否位于不同的进程;如果所述第一应用界面和所述第二应用界面位于同一进程,确定所述第一应用界面和所述第二应用界面当前正在进行交互。
在另一实施例中,所述启动模块还配置为如果确定所述第一应用界面和所述第二应用界面当前正在进行交互,则在确定所述第一应用界面处于暂停状态后,启动所述第二应用界面。
根据本公开实施例的第三方面,提供了一种启动应用界面的装置,所述装置包括:
处理器;
配置为存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
在第一应用界面中接收对第二应用界面的启动指令;
判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
本公开的实施例提供的技术方案可以包括以下有益效果:
本公开实施例提供的方法及装置,通过在第一应用界面中接收对第二应用界面的启动指令时,判断第一应用界面和第二应用界面当前是否正在进行交互,如果当前未进行交互即可直接启动第二应用界面,而无需等待第一应用界面处于暂停状态后再启动第二应用界面,既能够避免内部逻辑 混乱,也能够节省等待时间,提高启动速度。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种启动应用界面的方法流程图;
图2是根据一示例性实施例示出的另一种启动应用界面的方法流程图;
图3是根据一示例性实施例示出的又一种启动应用界面的方法流程图;
图4是根据一示例性实施例示出的一种启动应用界面的装置的框图;
图5是根据一示例性实施例示出的另一种启动应用界面的装置的框图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚明白,下面结合实施方式和附图,对本公开实施例做进一步详细说明。在此,本公开实施例的示意性实施方式及其说明用于解释本公开,但并不作为对本公开的限定。
首先对本公开实施例涉及到的概念进行如下解释:
1、Home主界面:终端提供的系统桌面,也即是当终端开机或者当用户点击终端提供的Home按键时所显示的界面。
2、Activity:活动容器(Activity)是Android(安卓)平台的一种标准组件。实际上一个Activity就是应用中的一个单一的屏幕,它继承自Activity类,它将显示由Views组成的UI(User Interface,用户界面)以及响应事件。
本公开实施例提供一种启动应用界面的方法及装置,以下将结合附图对本公开实施例进行详细说明。
图1是根据一示例性实施例示出的一种启动应用界面的方法流程图,如图1所示,启动应用界面的方法用于终端中,包括以下步骤:
在步骤101中,在第一应用界面中接收对第二应用界面的启动指令。
在步骤102中,判断该第一应用界面和该第二应用界面当前是否正在进行交互。
在步骤103中,如果确定该第一应用界面和该第二应用界面当前未进行交互,则启动该第二应用界面。
本实施例提供的方法,通过在第一应用界面中接收对第二应用界面的启动指令时,判断第一应用界面和第二应用界面当前是否正在进行交互,如果当前未进行交互即可直接启动第二应用界面,而无需等待第一应用界面处于暂停状态后再启动第二应用界面,既能够避免内部逻辑混乱,也能够节省等待时间,提高启动速度。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该启动指令中是否包含主界面启动标识,该主界面启动标识用于指示触发启动指令的应用界面为Home主界面;
如果该启动指令中包含该主界面启动标识,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该第一应用界面是否为Activity界面;
如果该第一应用界面不是Activity界面,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该第一应用界面和该第二应用界面是否位于不同的进程;
如果该第一应用界面和该第二应用界面位于不同的进程,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该启动指令中是否包含主界面启动标识;
如果该启动指令中不包含该主界面启动标识,判断该第一应用界面是否为Activity界面;
如果该第一应用界面是Activity界面,判断该第一应用界面和该第二应用界面是否位于不同的进程;
如果该第一应用界面和该第二应用界面位于同一进程,确定该第一应用界面和该第二应用界面当前正在进行交互。
在另一实施例中,该方法还包括:
如果确定该第一应用界面和该第二应用界面当前正在进行交互,则在确定该第一应用界面处于暂停状态后,启动该第二应用界面。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
图2是根据一示例性实施例示出的一种启动应用界面的方法流程图,如图2所示,该启动应用的方法用于终端中,包括以下步骤:
在步骤201中,终端显示第一应用界面。
其中,该终端可以为手机、计算机或平板电脑等设备,终端上可以运行多个应用,这些应用可以包括桌面应用、通知栏应用、蓝牙应用、聊天应用、购物应用等。本实施例对该终端和该终端上的应用均不做限定。
本实施例中,第一应用界面和第二应用界面可以为终端上的任意不同的应用界面。如第一应用界面和第二应用界面可以为不同应用的界面,也 可以为同一应用中的不同界面。
终端显示第一应用界面时,用户可以在该第一应用界面中进行操作。例如,第一应用为桌面应用时,终端显示Home主界面,用户可以在Home主界面中查看应用图标列表,或者,第一应用界面为聊天应用的联系人界面时,用户可以在联系人界面中查看联系人或者选择任一联系人聊天。
在步骤202中,终端在第一应用界面中接收对第二应用界面的启动指令。
该第一应用界面中可以包括第二应用界面的启动选项,当用户希望从第一应用界面切换到第二应用界面时,可以点击该启动选项,触发对第二应用界面的启动指令,此时,终端在第一应用界面中接收到对第二应用界面的启动指令。
其中,该启动选项可以为按钮、图标等形式的选项,本实施例对此不做限定。
例如,该第一应用界面为Home主界面时,该Home主界面中包括多个应用的图标,用户希望启动第二应用的界面时,即可点击第二应用的图标,触发对第二应用界面的启动指令。或者,该第一应用界面为聊天应用中与某一联系人的对话界面,当用户在对话界面中接收到了联系人发送的网页链接,而该网页链接用于跳转到购物应用的商品界面时,用户可以点击该网页链接,触发对购物应用的商品界面的启动指令。
在步骤203中,终端判断该第一应用界面和该第二应用界面当前是否正在进行交互,如果是,执行步骤204,如果否,执行步骤205。
在步骤204中,终端等待一段时间,在确定该第一应用界面处于暂停状态后,再执行步骤205。
在步骤205中,终端启动该第二应用界面。
相关技术中,考虑到接收到该启动指令时,如果第一应用界面和第二 应用界面正在进行交互,直接启动该第二应用界面可能会造成逻辑混乱,影响终端的正常运行,因此,终端接收到启动指令时会先向第一应用界面发送暂停指令,第一应用界面接收该暂停指令,在当前的界面操作完成、第一应用界面处于暂停状态时返回暂停响应,此时终端确定第一应用界面处于暂停状态,没有与第二应用界面进行交互,则启动该第二应用界面。上述过程中,终端接收到启动指令之后需要等待一段时间,待确定第一应用界面处于暂停状态时才会启动第二应用界面。
而本实施例中,为了提高启动速度,该终端接收到启动指令时,可以先判断该第一应用界面和该第二应用界面当前是否正在进行交互,根据判断结果来确定是否要等待。
如果该第一应用界面和该第二应用界面当前正在进行交互,则为了避免内部逻辑混乱,保持第一应用界面的原有逻辑,终端要等待一段时间,在确定该第一应用界面处于暂停状态后,再启动第二应用界面。也即是,终端向第一应用界面发送暂停指令,待第一应用界面返回暂停响应时再启动第二应用界面。
实际应用中,如果终端向第一应用界面发送暂停指令之后,经过预设时长后如果还未接收到第一应用界面返回的暂停响应,也可以启动第二应用界面。
如果第一应用界面和该第二应用界面当前未进行交互,则终端无需等待,直接启动该第二应用界面即可。此时,该终端依然可以向第一应用界面发送暂停指令,以指示第一应用界面暂停。
其中,判断该第一应用界面和该第二应用界面当前是否正在进行交互的方式可以有多种,例如,该判断过程可以包括以下步骤1-3中的至少一项:
1、判断该启动指令中是否包含主界面启动标识。
其中,该主界面启动标识用于指示触发启动指令的应用界面为Home 主界面,如果在Home主界面上触发了对任一应用界面的启动指令,则该启动指令中会包含主界面启动标识。该主界面启动标识可以为启动指令中的一个预设字段或者一段预设数据,本实施例对此不做限定。
如果该启动指令中包含该主界面启动标识,表示第一应用界面为Home主界面,用户在Home主界面上触发了启动第二应用界面的指令。由于Home主界面通常会配置为启动其他应用界面,而很少与其他应用界面进行交互,因此,可以认为第一应用界面和第二应用界面当前没有进行交互,启动第二应用界面不会对桌面应用造成影响,也不会出现逻辑混乱,直接启动第二应用界面即可。
如果该启动指令中不包含该主界面启动标识,表示第一应用界面不是Home主界面,此时不能保证第一应用界面和第二应用界面当前没有进行交互。则终端可以认为该第一应用界面和该第二应用界面当前可能正在进行交互,执行步骤204等待一段时间,在确定该第一应用界面处于暂停状态后,再启动第二应用界面,或者,终端也可以执行下述步骤2或3,继续判断第一应用界面和第二应用界面当前是否正在进行交互。
2、判断该第一应用界面是否为Activity界面。
其中,Activity界面可以包括聊天应用的界面、支付应用的界面等,本实施例对此不做限定。
如果该第一应用界面不是Activity界面,表示该第一应用界面通常很少与其他应用界面进行交互,则可以认为第一应用界面和第二应用界面当前没有进行交互,启动第二应用界面不会对系统的运行造成影响,也不会出现逻辑混乱,直接启动第二应用界面即可。
如果该第一应用的界面是Activity界面,不能保证第一应用界面和第二应用界面当前没有进行交互。则终端可以认为该第一应用和该第二应用当前可能正在进行交互,执行步骤204等待一段时间,在确定该第一应用处 于暂停状态后,再启动第二应用,或者,终端也可以执行下述步骤3,继续判断第一应用界面和第二应用界面当前是否正在进行交互。
3、判断该第一应用界面和该第二应用界面是否位于不同的进程。
终端上的每个进程可以运行一个或多个应用界面,如果两个以上的应用界面在同一进程中运行,表示这些应用界面之间存在关联数据,很可能正在进行交互。
如果第一应用界面和第二应用界面位于不同的进程,则可以确定第一应用界面和第二应用界面当前没有进行交互,启动第二应用界面不会对系统造成影响,也不会出现逻辑混乱,直接启动第二应用界面即可。
如果第一应用界面和第二应用界面位于同一进程,不能保证第一应用界面和第二应用界面当前没有进行交互。则终端可以认为该第一应用和该第二应用当前可能正在进行交互,执行步骤204等待一段时间,在确定该第一应用处于暂停状态后,再启动第二应用。
另外,进程中可以维护任务队列,以执行任务队列中的多个任务,如果同一进程中的两个应用界面位于相同的任务中,表示这两个应用界面之间存在关联数据,很可能正在进行交互。而如果同一进程中的两个应用界面位于不同的任务中,可以认为这两个应用界面当前没有进行交互。
因此,在判断确定第一应用界面和第二应用界面位于同一进程时,可以判断该第一应用界面和该第二应用界面是否位于该进程的同一任务中,如果该第一应用界面和该第二应用界面位于同一任务中,可以确定该第一应用界面和该第二应用界面当前正在进行交互,而如果该第一应用界面和该第二应用界面位于不同任务中,可以确定该第一应用界面和该第二应用界面当前未进行交互。
需要说明的是,终端可以采用上述步骤1至3中的任一种方式或多种方式来判断第一应用界面和第二应用界面当前是否正在进行交互。
例如,在采用任一种方式确定该第一应用界面和第二应用界面可能正在进行交互时,可以继续采用另一种方式进行判断,只要采用任一种方式确定第一应用界面和第二应用界面当前未进行交互,即可直接启动该第二应用界面,而当采用三种方式均确定该第一应用界面和第二应用界面可能正在进行交互时,可以最终确定该第一应用界面和第二应用界面正在进行交互,需要等待第一应用界面处于暂停状态后才启动第二应用界面。
或者,终端可以采用步骤1至3中的三种方式进行判断,只有当采用三种方式均确定该第一应用界面和该第二应用界面当前未进行交互时,才会启动该第二应用界面。只要采用其中一种方式确定该第一应用界面和该第二应用界面可能正在进行交互时,就确定该第一应用界面和第二应用界面正在进行交互,需要等待第一应用界面处于暂停状态后才启动第二应用界面。
当然,终端还可以采用除上述三种方式之外的方式进行判断,本实施例对此不做限定。
需要说明的是,上述步骤202-205可以由终端的操作系统执行。例如,用户在第一应用界面中触发对第二应用界面的启动指令时,第一应用界面向操作系统发送该启动指令,操作系统接收到该启动指令时,判断该第一应用界面和该第二应用界面当前是否正在进行交互。如果是,向第一应用界面发送暂停指令,待第一应用界面返回暂停响应,确定第一应用界面处于暂停状态后,再启动第二应用界面。如果否,无需等待,直接启动第二应用界面。
本实施例提供的方法,通过在第一应用界面中接收对第二应用界面的启动指令时,分析启动指令,针对于不同的使用场景,判断第一应用界面和第二应用界面当前是否正在进行交互,如果当前未进行交互即可直接启动第二应用界面,而无需等待第一应用界面处于暂停状态后再启动第二应 用界面,如果当前正在进行交互,则等待第一应用界面处于暂停状态后再启动第二应用界面,动态地调整启动行为,既能够避免内部逻辑混乱,也能够节省等待时间,提高启动速度。
图3是根据一示例性实施例示出的一种启动应用界面的方法流程图,如图3所示,该启动应用的方法用于终端中,包括以下步骤:
在步骤301中,终端显示第一应用界面。
在步骤302中,终端在第一应用界面中接收对第二应用界面的启动指令。
在步骤303中,终端判断该启动指令中是否包含主界面启动标识,如果是,执行步骤307,如果否,执行步骤304。
如果启动指令中包含主界面启动标识,可以直接确定第一应用界面和第二应用界面当前未进行交互。
但是,如果启动指令中不包含主界面启动标识,不能确定第一应用界面和第二应用界面是否正在进行交互,则为了提高判断准确性,继续判断该第一应用界面是否为Activity界面。
在步骤304中,终端判断该第一应用界面是否为Activity界面,如果是,执行步骤305,如果否,执行步骤307。
如果第一应用界面不是Activity界面,可以直接确定第一应用界面和第二应用界面当前未进行交互。
但是,如果第一应用界面是Activity界面,不能确定第一应用界面和第二应用界面是否正在进行交互,则为了提高判断准确性,继续判断该第一应用界面和该第二应用界面是否位于不同的进程。
在步骤305中,终端判断该第一应用界面和该第二应用界面是否位于不同的进程,如果是,执行步骤307,如果否,执行步骤306。
如果该第一应用界面和该第二应用界面位于不同的进程,可以直接确 定第一应用界面和第二应用界面当前未进行交互。
而如果该第一应用界面和该第二应用界面位于同一进程,考虑到启动指令中不包含主界面启动标识且第一应用界面是Activity界面,则第一应用界面和第二应用界面很可能正在进行交互,此时可以确定第一应用界面和第二应用界面当前正在进行交互。
在步骤306中,确定第一应用界面和第二应用界面当前正在进行交互,则终端等待一段时间,在确定该第一应用界面处于暂停状态后,再执行步骤307。
在步骤307中,确定第一应用界面和第二应用界面当前未进行交互,终端启动该第二应用界面。
本实施例提供的方法,在判断第一应用界面和第二应用界面当前是否正在进行交互时,采用多种方式结合判断,增强了判断的复杂性,提高了判断结果的准确性,从而提高了启动第二应用界面的准确性,既能够避免内部逻辑混乱,也能够节省等待时间,提高启动速度。
图4是根据一示例性实施例示出的一种启动应用界面的装置的框图。参见图4,该装置包括指令接收模块401,判断模块402和启动模块403。
指令接收模块401被配置为在第一应用界面中接收对第二应用界面的启动指令;
判断模块402被配置为判断该第一应用界面和该第二应用界面当前是否正在进行交互;
启动模块403被配置为如果确定该第一应用界面和该第二应用界面当前未进行交互,则启动该第二应用界面。
本实施例提供的装置,通过在第一应用界面中接收对第二应用界面的启动指令时,判断第一应用界面和第二应用界面当前是否正在进行交互,如果当前未进行交互即可直接启动第二应用界面,而无需等待第一应用界 面处于暂停状态后再启动第二应用界面,既能够避免内部逻辑混乱,也能够节省等待时间,提高启动速度。
在另一实施例中,该判断模块402被配置为判断该启动指令中是否包含主界面启动标识,该主界面启动标识用于指示触发启动指令的应用界面为Home主界面;如果该启动指令中包含该主界面启动标识,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断模块402被配置为判断该第一应用界面是否为Activity界面;如果该第一应用界面不是Activity界面,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断模块402被配置为判断该第一应用界面和该第二应用界面是否位于不同的进程;如果该第一应用界面和该第二应用界面位于不同的进程,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断模块402被配置为判断该启动指令中是否包含主界面启动标识;如果该启动指令中不包含该主界面启动标识,判断该第一应用界面是否为Activity界面;如果该第一应用界面是Activity界面,判断该第一应用界面和该第二应用界面是否位于不同的进程;如果该第一应用界面和该第二应用界面位于同一进程,确定该第一应用界面和该第二应用界面当前正在进行交互。
在另一实施例中,该启动模块403还被配置为如果确定该第一应用界面和该第二应用界面当前正在进行交互,则在确定该第一应用界面处于暂停状态后,启动该第二应用界面。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在 有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
需要说明的是:上述实施例提供的启动应用界面的装置在启动应用界面时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的启动应用界面的装置与启动应用界面的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
图5是根据一示例性实施例示出的一种启动应用界面的装置500的框图。例如,装置500可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)接口512,传感器组件514,以及通信组件516。
处理组件502通常控制装置500的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括配置为在装置500上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器 (ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,配置为输出音频信号。
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘、点击轮、按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件514包括一个或多个传感器,配置为为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传 感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,配置为在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi、2G或3G、或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,NFC模块可基于射频识别(RFID)技术、红外数据协会(IrDA)技术、超宽带(UWB)技术、蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,配置为执行上述启动应用界面的方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种启动应用界面的方法,所述方法包括:
在第一应用界面中接收对第二应用界面的启动指令;
判断该第一应用界面和该第二应用界面当前是否正在进行交互;
如果确定该第一应用界面和该第二应用界面当前未进行交互,则启动该第二应用界面。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该启动指令中是否包含主界面启动标识,该主界面启动标识用于指示触发启动指令的应用界面为Home主界面;
如果该启动指令中包含该主界面启动标识,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该第一应用界面是否为Activity界面;
如果该第一应用界面不是Activity界面,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该第一应用界面和该第二应用界面是否位于不同的进程;
如果该第一应用界面和该第二应用界面位于不同的进程,确定该第一应用界面和该第二应用界面当前未进行交互。
在另一实施例中,该判断该第一应用界面和该第二应用界面当前是否正在进行交互,包括:
判断该启动指令中是否包含主界面启动标识;
如果该启动指令中不包含该主界面启动标识,判断该第一应用界面是否为Activity界面;
如果该第一应用界面是Activity界面,判断该第一应用界面和该第二应用界面是否位于不同的进程;
如果该第一应用界面和该第二应用界面位于同一进程,确定该第一应用界面和该第二应用界面当前正在进行交互。
在另一实施例中,该方法还包括:
如果确定该第一应用界面和该第二应用界面当前正在进行交互,则在确定该第一应用界面处于暂停状态后,启动该第二应用界面。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开实施例的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开实施例的一般性原理并包括本公开实施例未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。
工业实用性
本公开实施例提供的方法及装置,通过在第一应用界面中接收对第二应用界面的启动指令时,判断第一应用界面和第二应用界面当前是否正在进行交互,如果当前未进行交互即可直接启动第二应用界面,而无需等待第一应用界面处于暂停状态后再启动第二应用界面,既能够避免内部逻辑混乱,也能够节省等待时间,提高启动速度。

Claims (13)

  1. 一种启动应用界面的方法,所述方法包括:
    在第一应用界面中接收对第二应用界面的启动指令;
    判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
    如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
  2. 根据权利要求1所述的方法,其中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
    判断所述启动指令中是否包含主界面启动标识,所述主界面启动标识用于指示触发启动指令的应用界面为Home主界面;
    如果所述启动指令中包含所述主界面启动标识,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  3. 根据权利要求1所述的方法,其中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
    判断所述第一应用界面是否为活动容器Activity界面;
    如果所述第一应用界面不是Activity界面,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  4. 根据权利要求1所述的方法,其中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
    判断所述第一应用界面和所述第二应用界面是否位于不同的进程;
    如果所述第一应用界面和所述第二应用界面位于不同的进程,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  5. 根据权利要求1-4任一项所述的方法,其中,所述判断所述第一应用界面和所述第二应用界面当前是否正在进行交互,包括:
    判断所述启动指令中是否包含主界面启动标识;
    如果所述启动指令中不包含所述主界面启动标识,判断所述第一应用界面是否为Activity界面;
    如果所述第一应用界面是Activity界面,判断所述第一应用界面和所述第二应用界面是否位于不同的进程;
    如果所述第一应用界面和所述第二应用界面位于同一进程,确定所述第一应用界面和所述第二应用界面当前正在进行交互。
  6. 根据权利要求1所述的方法,其中,所述方法还包括:
    如果确定所述第一应用界面和所述第二应用界面当前正在进行交互,则在确定所述第一应用界面处于暂停状态后,启动所述第二应用界面。
  7. 一种启动应用界面的装置,所述装置包括:
    指令接收模块,配置为在第一应用界面中接收对第二应用界面的启动指令;
    判断模块,配置为判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
    启动模块,配置为如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
  8. 根据权利要求7所述的装置,其中,所述判断模块配置为判断所述启动指令中是否包含主界面启动标识,所述主界面启动标识用于指示触发启动指令的应用界面为Home主界面;如果所述启动指令中包含所述主界面启动标识,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  9. 根据权利要求7所述的装置,其中,所述判断模块配置为判断所述第一应用界面是否为活动容器Activity界面;如果所述第一应用界面不 是Activity界面,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  10. 根据权利要求7所述的装置,其中,所述判断模块配置为判断所述第一应用界面和所述第二应用界面是否位于不同的进程;如果所述第一应用界面和所述第二应用界面位于不同的进程,确定所述第一应用界面和所述第二应用界面当前未进行交互。
  11. 根据权利要求7-10任一项所述的装置,其中,所述判断模块配置为判断所述启动指令中是否包含主界面启动标识;如果所述启动指令中不包含所述主界面启动标识,判断所述第一应用界面是否为Activity界面;如果所述第一应用界面是Activity界面,判断所述第一应用界面和所述第二应用界面是否位于不同的进程;如果所述第一应用界面和所述第二应用界面位于同一进程,确定所述第一应用界面和所述第二应用界面当前正在进行交互。
  12. 根据权利要求7所述的装置,其中,所述启动模块还配置为如果确定所述第一应用界面和所述第二应用界面当前正在进行交互,则在确定所述第一应用界面处于暂停状态后,启动所述第二应用界面。
  13. 一种启动应用界面的装置,包括:
    处理器;
    配置为存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    在第一应用界面中接收对第二应用界面的启动指令;
    判断所述第一应用界面和所述第二应用界面当前是否正在进行交互;
    如果确定所述第一应用界面和所述第二应用界面当前未进行交互,则启动所述第二应用界面。
PCT/CN2016/095905 2016-04-07 2016-08-18 启动应用界面的方法及装置 WO2017173765A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610213431.5 2016-04-07
CN201610213431.5A CN105912204B (zh) 2016-04-07 2016-04-07 启动应用界面的方法及装置

Publications (1)

Publication Number Publication Date
WO2017173765A1 true WO2017173765A1 (zh) 2017-10-12

Family

ID=56745707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095905 WO2017173765A1 (zh) 2016-04-07 2016-08-18 启动应用界面的方法及装置

Country Status (4)

Country Link
US (1) US20170293494A1 (zh)
EP (1) EP3232325B1 (zh)
CN (1) CN105912204B (zh)
WO (1) WO2017173765A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11216287B2 (en) * 2017-06-02 2022-01-04 Apple Inc. Selective rendering mode
US10775781B2 (en) * 2017-06-16 2020-09-15 Ford Global Technologies, Llc Interface verification for vehicle remote park-assist
CN114710585B (zh) * 2017-11-23 2023-10-13 华为技术有限公司 一种拍照方法、终端及存储介质
CN108111676B (zh) * 2017-12-14 2021-06-08 维沃移动通信有限公司 一种应用程序控制方法、移动终端及计算机可读存储介质
CN111353110A (zh) * 2018-12-21 2020-06-30 西安中兴新软件有限责任公司 一种信息输入的方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738454A (zh) * 2004-08-19 2006-02-22 乐金电子(中国)研究开发中心有限公司 一种基于移动通信终端的消息处理方法
CN103294524A (zh) * 2012-02-27 2013-09-11 晨星软件研发(深圳)有限公司 电视系统及其应用程序管理方法
CN104991704A (zh) * 2015-07-06 2015-10-21 魅族科技(中国)有限公司 一种终端分屏方法及终端
CN105068945A (zh) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 一种Android系统的摄像头分配方法及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7293253B1 (en) * 2003-09-12 2007-11-06 Nortel Networks Limited Transparent interface migration using a computer-readable mapping between a first interface and a second interface to auto-generate an interface wrapper
US8341541B2 (en) * 2005-01-18 2012-12-25 Microsoft Corporation System and method for visually browsing of open windows
US7603629B1 (en) * 2006-11-08 2009-10-13 Aol Llc, A Delaware Limited Liability Company Dynamic desktop icon
US8984507B2 (en) * 2010-04-26 2015-03-17 International Business Machines Corporation Cross architecture virtual machine migration
US9047469B2 (en) * 2011-09-10 2015-06-02 Microsoft Technology Licensing, Llc Modes for applications
CN104050035B (zh) * 2014-05-14 2018-05-25 小米科技有限责任公司 应用程序的处理方法及装置
WO2016036552A1 (en) * 2014-09-02 2016-03-10 Apple Inc. User interactions for a mapping application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738454A (zh) * 2004-08-19 2006-02-22 乐金电子(中国)研究开发中心有限公司 一种基于移动通信终端的消息处理方法
CN103294524A (zh) * 2012-02-27 2013-09-11 晨星软件研发(深圳)有限公司 电视系统及其应用程序管理方法
CN104991704A (zh) * 2015-07-06 2015-10-21 魅族科技(中国)有限公司 一种终端分屏方法及终端
CN105068945A (zh) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 一种Android系统的摄像头分配方法及系统

Also Published As

Publication number Publication date
EP3232325A1 (en) 2017-10-18
CN105912204B (zh) 2022-04-15
CN105912204A (zh) 2016-08-31
US20170293494A1 (en) 2017-10-12
EP3232325B1 (en) 2022-03-02

Similar Documents

Publication Publication Date Title
RU2640741C2 (ru) Способ и устройство для переключения режима отображения
CN107908351B (zh) 应用界面的显示方法、装置及存储介质
KR101840145B1 (ko) 이동 단말기의 제어 방법 및 이동 단말기
WO2017173765A1 (zh) 启动应用界面的方法及装置
WO2016192333A1 (zh) 终端应用程序管理方法及装置
US20190235745A1 (en) Method and device for displaying descriptive information
WO2017084183A1 (zh) 信息显示方法与装置
CN107992257B (zh) 分屏方法及装置
WO2017201887A1 (zh) 终端的工作模式确定方法及装置
WO2016112726A1 (zh) 控制终端设备充电的方法及装置
WO2017193526A1 (zh) 应用界面显示方法及装置
US10234924B2 (en) Method and apparatus for displaying time on mobile device
CN106354504B (zh) 消息显示方法及装置
CN111610912B (zh) 应用显示方法、应用显示装置及存储介质
KR20150122574A (ko) 사용자 명령 실행방법, 장치, 프로그램 및 기록매체
WO2018035772A1 (zh) 控制显示界面的方法及装置
WO2016150104A1 (zh) 应用主题的加载方法及装置
US20170308397A1 (en) Method and apparatus for managing task of instant messaging application
WO2016095395A1 (zh) 激活移动终端的操作状态的方法及装置
WO2021000450A1 (zh) 一种触控信号处理方法、装置及介质
WO2017128664A1 (zh) 进程调用的方法及装置
WO2017161813A1 (zh) 一种照相机模式切换方法、装置及移动设备
WO2017211021A1 (zh) 应用触发方法及装置
WO2017080080A1 (zh) 键盘样式切换方法及装置
CN112423092A (zh) 视频录制方法和视频录制装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16897698

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16897698

Country of ref document: EP

Kind code of ref document: A1