WO2024061032A1 - 窗口显示方法和相关装置 - Google Patents

窗口显示方法和相关装置 Download PDF

Info

Publication number
WO2024061032A1
WO2024061032A1 PCT/CN2023/117839 CN2023117839W WO2024061032A1 WO 2024061032 A1 WO2024061032 A1 WO 2024061032A1 CN 2023117839 W CN2023117839 W CN 2023117839W WO 2024061032 A1 WO2024061032 A1 WO 2024061032A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
application
interface
embedded window
electronic device
Prior art date
Application number
PCT/CN2023/117839
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 WO2024061032A1 publication Critical patent/WO2024061032A1/zh

Links

Classifications

    • 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
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Definitions

  • the present application relates to the field of terminal technology, and in particular, to a window display method and related devices.
  • an application loaded in an electronic device if the user wants to use a certain function of the application, the user needs to click the icon of the application in the electronic device. After the application is started, the user clicks on the application's various pages. Find the feature at level one before you can use it.
  • Embodiments of the present application provide a window display method and related devices, which simplify the way to open the function of an application program.
  • embodiments of the present application provide a window display method, which is applied to electronic devices, including:
  • Display the first interface which includes page content corresponding to the first task of the first application; receive the first preset operation; in response to the first preset operation, display an embedded window on the upper layer of the first interface, and Without interrupting the execution of the first task, the embedded window includes the page content corresponding to the second task of the second application; receiving the second preset operation; in response to the second preset operation, canceling the display of the embedded window and restoring the display of the second task.
  • the embedded window can be displayed conveniently based on the user's operation, and some tasks can be provided for the user in the embedded window, so that the user can conveniently use the tasks in the embedded window, and the embedded window can be displayed without interrupting the running of the electronic device.
  • the application makes the running applications in the electronic device have better continuity, reduces the interruption to the user's use of the application, and improves the user experience.
  • the page content corresponding to the second task of the second application is displayed in the first area of the embedded window.
  • the embedded window also includes a second area.
  • the embedded window On the upper layer of the first interface, the embedded window The second area also displays: a first icon corresponding to the second task, and a second icon corresponding to the third task; wherein, the first icon is in a selected state, and the second icon is in an unselected state.
  • the task that is displaying the page content is selected in the second area, and the identification of other tasks that do not display the page content can be in an unselected state, so that the user can easily understand the name of the task being used.
  • the method before receiving the second preset operation, further includes: receiving a third preset operation for switching the second task to the third task in the embedded window; responding to the third In the default operation, the interface content corresponding to the third task is displayed in the first area of the embedded window, and the first icon and the second icon are displayed in the second area of the embedded window; wherein, the first icon is in an unselected state, The second icon is selected.
  • receiving a third preset operation for switching the second task to the third task in the embedded window before receiving the second preset operation, the method further includes: receiving a third preset operation for switching the second task to the third task in the embedded window; responding to the third In the default operation, the interface content corresponding to the third task is displayed in the first area of the embedded window, and the first icon and the second icon are displayed in the second area of the embedded window; wherein, the first icon is in an unselected state, The second icon is selected.
  • the method further includes: receiving a slide-up operation in the first area of the embedded window; responding to the slide-up operation , displaying the first button in the first area of the embedded window; when receiving a trigger operation on the first button, displaying the page content associated with the third task of the first button in the first area of the embedded window.
  • This can enrich the content of the embedded window and enable users to implement more services based on the embedded window.
  • the first button includes a second button in the page content associated with the third task
  • the method further includes: when receiving a trigger operation for the second button, in the first part of the embedded window
  • the area restores and displays the interface content corresponding to the first task. In this way, users can also conveniently return to the upper page in the embedded window.
  • the third task is: a task of the first application, a task of the second application, or a task of the third application.
  • the third task is: a task of the first application, a task of the second application, or a task of the third application.
  • the page content corresponding to the second task of the second application includes a third button
  • the method further includes: when receiving a trigger for the third button, displaying an input box in the embedded window; When the input box is triggered, the keyboard is displayed; the input content received on the keyboard is displayed in the input box. This allows users to achieve convenient input in the embedded window.
  • the method further includes: receiving a notification message; continuing to display the embedded window, and displaying the notification message in the form of a capsule or banner on the upper layer of the embedded window. . This allows users to see notification messages immediately when they are embedded in the window.
  • the method further includes: displaying a second interface, the second interface including a first switch; when a trigger operation for turning on the first switch is received, displaying a third interface, the third interface including an added column and an unadded column, the added column including the identifiers of one or more tasks added by the user, and the unadded column including the identifiers of one or more tasks provided by the electronic device and not added by the user; when an operation for deleting the first target task in the added column is received, canceling the display of the identifier of the first target task in the added column, and displaying the identifier of the first target task in the unadded column; or, when an operation for adding a second target task in the unadded column is received, canceling the display of the identifier of the second target task in the unadded column, and displaying the identifier of the second target task in the added column.
  • This can support users to conveniently customize the tasks they need.
  • the unadded column includes an identification of a third target task, and the application corresponding to the third target task is not installed in the electronic device.
  • the method also includes: when receiving a request for adding the unadded column. During the operation of the third target task, prompt information is displayed, and the prompt information is used to prompt the installation of the application corresponding to the third target task. This allows users to customize rich tasks and is not limited to applications already installed in the electronic device.
  • the third interface further includes a second switch
  • the method further includes: when a trigger operation for turning on the second switch is received, displaying a recommendation logo in a blank area of the added column.
  • an embedded window in response to the first preset operation, is displayed on the upper layer of the first interface, and the embedded window includes page content corresponding to the second task of the second application, including: in response to the first In the preset operation, when it is determined that the second switch is in the on state, the second task of the second application is determined based on the recommendation algorithm.
  • the recommendation algorithm is related to one or more of the following: time information, the geofence where the user is located, or the user User-related information in the portrait; an embedded window is displayed on the upper layer of the first interface, and the embedded window includes a page corresponding to the second task of the second application. In this way, electricity
  • the sub-device can recommend appropriate shortcut task cards to the user based on the scene the user is in, improving the user experience.
  • determining the second task of the second application based on the recommendation algorithm includes: when it is determined based on the recommendation algorithm that the user will travel, determining the second task of the second application as a travel-type task; or, when it is determined based on the recommendation algorithm that the user will travel, When the recommendation algorithm determines that the user will check in, the second task of the second application is determined to be a check-in task; or, when it is determined based on the recommendation algorithm that the user will pay, the second task of the second application is determined to be a payment task; or, when it is determined based on the recommendation algorithm that the user will pay, the second task of the second application is determined to be a payment task.
  • the recommendation algorithm determines that the user will take a ride, it determines that the second task of the second application is a ride code task. In this way, the electronic device can recommend appropriate shortcut task cards to the user based on the scene the user is in, improving the user experience.
  • the first application includes an application that supports playing video or audio content, and while the electronic device displays the embedded window, the electronic device keeps the first application playing the video or audio. In this way, the application originally running on the electronic device can continue to run.
  • the method also includes: when the electronic device receives the first preset operation in a black screen or screen-off state, lighting the display screen of the electronic device; displaying a lock screen interface, the lower layer of the lock screen interface Includes inline windows; displays inline windows when correct unlock input is received in the lock screen.
  • the electronic device can display an embedded window based on a simple trigger from the user from a black screen or screen-off state.
  • the method further includes: when the electronic device receives the first preset operation in a light-screen locked state, displaying a lock screen interface, and the lower layer of the lock screen interface includes an embedded window; in the lock screen When the correct unlock input is received in the interface, the embedded window is displayed. In this way, the electronic device can display the embedded window from the on-screen to lock-screen state based on a simple trigger by the user.
  • an embedded window in response to the first preset operation, is displayed on the upper layer of the first interface without interrupting the execution of the first task, and the embedded window includes the second task corresponding to the second application.
  • the page content includes: in response to the first preset operation, creating a new task task for the second application, and displaying an embedded window on the upper layer of the first interface without interrupting the execution of the first task.
  • the embedded window includes the second The page content corresponding to the second task of the application. In this way, the second application can provide the embedded window with the page content corresponding to the second task based on the newly created task, without the need for the electronic device to jump to the second application, so that the operation of the second application can also be better.
  • receiving the first preset operation includes: receiving a double-click operation on the back of the electronic device. This operation method is more convenient and easy for users to implement.
  • the window display device may be an electronic device, or may be a chip or chip system in the electronic device.
  • the window display device may include a display unit and a processing unit.
  • the display unit may be a display screen.
  • the display unit is used to perform a display step, so that the electronic device implements a window display method described in the first aspect or any possible implementation of the first aspect.
  • the processing unit may be a processor.
  • the window display device may also include a storage unit, and the storage unit may be a memory.
  • the storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit, so that the electronic device implements a window display method described in the first aspect or any possible implementation of the first aspect.
  • the processing unit may be a processor.
  • the processing unit executes instructions stored in the storage unit, so that the electronic device implements a window display method described in the first aspect or any possible implementation of the first aspect.
  • the storage unit may be a storage unit within the chip (eg, register, cache, etc.), or may be a storage unit in the electronic device located outside the chip (eg, read-only memory, random access memory, etc.).
  • the display unit is used to display a first interface, which includes a first task corresponding to the first application.
  • the page content corresponding to the second task of the second application is displayed in the first area of the embedded window.
  • the embedded window also includes a second area.
  • the embedded window On the upper layer of the first interface, the embedded window The second area also displays: a first icon corresponding to the second task, and a second icon corresponding to the third task; wherein, the first icon is in a selected state, and the second icon is in an unselected state.
  • the processing unit is also configured to receive a third preset operation for switching the second task to the third task in the embedded window; the display unit is also configured to respond to the third In the default operation, the interface content corresponding to the third task is displayed in the first area of the embedded window, and the first icon and the second icon are displayed in the second area of the embedded window; wherein, the first icon is in an unselected state, The second icon is selected.
  • the processing unit is further configured to receive a slide-up operation in the first area of the embedded window; the display unit is further configured to display in the first area of the embedded window in response to the slide-up operation.
  • the first button; the display unit is also configured to display the page content associated with the first button in the third task in the first area of the embedded window when a trigger operation on the first button is received.
  • the first button includes a second button in the page content associated with the third task
  • the display unit is also configured to display the display unit in the embedded window when a trigger operation for the second button is received.
  • the first area resumes displaying the interface content corresponding to the first task.
  • the third task is: a task of the first application, a task of the second application, or a task of the third application.
  • the page content corresponding to the second task of the second application includes a third button and a display unit, which is also configured to display the input box in the embedded window when the third button is triggered. ;When receiving a trigger on the input box, display the keyboard; display the input content received on the keyboard in the input box.
  • the display unit is also configured to continue to display the embedded window when receiving the notification message, and display the notification message in the form of a capsule or banner on an upper layer of the embedded window.
  • the display unit is also used to display a second interface, and the second interface includes a first switch; when a trigger operation for turning on the first switch is received, a third interface is displayed, and the third interface It includes added columns and unadded columns.
  • the added column includes the identification of one or more tasks that are customized by the user.
  • the unadded column includes the identification of one or more tasks provided by the electronic device that have not been added by the user.
  • the unadded column includes an identification of the third target task, and the application corresponding to the third target task is not installed in the electronic device.
  • the display unit is also used to receive a request for adding the unadded column.
  • a prompt message is displayed, and the prompt information is used to prompt the installation of the application corresponding to the third target task.
  • the third interface further includes a second switch, a display unit, and is also used to When the trigger operation of the second switch is turned on, the recommendation mark is displayed in the blank area of the added column.
  • the processing unit is specifically configured to respond to the first preset operation and determine the second task of the second application based on a recommendation algorithm when it is determined that the second switch is in an on state.
  • the recommendation algorithm is as follows: One or more items related to: time information, the geo-fence where the user is located, or user-related information in the user portrait; an embedded window is displayed on the upper layer of the first interface, and the embedded window includes the second task corresponding to the second application page.
  • the processing unit is specifically configured to determine that the second task of the second application is a travel task when it is determined based on the recommendation algorithm that the user will travel; or, when it is determined based on the recommendation algorithm that the user will check in, Determine the second task of the second application to be a check-in task; or, when it is determined based on the recommendation algorithm that the user will pay, determine the second task of the second application to be a payment task; or, when it is determined based on the recommendation algorithm that the user will take a ride. , it is determined that the second task of the second application is a ride code type task.
  • the first application includes an application that supports playing video or audio content, and while the electronic device displays the embedded window, the electronic device keeps the first application playing the video or audio.
  • the processing unit is also used to light up the display screen of the electronic device when the electronic device receives the first preset operation in a black screen or screen-off state; the display unit is also used to display the lock The screen interface, the lower layer of the lock screen interface includes an embedded window; the display unit is also used to display the embedded window when a correct unlock input is received in the lock screen interface.
  • the display unit is also configured to display a lock screen interface when the electronic device receives a first preset operation in a bright screen lock screen state, and the lower layer of the lock screen interface includes an embedded window; display Unit, also used to display an embedded window when correct unlock input is received in the lock screen.
  • the processing unit is also used to create a new task task for the second application in response to the first preset operation
  • the display unit is also used to display an embedded window on the upper layer of the first interface, Without interrupting the execution of the first task, the embedded window includes page content corresponding to the second task of the second application.
  • the processing unit is specifically configured to receive a double-click operation on the back of the electronic device.
  • embodiments of the present application provide an electronic device, including a processor and a memory.
  • the memory is used to store code instructions
  • the processor is used to run the code instructions to execute the first aspect or any possible implementation of the first aspect. The method described in the method.
  • embodiments of the present application provide a computer-readable storage medium.
  • Computer programs or instructions are stored in the computer-readable storage medium. When the computer programs or instructions are run on a computer, they cause the computer to execute the first aspect or the first aspect. method described in any possible implementation of the aspect.
  • embodiments of the present application provide a computer program product including a computer program.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the method described in the first aspect or any possible implementation of the first aspect. .
  • the present application provides a chip or chip system, which chip or chip system includes at least one processor and a communication interface.
  • the communication interface and the at least one processor are interconnected through lines, and the at least one processor is used to run computer programs or instructions.
  • the communication interface in the chip can be an input/output interface, a pin or a circuit, etc.
  • the chip or chip system described above in this application further includes at least one memory, and instructions are stored in the at least one memory.
  • the memory can be a storage unit inside the chip, such as a register, a cache, etc., or it can be a storage unit of the chip (such as a read-only memory, a random access memory, etc.).
  • Figure 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the software structure of the electronic device 100 provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of an interface provided by an embodiment of this application.
  • FIG. 4 is a schematic diagram of the software and hardware framework provided by the embodiment of this application.
  • FIG. 5 is a schematic diagram of module interaction provided by the embodiment of this application.
  • Figure 6 is a schematic diagram of an interface for setting tasks provided by an embodiment of the present application.
  • FIG7 is a schematic diagram of another interface for setting tasks provided in an embodiment of the present application.
  • Figure 8 is a schematic diagram of an interface for adjusting task order provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of an interface from a black screen to displaying an embedded window provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of an interface from locking the screen to displaying an embedded window provided by an embodiment of the present application
  • Figure 11 is a schematic diagram of an interface from the desktop to displaying an embedded window provided by an embodiment of the present application
  • Figure 12 is a schematic diagram of an interface from a video application screen to displaying an embedded window provided by an embodiment of the present application
  • Figure 13 is a schematic diagram of an interface from application A to displaying an embedded window provided by an embodiment of the present application
  • FIG14 is a schematic diagram of an interface from cold start or loading failure to displaying an embedded window provided by an embodiment of the present application
  • Figure 15 is a schematic interface diagram of several types of possible tasks displayed in an embedded window provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of an interface for displaying payment tasks in an embedded window provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of another interface for displaying payment tasks in an embedded window provided by an embodiment of the present application.
  • FIG18 is a schematic diagram of an interface for displaying outgoing tasks in an embedded window provided by an embodiment of the present application.
  • Figure 19 is a schematic interface diagram of receiving a notification message when an embedded window is displayed according to an embodiment of the present application.
  • Figure 20 is a schematic diagram of an interface for exiting an embedded window provided by an embodiment of the present application.
  • Figure 21 is a schematic diagram of another interface for exiting an embedded window provided by an embodiment of the present application.
  • Figure 22 is a schematic diagram of a window display process provided by an embodiment of the present application.
  • Figure 23 is a schematic diagram of the hardware structure of the chip provided by the embodiment of the present application.
  • Launcher can be understood as a desktop application (application, APP). It is the entrance to applications on electronic devices using the Android system. It can manage applications and provide functions such as windows.
  • SystemUI It can be called the system user interface. In the Android system, SystemUI runs in the form of an application. It provides a basic display interface for the system. For example: the status bar at the top of the screen, the navigation bar at the bottom of the screen, the quick settings bar of the drop-down interface, the notification bar, the lock screen interface, the volume adjustment dialog box, the screenshot display interface and other interfaces.
  • Quick task card It can be understood as a page with a certain function of the application displayed in the window. When the window supports switching of functional pages of multiple applications, it can be said that the window supports switching of multiple shortcut task cards.
  • Quick task The display of the task card can be managed by Launcher, and the specific service content of the shortcut task card can be provided by SystemUI.
  • the shortcut task card in the embodiment of the present application is not limited to the same meaning as the card in the negative screen or the main interface, but can be understood as a custom name for the convenience of description.
  • the shortcut task card may also be called any of the following: quick service card, quick function card, task card, shortcut card, card, shortcut function page, shortcut function interface, function page, function interface, etc., embodiments of the present application No specific limitation is made.
  • words such as “first” and “second” are used to distinguish identical or similar items with basically the same functions and effects.
  • the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an “or” relationship.
  • “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one of a, b, or c can mean: a, b, c, a-b, a--c, b-c, or a-b-c, where a, b, c can be single, or It's multiple.
  • Electronic devices in embodiments of the present application may include handheld devices, vehicle-mounted devices, etc. with image processing functions.
  • some electronic devices are: mobile phones, tablets, PDAs, laptops, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality (AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and wireless terminals in smart grids
  • Wireless terminals wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocols, SIP) telephone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication capabilities, computing device or other processing device connected to a wireless modem, vehicle-mounted device , wearable devices, terminal devices in the 5G network or terminal devices in the future evolved public land mobile communication network (public land mobile network, PLMN), etc., the embodiments of the present application are not limited to this.
  • the electronic device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices. It is a general term for applying wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes, etc.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not just hardware devices; Powerful functions are achieved through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-sized devices that can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, and those that only focus on a certain type of application function and need to cooperate with other devices such as smartphones. Use, such as various smart bracelets, smart jewelry, etc. for physical sign monitoring.
  • the electronic device can also be a terminal device in the Internet of things (IoT) system.
  • IoT Internet of things
  • Its main technical feature is to transfer items through communication technology. Connect with the network to achieve an intelligent network of human-computer interconnection and physical-object interconnection.
  • the electronic equipment in the embodiments of this application may also be called: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (mobile terminal, MT), access terminal, user unit, User station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • access terminal user unit
  • User station mobile station
  • mobile station remote station
  • remote terminal mobile device
  • user terminal user terminal
  • wireless communication equipment user agent or user device, etc.
  • the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
  • This hardware layer includes hardware such as central processing unit (CPU), memory management unit (MMU) and memory (also called main memory).
  • the operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system or windows operating system, etc.
  • This application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
  • the user For an application loaded in an electronic device, if the user wants to use a certain function of the application, the user needs to click the icon of the application in the electronic device. After the application is started, the user clicks on the application's various pages. Find the feature at level one before you can use it.
  • the user's operations when using the application are cumbersome, which affects the user experience.
  • the user can quickly open the application by tapping the electronic device, first display the home page of the application, and then display a page of a certain function of the application in the application.
  • the user can only open a certain function of one application with one tap, and the display process causes the page of the application to change, affecting the user experience.
  • the user wants to open the function of another application he or she needs to perform additional operations such as tapping, or the user needs to open another application and search for the function on the application's page, which is cumbersome and affects the user experience.
  • inventions of the present application provide a window display method.
  • the electronic device can display an independent window after receiving the user's preset operation.
  • the window can include a functional page of an application, so that the user can use it conveniently. Functions of an application.
  • the window may also provide identification of one or more additional functions of the application, and/or identification of one or more functions of other applications. In this way, based on the identification of each function in the window Logo, users can flexibly switch between different functions of different applications.
  • an independent window can be understood as: the window is not a window in an application opened by the user, but an independent window provided by the system of the electronic device.
  • the independent window can cover any application displayed on the electronic device.
  • the independent window can embed the task entry of one or more applications.
  • a new task can be created for the application corresponding to the task, so that the task can be executed.
  • It is independent of other already running tasks in the application, so that the task of triggering the embedded window does not cause any interruption to the operation of any application displayed on the electronic device. In this way, the calling of the window will not affect the user's current operation and improve the user experience. For example, when a user is watching videos or playing games on an electronic device, if the user triggers the The child device displays this window, and videos and games can be uninterrupted while this window is displayed.
  • An independent window may also be called a window, an embedded window, a shortcut card pop-up window, a pop-up window, a card application window, a shortcut card window, a shortcut function window, a shortcut function pop-up window, etc., which are not specifically limited in the embodiments of this application.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriberidentification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be recalled from memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal serial bus
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • GPU for images
  • the processing microprocessor connects the display 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be set on the display screen 194.
  • a capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of terminal devices and be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the touch sensor 180K is also called a "touch control device”.
  • the touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, etc.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include camera, system UI, phone, map, Call, music, settings, desktop (launcher), video, social and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager (window manager service, WMS), activity manager (activity manager service, AMS), content provider, resource manager, view system (view), and notification management Devices etc.
  • window manager window manager service, WMS
  • activity manager activity manager service, AMS
  • content provider resource manager
  • resource manager view system
  • notification management Devices etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.
  • AMS is used to manage the life cycle of applications, start or kill application processes, schedule tasks, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the view system in the embodiment of this application may include View or Surface View.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
  • Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • Figure 3 shows some interfaces between the application layer and the application framework layer in the embodiment of the present application.
  • the application layer may include an embedded window component package, and the embedded window component package may be part of the launcher.
  • the embedded widget package can interact with AMS, WMS, view and input management services (input manger service, inputMS) at the application framework layer.
  • the embedded window component package may include a startup control module, a task management and status synchronization module, a view inline and display control module, an interaction control module and a proxy service module.
  • the startup control module can interact with AMS based on the activity startup and exit interface, so that AMS can start and exit the interface based on the activity to implement activity startup management and activity life cycle management of the embedded window.
  • the Task management and status synchronization module can interact with WMS based on the Task management and status synchronization interface.
  • the interactive control module can interact with WMS based on the interface interaction and event delivery interface, so that WMS can interact with the interface based on the Task management and status synchronization interface.
  • the View embedded and display control module can interact with the view based on the surface control interface, so that the view can implement surface display control based on the surface control interface.
  • the proxy service may correspond to an embedded window capability access interface (or an interface called task access).
  • InputMS can be used to dispatch events when user triggers are received in the embedded window.
  • the electronic device can realize embedded windows displayed across tasks, so as not to interrupt the user's current scene.
  • the startup control module can call AMS to perform activity startup management and activity life cycle management of the embedded window based on the activity startup and exit interface.
  • the Task management and status synchronization module can call WMS to manage task stacks based on the Task management and status synchronization interfaces to create new tasks or stacks.
  • the interactive control module can call the activity jump control of WMS based on the interface interaction and event delivery interface to obtain the page content to be displayed in the embedded window from the application accessed by the proxy service.
  • the View embedded and display control module can be based on the surface control interface and call the surface view obtained by converting the page content to be displayed in View to realize the display of the embedded window.
  • WMS can configure the basic parameters of the embedded window based on conflg update and compatibility management. WMS can also manage the status bar (such as WiFi logo, operator logo, etc.) and navigation bar (such as virtual buttons) in the display screen in addition to the embedded window based on insets window management, so that the status bar and navigation bar, etc. It will not affect the display of embedded windows.
  • status bar such as WiFi logo, operator logo, etc.
  • navigation bar such as virtual buttons
  • the embedded window may also receive trigger operations and generate trigger events. InputMS can dispatch these events, and the corresponding modules of WMS will respond and process these events.
  • WMS's focus switching control can control the implementation of focus switching
  • WMS's window hierarchy management can control the implementation. Changes in the level of the window; when an input operation is received in the embedded window, WMS's input method window management can be input method management; when an operation to cancel the display of the embedded window is received in the embedded window, WMS's window visibility Management can control the cancellation of embedded window display.
  • a new task or a new stack is created, so that the running tasks in the embedded window are independent of the running tasks of the application program, so that the tasks running by the application program can not be interrupted.
  • FIG. 4 shows a schematic diagram of the software and hardware architecture for implementing the method of the embodiment of the present application.
  • system applications, artificial intelligence (AI) middle platform, and infrastructure in Figure 4 can all be applications running at the application layer.
  • the chip platform and chip algorithm can run at the kernel layer or at the application framework layer, and are not specifically limited in the embodiments of this application.
  • the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with the scenario in which the user taps the back of the mobile phone to trigger the implementation of the window display method in the embodiment of the present application.
  • the kernel layer processes the tapping operation into raw input events.
  • the raw input events can include values collected by the acceleration sensor, values collected by the gyroscope, audio signals and/or touch (touchpanel, TP) signals.
  • the original input events are stored in the kernel layer. .
  • the chip algorithm can identify whether the original input event is a tap event on the back of the phone based on the tap recognition algorithm on the back of the phone.
  • a tap can refer to multiple consecutive taps or a single tap.
  • the tap recognition algorithm on the back of the phone can include Pre-judgment, feature extraction, neural network recognition and result output of information in the original input event.
  • the values collected by the acceleration sensor and the value collected by the gyroscope in the original input event can be the core features, and the audio signal and TP signal can be auxiliary Features
  • the neural network can be a model trained based on machine learning or deep learning for identifying back taps on the mobile phone.
  • the chip platform can be adapted to the application framework based on the back tap software channel.
  • the application framework layer can adapt the software channel interface.
  • the application framework layer can encapsulate the events on the software channel side into an interface callable by the system application.
  • the application layer can call the interface encapsulated by the application framework layer to start the embedded pop-up window.
  • the content to be displayed may include function pages of one or more applications configured locally on the mobile phone by the user, and/or function pages of one or more applications configured in the cloud.
  • the AI middle platform can identify the scene the user is in. The scene can be related to the user's usage habits, the time the user is in, the user's location, and/or the user's property purchase, etc., and then the AI middle platform can The shortcut task card displayed in the embedded window can be determined in the content to be displayed based on the scene in which the user is located, and the terminal device can display the shortcut task card.
  • Figure 5 exemplarily shows a schematic diagram of the interaction flow between modules in the embodiment of the present application.
  • Implementing the window display method in the embodiment of the present application may include a setting phase and a usage phase.
  • the setting stage may refer to the stage of setting the shortcut task card in the window when subsequent windows are displayed.
  • the use stage may refer to the stage in which the electronic device implements window display after receiving a user trigger.
  • the electronic device can provide auxiliary functions in the setting application.
  • the auxiliary functions can include switches to control the turning on or off of the shortcut task card function, and a settable shortcut task card logo.
  • the switch that controls the on or off of the quick task card function is turned on, the electronic device can receive one or more quick task card identifiers selected by the user on the auxiliary function page, and/or one or more quick tasks recommended by the cloud.
  • card ID the setting application can obtain the new shortcut task card ID set this time.
  • the setting application can also obtain the previously set shortcut task card ID from the database of the desktop application, thereby obtaining the new shortcut task card including this setting. Identifies the new task list results as well as the shortcut task card identification previously set. It is understandable that the database of the desktop application may or may not have a previously set shortcut task card identifier. Task list results may also be called task lists, service list results, or service lists. This document The application examples are not specifically limited.
  • the settings application can further write the status of the switch and the new task list results into the database of the desktop application to update the database of the desktop application.
  • the operation can be processed into a double-click on the back event.
  • the software channel based on the chip algorithm passes the double-click on the back event to the chip platform.
  • the application framework layer can process the double-click on the back of the chip platform.
  • the back events are encapsulated by the interface.
  • the desktop application performs an interface callback on the interface encapsulated by the application framework layer.
  • the desktop application loads the task list results in the database of the desktop application and obtains the scene service from the AI platform.
  • the desktop application can combine the current scene
  • the service determines the shortcut task card corresponding to the current scene service in the task list result, and displays the shortcut task card corresponding to the current scene service first. For example, if the current scene service indicates that the user is at a subway entrance, the quick task card displayed first can be the quick task card corresponding to the ride code function.
  • the desktop application can open a window including the shortcut task card and obtain the service content of the shortcut task card from systemUI.
  • SystemUI can further obtain the service content from the application framework layer and return the surface view to the desktop application.
  • Desktop applications can control the display of shortcut task cards based on surface view.
  • Figures 3 to 5 above implement logic from within the electronic device, illustrating the internal implementation of a shortcut task card window popping up on the electronic device when the user taps the back of the electronic device twice in succession.
  • the following will describe in detail the possible interface interactions when the window is displayed in the embodiment of the present application in conjunction with the user interface.
  • the subsequent user interface diagram will be divided into the shortcut task card setting stage, the shortcut task card usage stage and the shortcut task card closing stage with separate examples.
  • the shortcut task card setting stage may correspond to Figure 6-8
  • the shortcut task card usage stage may correspond to Figure 9-19
  • the shortcut task card closing stage may correspond to Figure 20-21.
  • the operation of double-clicking the back in the above-mentioned Figures 3 to 5 can also be replaced by any of the following: an operation of tapping the back N times, tapping function keys (such as volume keys, on/off keys, and power keys) N times. keys, etc.), N taps on any area of the electronic device (such as the front, back, side, etc.), specific gesture operations, specific sliding touch operations, voice control, etc., the embodiment of the present application is useful for triggering embedded windows.
  • the specific operation displayed is not limited, as long as the embedded window can be quickly displayed based on one operation.
  • N is a natural number.
  • the following user interfaces take the example of double-clicking the back to trigger the embedded window display of the mobile phone.
  • the adapted prompt information also uses the double-clicking on the back to implement the shortcut task. This example does not constitute triggering the embedded window display. operations and limitations of prompt information.
  • the electronic device may provide an interface for setting the shortcut function card, and the interface may include a master switch 601 for turning on or off the shortcut task card.
  • the state of the main switch 601 can be on or off.
  • the main switch 601 is in a closed state.
  • the interface shown in Figure 6 (a) can display a prompt "Tap the back of the phone twice to achieve a shortcut. "Task" prompt information does not display the shortcut tasks that can be added.
  • Method 1 In the settings application, follow the sequence of "Settings-Accessibility-Quick Start and Gestures" to trigger in order to enter as follows:
  • Figure 6(a) shows an interface for setting shortcut function cards.
  • Method 2 When the embedded window is displayed, a shortcut control is provided in the embedded window to enter the interface for setting the shortcut function card shown in (a) of Figure 6.
  • the logo of the shortcut control can be a setting logo or an editing logo.
  • the embedded window display will be explained in conjunction with the illustrations and will not be described in detail here.
  • the electronic device can also provide other ways to enter the interface for setting the shortcut function card as shown in (a) of Figure 6. The embodiments of the present application do not specifically limit this.
  • the interface shown in FIG. 6 (b) may be entered.
  • the main switch is on.
  • the state of the intelligent recommendation switch 602 can be an on state or an off state.
  • the electronic device can be supported based on the scene in which the user is located. Users recommend shortcut task cards displayed in embedded windows.
  • the smart recommendation switch 602 is turned off, the electronic device is not supported to recommend shortcut task cards displayed in the embedded window to the user based on the scene the user is in.
  • the shortcut task cards displayed in the embedded window are default or user-defined. set.
  • the intelligent recommendation switch 602 is in the closed state as an example. The situation in which the intelligent recommendation switch 602 is in the open state will be described in detail in FIG. 7 and will not be described again here.
  • the interface shown in (b) of Figure 6 also includes added columns and unadded columns.
  • the added columns include the identifiers of M shortcut task cards that will be displayed in the embedded window pop-up window.
  • the unadded columns include Including identifiers provided by the electronic device that can support L shortcut task cards displayed when the embedded window pops up.
  • the numbers of M and L are not specifically limited in the embodiments of this application.
  • the identity of the quick task card in the unadded column can be moved to the added column based on the user's addition operation, and the identity of the shortcut task card in the added column can be moved to the unadded column based on the user's removal operation.
  • shortcut tasks can be understood as any functions, tasks or services in the application.
  • shortcut tasks can include collection and payment services of various payment applications, scan services, travel services of various travel applications, and check-in of various office applications. Services, etc.
  • functions that support scheme and ShortCut can be used as shortcut tasks.
  • the identification of any shortcut task card without an added column may include: the icon of the shortcut task, the name of the shortcut task, the name of the application described in the shortcut task, and the add control 604 for adding the shortcut task.
  • the identifiers of the shortcut task cards included in the added column and the unadded column may belong to tasks in one application or to tasks in multiple applications.
  • the identification of the shortcut task card included in the added column belongs to the task in the application program installed in the electronic device.
  • the identification of the shortcut task card included in the unadded column may belong to a task in an application program that is installed in the electronic device, or may belong to a task in an application program that is not installed in the electronic device.
  • task a and task b belong to application A
  • task c, task d and task e belong to application B
  • task f belongs to application C
  • application A and application B belong to installed applications in the electronic device
  • application C belongs to the electronic device.
  • the logo of the shortcut task card corresponding to uninstalled application C can be distinguished from installed application A and application B in terms of color, size, etc.
  • the electronic device When the electronic device receives the trigger of the control to cancel the download, it can enter the interface shown in (e) of Figure 6 .
  • This interface can be the same as (c) of Figure 6 and will not be described again.
  • the user can continue to add content to the added column until the upper limit of the added column is reached.
  • the add control of task e that has not added a column receives a user trigger as shown in (e) of Figure 6
  • task e is added to the added column, the adapted task e in the unadded column disappears, and the task e in the added column disappears.
  • the number of tasks has reached the upper limit.
  • any interface shown in (b)-(e) of Figure 6 if the user's operation of turning off the main switch is received, the interface can be returned to the interface shown in (a) of Figure 6.
  • any interface shown in (b)-(e) of Figure 6 if an operation to remove the control corresponding to any task in the added column is received, any task can be removed from the added column, and Shown in the Not Added column (not shown in the figure).
  • Figure 6 illustrates the relevant interface of the user-defined shortcut task card with the smart recommendation switch in the off state.
  • Figure 7 below uses the smart recommendation switch as an example to illustrate the relevant interface for setting quick task cards.
  • the interface shown in (a) of Figure 7 can be entered.
  • the smart recommendation switch is turned on, and the added column contains 5 tasks customized by the user.
  • the electronic device The first task displayed in the embedded window may not be the first task a among the five tasks customized by the user, but may be based on the scenario in which the user is located, among the five tasks and what the electronic device installation application can do. Among any provided tasks, select the task that best matches the scenario to display the shortcut task card.
  • the electronic device can, based on the scene in which the device is located, select one or more services that match the scene in which the device is located among all the tasks corresponding to the services provided by the applications installed on the electronic device. Multiple tasks are displayed in the quick task card.
  • the user can turn off the smart recommendation switch at any time.
  • the smart recommendation switch as shown in Figure 7 (c) is triggered by the user, the user can enter the interface as shown in Figure 7 (d) for smart recommendation.
  • the switch is off, and the dotted box logo used to prompt recommendations is not displayed in the added column.
  • the user can also continue to remove tasks in the added column. For example, based on the interface shown in (c) of Figure 7, The electronic device can continue to receive the user's removal operation, remove all tasks in the added task bar, and enter the interface shown in Figure 7(e). All the added columns are displayed as virtual boxes for prompting recommendations. logo. In a possible implementation, the electronic device can also provide a control for removing all tasks in the added taskbar with one click (not shown in the figure) in any interface in Figure 7, so as to realize convenient tasks in the added taskbar. Remove.
  • the interface shown in (f) of Figure 7 can be entered, and the default 5 tasks can be automatically filled in the added column.
  • the default 5 tasks Each task is an application installed in the electronic device.
  • the main switch, smart recommendation switch and added taskbar can all have some features.
  • the main switch can be on or off by default, and the electronic device can also remember user operations.
  • the next time an interface including the main switch is displayed the status of the main switch will be the last memorized user setting status.
  • the smart recommendation switch can be on or off by default, and the electronic device can also remember user operations.
  • the next time an interface including the smart recommendation switch is displayed the status of the smart recommendation switch will be the last memorized user setting status.
  • a taskbar has been added to support Changan dragging to adjust task order.
  • FIG8 shows a schematic diagram of an interface for adjusting the order of tasks in an added task bar.
  • the smart recommendation switch is turned off, and the virtual box logo used to prompt recommendations is not displayed in the added task bar.
  • the icon of task a receives a long press from the user and points to the task
  • the positions of task a and task c change. In this way, when subsequent users trigger the display of the embedded window, the quick task card corresponding to the task located at the first position of the added column can be displayed first by default.
  • the interface shown in FIG8 (a) if the smart recommendation switch receives a user trigger, the interface shown in FIG8 (c) can be entered, the smart recommendation switch becomes turned on, and a virtual frame mark for prompting the recommendation is displayed in the added task bar.
  • the icon of task a in the interface shown in FIG8 (c) receives a user long press and moves to the position of task c
  • the interface shown in FIG8 (d) can be entered.
  • the positions of task a and task c change, and the position of the virtual frame mark for prompting the recommendation does not change. In this way, when the user subsequently triggers the display of the embedded window, the quick task card corresponding to the task located at the first position of the added bar can be displayed first, or the recommended quick task card corresponding to the scene where the user is located can be displayed.
  • Figure 6-8 exemplifies the interfaces that may be involved in the shortcut task card setting stage.
  • the following is an example of the interfaces that may be involved when the electronic device displays the shortcut task card in the embedded window based on user triggering after the setting is completed.
  • the electronic device When the user triggers the embedded window display, the electronic device may be in different states. For example, the electronic device is in a black screen (or idle screen), the electronic device is on and in a locked screen state, the electronic device displays the desktop, or the electronic device displays the interface of any application. Etc., electronic devices may implement shortcut display in different ways in different states. Figures 9 to 14 respectively show several possible ways of triggering the display of embedded windows.
  • Figure 9 shows a schematic diagram of the interface of an electronic device from a black screen to displaying an embedded window.
  • the electronic device is a black screen.
  • the electronic device can light up the screen and enter the interface shown in Figure 9 (b).
  • Implementation 1 No password is set in the electronic device or the electronic device recognizes a face that can be unlocked, then the electronic device can enter the interface shown in Figure 9 (d) from the interface shown in Figure 9 (b).
  • Implementation 2 The electronic device needs to be unlocked based on the password entered by the user, then the electronic device can enter the interface shown in Figure 9 (d).
  • the sub-device can first enter the unlocking interface shown in Figure 9 (c) from the interface shown in Figure 9 (b).
  • the next layer of the unlocking interface can display a reduced-scale embedded window (for example, reduced to 90%).
  • the interface shown in (d) of Figure 9 can be understood as the interface of an embedded window.
  • the embedded window can be suspended and displayed on the upper layer of other applications of the electronic device.
  • the embedded window can have a certain degree of transparency.
  • the embedded window can include Detail display area 901 and task bar 902.
  • the details display area 901 can display a shortcut task card of a task, and the content of the shortcut task card can be a detailed page of the task.
  • the task bar 902 may display identifiers of multiple tasks, and the identifiers may include icons and/or text, etc.
  • the arrangement order of the multiple task identifiers may be the same as or different from the arrangement order in the previously added column.
  • the task displayed in the details display area 901 is one of the tasks in the task bar 902.
  • the identification of the task displayed in the details display area 901 can be distinguished from the identification of other tasks in the task bar 902 based on color, shape, size, check mark, etc. .
  • the embedded window shown in (d) of Figure 9 may also include an editing control.
  • the user clicks on the editing control the user can enter the interface for setting the shortcut task card as shown in Figure 6, which will not be described again here.
  • Figure 10 shows a schematic interface diagram of the electronic device from the lock screen interface to displaying the embedded window.
  • the electronic device has a bright screen and a lock screen interface.
  • the electronic device can have two possible implementations: Implementation 1. There is no setting in the electronic device If the password or the electronic device recognizes the face that can be unlocked, the electronic device can enter the interface shown in (c) of FIG. 10 from the interface shown in FIG. 10 (a).
  • Implementation 2 The electronic device needs to be unlocked based on the password entered by the user. The electronic device can first enter the interface shown in Figure 10(b) from the interface shown in Figure 10(a).
  • Figure 11 shows a schematic interface diagram of an electronic device from the desktop to displaying an embedded window.
  • the electronic device displays the desktop.
  • the electronic device receives a double-click operation on the back, the electronic device can enter from the interface shown in (a) of Figure 11 to (b) of Figure 11 interface shown.
  • the display of the embedded window can be exited, and the electronic device can re-display the desktop.
  • Figure 12 shows a schematic diagram of the interface of the electronic device from the interface of the video application to the display of the embedded window.
  • the electronic device displays the interface of the video application.
  • the electronic device receives the operation of double-clicking the back, the electronic device can enter from the interface shown in (a) of Figure 12 to the interface shown in Figure 12 The interface shown in (b).
  • the video application does not need to be interrupted.
  • the electronic device continues to display the video being played, realizing continuous playback of the video application.
  • Figure 13 shows a schematic interface diagram of the electronic device from the a interface of application A to displaying the embedded window.
  • the electronic device displays the a interface of application A.
  • the electronic device receives the operation of double-clicking the back, the electronic device can enter from the interface shown in (a) of Figure 13 to the interface shown in Figure 13
  • the embedded window shown can also display other pages corresponding to task a of application A.
  • the electronic device continues to display interface a of application A, without affecting the operation of application A itself. That is to say, the embedded window in the embodiment of the present application is independent of application A and will not cause interruption to the operation of application A.
  • FIG. 14 shows a schematic diagram of a possible interface when the electronic device is cold-started or fails to load.
  • (b) in FIG. 14 may be the interface shown in (d) of FIG. 9 , the interface shown in (c) of FIG. 10 , the interface shown in (b) of FIG. 11 , or the interface shown in (b) of FIG. 12 interface, or the interface shown in (b) of Figure 13 .
  • the cold-start interface may also be displayed in the embedded window as shown in (a) of FIG. 14 .
  • the loading interface can also be displayed in the embedded window as shown in (c) of Figure 14.
  • the interface may include a loading control. When receiving a trigger for the loading control, the interface shown in (b) of Figure 14 may be entered.
  • the embedded windows of the six interfaces can also be replaced by displaying any of the following: the shortcut task card corresponding to task b of application A as shown in Figure 15 (a), as shown in Figure 15
  • the shortcut task card corresponding to task c of application B shown in (b) is shown in (c) of Figure 15.
  • the shortcut task card corresponding to task d of application B shown in (c) of Figure 15 is shown in (d) of Figure 15
  • the specific shortcut task card for which task the first quick task card is displayed may depend on whether the smart switch is turned on.
  • the first quick task card displayed when the embedded window pops up can be: the quick task card corresponding to the first task in the added column, or the shortcut task card that the user used last time.
  • the first quick task card displayed when the embedded window pops up can be: the shortcut task card corresponding to the task calculated based on the recommendation algorithm.
  • the recommendation algorithm can be related to the user's travel patterns, the current time, the geofence where the user is located, the user's usage habits, the user's occupation, etc. In a possible implementation, the user's travel patterns, user usage habits, user's occupation, etc. can be obtained based on the user's authorization in the user portrait.
  • the first quick task card displayed when the embedded window pops up can be the shortcut task card corresponding to the travel task.
  • the shortcut task card corresponding to task e of application B shown in (d) of FIG. 15 can be the shortcut task card corresponding to task e of application B shown in (d) of FIG. 15 .
  • the first quick task card displayed when the embedded window pops up can be the shortcut task card corresponding to the clock in task (not shown in the figure) out).
  • the first quick task card displayed when the embedded window pops up can be the quick task card corresponding to the payment task, for example
  • the shortcut task card corresponding to task a of application A or the shortcut task card corresponding to task c of application B one can also be determined based on the user's usage habits. For example, the user uses the shortcut task card corresponding to task a of application A.
  • the shortcut task card corresponding to task a of application A can be displayed first.
  • the shortcut task card corresponding to task c of application B can be displayed first. Display the shortcut task card corresponding to task c of application B.
  • the first quick task card displayed when the embedded window pops up can be the subway code or bus code.
  • the shortcut task card corresponding to the car code task (not shown in the figure).
  • the occupation marked by the user is a subway worker and the user frequently goes to the subway station, the user does not need to recommend the first shortcut task card corresponding to the subway code or bus code task when the user is at the subway station.
  • the first quick task card displayed when the embedded window pops up can be the code scanning type.
  • the shortcut task card corresponding to the task for example, the shortcut task card corresponding to task b of application A shown in Figure 15(a), or the shortcut task card corresponding to task d of application B shown in Figure 15(c) .
  • the shortcut task card corresponding to task b of application A or the shortcut task card corresponding to task d of application B one can also be determined based on the user's usage habits.
  • the user uses the shortcut task card corresponding to task b of application A.
  • the shortcut task card corresponding to task b of application A can be displayed first.
  • the shortcut task card corresponding to task d of application B can be displayed first. Display the shortcut task card corresponding to task d of application B.
  • the recommendation algorithm can also be implemented in other ways based on actual conditions, and is not specifically limited in the embodiments of this application. It should be noted that any data obtained in the embodiments of this application is obtained with authorization and compliance.
  • the embedded window can support the user to switch among the shortcut task cards for each task.
  • the user can swipe left and right or up and down in the embedded window to switch the quick task cards of adjacent tasks.
  • the quick task card corresponding to task b of application A shown in (a) of Figure 15 receives a swipe to the right operation
  • the quick task card corresponding to task c of application B as shown in (b) of Figure 15 can be entered.
  • the quick task card corresponding to task c of application B as shown in (b) of Figure 15 receives a swipe to the right operation
  • the quick task card corresponding to task d of application B as shown in (c) of Figure 15 can be entered.
  • the quick task card corresponding to task d of application B as shown in (c) of Figure 15 When the quick task card corresponding to task d of application B as shown in (c) of Figure 15 receives a swipe to the right operation, the quick task card corresponding to task e of application B as shown in (d) of Figure 15 can be entered. Of course, if the quick task card corresponding to task e of application B as shown in (d) of Figure 15 receives a swipe to the left operation, the quick task card corresponding to task d of application B as shown in (c) of Figure 15 can be entered, and so on.
  • the user can trigger any task identifier in the taskbar of the embedded window, so that the shortcut task card displayed in the embedded window is switched to the shortcut task card corresponding to the task identifier triggered by the user.
  • the shortcut task card displayed in the embedded window is switched to the shortcut task card corresponding to the task identifier triggered by the user.
  • a request for a task is received.
  • the shortcut task card corresponding to task c of application B can be entered as shown in (b) of Figure 15 .
  • each task in the embedded window can be associated with the interface of the application program to which the task belongs.
  • the embedded window can be associated with the interface of the application program to which the task is associated.
  • Interface pull up the running of the task module in the application, thereby providing the specific content displayed by the shortcut task card in the embedded window based on the application, and when a trigger is received in the shortcut task card, based on the application's own execution logic
  • the execution logic of the application itself is not specifically limited in this embodiment of the application.
  • Figure 16 is a schematic diagram illustrating the interface changes of the shortcut task card for payment tasks after completing the payment.
  • the embedded window can display the shortcut task card of the payment task a of application A based on the content provided by the module used to implement task a in application A.
  • the shortcut task card can include the following: For the barcode or QR code of payment or collection, after the electronic device determines that the barcode or QR code has been scanned to complete the payment or collection, the interface shown in Figure 16(b) can be entered based on application A, the quick task card The location can display prompt information to prompt payment completion.
  • the embedded window can be exited, and the electronic device is restored to the interface before the embedded window pops up. This can realize the instant exit of the embedded window, which not only provides The convenient operation does not interrupt the user's use of electronic equipment.
  • the shortcut task card of payment task a of application A can also include other payment methods and some hidden content, and this part of the content can also be triggered by the user.
  • Figure 17 shows a schematic diagram of the interface changes when hiding options in the shortcut task card of a payment task.
  • the embedded window displays the shortcut task card for payment task a of application A.
  • the shortcut task card also includes barcode, QR code, payment method a option, and some hidden options, as shown in Figure
  • the shortcut task card of task a shown in (a) of 17 can also be understood as the root interface.
  • the interface shown in Figure 17(b) can be entered, as shown in Figure 17(b) display, the barcode and QR code in the quick task card are moved up, and previously hidden options such as QR code collection, appreciation code and group payment are displayed in the quick task card.
  • the interface shown in Figure 17(c) can be entered, as shown in Figure 17(c).
  • the quick task card displays the group collection interface, and the group collection interface can display controls for selecting a chat group.
  • the interface shown in FIG. 17 (d) may be entered.
  • the quick task card displays an interface for selecting a chat
  • the interface for selecting a chat may display one or more recently forwarded groups and one or more recently chatted groups.
  • the user may select a group in the interface shown in FIG. 17 (d) to initiate a group payment to members of the group.
  • the quick task card can be First return to the previous level interface of the interface shown in (d) of Figure 17, and enter the interface shown in (e) of Figure 17.
  • the interface shown in (e) of Figure 17 may be the same as the interface shown in (c) of Figure 17, and will not be repeated here.
  • the shortcut task card can return to the upper level interface of the interface shown in Figure 17(e), and enter the interface as shown in Figure 17(e)
  • the interface shown in (f) of FIG. 17 may have the same content as the interface shown in (b) of FIG. 17 , and will not be described again.
  • the interface shown in Figure 17(b) is the root interface of the shortcut task card of task a, so returning is not supported. If the user's response to return is received in the interface shown in Figure 17(b) When the button is triggered, jitter or other animation effects can be added to the embedded window to remind the user that they can no longer execute and return.
  • FIG. 18 shows a schematic diagram of the interface change when the keyboard is displayed in the shortcut task card of a travel task.
  • the embedded window displays the shortcut task card for the travel task e of application B.
  • the shortcut task card includes the ride QR code, ride mode options (such as tools, subway, taxi and Cycling, etc.), travel discounts, route planning and ride recording options.
  • the interface shown in Figure 18(b) can be entered.
  • the embedded card The route planning interface is displayed.
  • the route planning interface can include options such as setting travel addresses and trip reminders.
  • the electronic device When receiving the trigger operation of the input box for inputting the address in the interface shown in Figure 18 (b), if the user has not set a travel address before, the electronic device can enter the interface shown in Figure 18 (c) Interface, as shown in (c) of Figure 18, the electronic device can pop up the keyboard, and at the same time, the height of the shortcut task card can be reduced, and the shortcut task card can be moved to the top of the electronic device, so that the user can use the keyboard to enter relevant information such as travel address. After the user finishes using the keyboard, the keyboard display can be further canceled and the display of the shortcut task card can be restored (not shown in the figure), which will not be described in detail. In this way, when the user's trigger for route planning is received again later, the planned route interface with the destination being the travel address can be displayed based on the travel address that the user has entered.
  • Figure 19 shows a schematic diagram of the interface changes when notification messages are received when using the shortcut task card.
  • the quick task card of payment task a of application A is displayed in the embedded window. If notification message 1 is received at this time, you can enter the interface shown in (b) of Figure 19.
  • the embedded window continues to be displayed as shown in (b) of Figure 19.
  • Message 1 can be displayed in the upper layer of the embedded window in the form of a banner or capsule.
  • the electronic device continues to display the interface including the embedded window as shown in FIG. 19 (a).
  • the user wants to view the notification message again, the user can perform a pull-down operation from the top of the screen, etc., to enter the message notification interface as shown in FIG. 19 (d).
  • the message notification interface can include multiple messages, and the embedded window can also be displayed in the lower layer of the message notification interface. If the message notification interface is swiped up by the user, the electronic device can continue to display the embedded window as shown in FIG. 19 (a). If a trigger operation for opening message 1 is received among multiple messages, the interface of message 1 as shown in (c) of FIG. 19 may also be entered.
  • the electronic device receives an incoming call when the embedded window is displayed, the incoming call contact information, answer control and hang up control can also be displayed in the upper layer of the embedded window in capsule form (not shown in the figure), If the user triggers the hangup control, the electronic device hangs up the call and the embedded window can remain displayed. If the user triggers the answer control and the electronic device answers the call, the embedded window can remain displayed and the call interface is displayed in a capsule form, or the embedded window can be canceled and the electronic device displays the call interface.
  • the shortcut task card can also support providing other user interaction interfaces, implement other tasks, or use other interfaces. To achieve the above interaction, the above examples do not necessarily limit the use of shortcut task cards.
  • the electronic device when the electronic device displays the embedded window, if the electronic device detects that the embedded window does not receive a trigger operation within a preset time, the electronic device can close the embedded window, and the preset time can be based on actual Application settings, for example, can be set to a shorter time to reduce the interference of embedded windows on applications running in the electronic device.
  • not receiving a trigger operation within the preset time may include: not receiving a trigger operation within the preset time from when the embedded window starts to pop up, or pre-set operation after completing interactive processes such as scanning QR codes in the embedded window. There is no trigger operation received within the set time.
  • the electronic device can restore the interface displayed before the embedded window popped up.
  • the interface that the electronic device can display before the pop-up embedded window may include: black screen, idle screen, lock screen, desktop, interface of any application, etc.
  • Figure 20 shows an interface schematic diagram of popping up an embedded window from the a interface of application A. After executing the function of task a of application A in the embedded window, closing the embedded window and returning to the a interface of application A. .
  • the electronic device can display the a interface of application A.
  • the electronic device detects a double-click operation on the back of the electronic device, it can enter the interface shown in Figure 20 (b), as shown in Figure 20 (b)
  • the electronic device overlays and displays an embedded window on the upper layer of interface a of application A.
  • the embedded window includes a shortcut task card for payment task a of application A.
  • the shortcut task card of task a can include payment. code, when the electronic device detects that the payment code is scanned and the payment is completed, the interface shown in Figure 20(c) can be displayed. As shown in Figure 20(c), the shortcut task card of task a prompts that the payment has been completed.
  • the electronic device can close the embedded window after the preset time, enter the interface shown in (d) of Figure 20, and resume displaying the a interface of application A.
  • the interface shown in (d) of Figure 20 can be the same as that of Figure 20
  • the interface content shown in (a) is the same.
  • the electronic device can also start from Figure 20 (b) ) to enter the interface shown in (d) of Figure 20, and restore the a interface of application A.
  • the electronic device when the electronic device closes the embedded window, the electronic device can resume displaying interface a of the application interface.
  • the embedded window in this embodiment of the present application is a newly created task and will not cause any interruption or impact on the tasks of other applications.
  • the electronic device can also close the embedded window based on user triggering.
  • the electronic device when the electronic device receives the user's message from the screen of the electronic device, When the bottom of the screen is slid up and held, the electronic device does not trigger the display of recent tasks and triggers the closing of the embedded window. Or, when the user slides in from the side of the electronic device screen and holds the operation, the electronic device does not trigger the sidebar and triggers the closing of the embedded window.
  • a control for displaying recent tasks can be provided in the embedded window.
  • the embedded window can be closed and the recent tasks can be displayed.
  • the electronic device displays an embedded window.
  • the embedded window includes a shortcut task card for task a of application A, and a control for displaying recent tasks.
  • the embedded window can be closed and the interface shown in (b) of Figure 21 can be entered.
  • the floating window of the recently run task can be displayed in the interface. If a trigger for the recently run task 1 is received in the interface shown in (b) of Figure 21, you can enter the interface as shown in the figure.
  • the electronic device can close the embedded window and display the desktop when receiving the user's operation to trigger the control for displaying the recent task in the interface of Figure 21(a) .
  • the embedded window may also provide a control for closing the embedded window (not shown in the figure). After receiving the user's operation on the control for closing the embedded window in the embedded window, When the electronic device pops up, the electronic device can restore the interface displayed before the embedded window pops up.
  • the electronic device can close the embedded window and restore the interface displayed before the embedded window pops up when receiving a preset operation such as pressing operation, touching operation or sliding operation on some areas in the embedded window.
  • the electronic device when receiving a tapping operation, voice control, gesture control, etc. for closing the embedded window, the electronic device can close the embedded window and restore the interface displayed before the embedded window pops up.
  • the electronic device may include functions or physical buttons such as a return button, a desktop button, a lock screen button, etc.
  • a return button When the electronic device receives the trigger of the return button, it closes the embedded window and restores the interface displayed before the embedded window pops up; the electronic device
  • the device When the device receives the triggering of the desktop button, it closes the embedded window and displays the desktop; when the electronic device receives the triggering of the lock screen button, it closes the embedded window and displays the lock screen interface, etc.
  • S2201 Display the first interface, which includes page content corresponding to the first task of the first application.
  • the first interface in this embodiment of the present application may be the interface of any application displayed by the electronic device.
  • the first interface may correspond to (a) of Figure 11, (a) of Figure 12 or (a) of Figure 13 displayed interface.
  • the first application may be an application being displayed by the electronic device.
  • the first application may be any application installed in the electronic device, such as a desktop application, a video application, or a game application.
  • the first task of the first application may be any task of the first application, and the page content corresponding to the first task may be provided by the first application.
  • the embodiment of the present application does not limit the specific content displayed on the first interface.
  • the first preset operation may be a double-click operation on the back of the electronic device. This operation method is more convenient and easy for users to implement.
  • the first preset operation can also be any alternative to the double-click back operation described in the above embodiment. This will not be described in detail.
  • S2203 In response to the first preset operation, an embedded window is displayed on the upper layer of the first interface without interrupting the execution of the first task.
  • the embedded window includes page content corresponding to the second task of the second application.
  • the embedded window in the embodiment of the present application may be a window provided by the system of the electronic device that is independent of the first application and the second application.
  • the functions and possible names of the embedded window can be referred to the description of the aforementioned embodiments.
  • the specific content of the embedded window can be referred to Figure 9 (d), Figure 10 (c), Figure 11 (b), Figure 12 ( The interfaces shown in b), (b) of Figure 13, (b) of Figure 14, or (a), (b), (c), (d) of Figure 15, etc. will not be described again here.
  • the operation of the embedded window may not affect the execution of the first task.
  • the first application includes an application that supports playing video or audio content
  • the electronic device while the electronic device displays the embedded window, the electronic device keeps the first application playing the video or audio, so that the application originally running on the electronic device can continue to run. run.
  • the second application may be the same application as the first application, or it may be an application different from the first application.
  • the second task of the second application may be any application in the second application.
  • the embodiment of this application applies to the second application and The second tasks are not specifically limited.
  • the electronic device can create a new task for the second application corresponding to the second task in the embedded window, so that the second application can provide the embedded window with page content corresponding to the second task based on the newly created task. , without requiring the electronic device to jump to the second application.
  • the second task of the second application is run in the embedded window, and the second application in the electronic device is also running in the background, based on the method of the embodiment of the present application, when the electronic device exits the embedded window, the second task is displayed.
  • the second preset operation may be any operation for exiting the embedded window.
  • the second preset operation may be any operation for exiting the embedded window.
  • FIG. 20 refers to FIG. 20, FIG. 21 or any operation for exiting the embedded window recorded in the above embodiments. .
  • the electronic device can resume displaying the page content of the application before the embedded window pops up, so that the display of the embedded window does not interfere with the application originally running in the electronic device.
  • the embedded window can be displayed conveniently based on the user's operation, and some tasks can be provided for the user in the embedded window, so that the user can conveniently use the tasks in the embedded window, and when the embedded window is displayed It does not interrupt the running applications in the electronic device, so that the running applications in the electronic device have better continuity, reduces the interruption to the user's use of the application, and improves the user experience.
  • the page content corresponding to the second task of the second application is displayed in the first area of the embedded window.
  • the embedded window also includes a second area.
  • the second area of the embedded window also displays: a first icon corresponding to the second task, and a second icon corresponding to the third task; wherein the first icon is in a selected state, and the second icon is in an unselected state.
  • the first area can be understood as an area that displays shortcut task cards (that is, the specific page content corresponding to the task), and the second area can be understood as an area that displays multiple task identifiers.
  • Multiple task identifiers can be customized by the user, or they can be default or recommended by the electronic device.
  • the task identifier can be a task icon, and the shortcut is being displayed.
  • the tasks of the task card can be in the selected state in the second area, and other task identifiers that do not display the shortcut task card can be in the unselected state.
  • the selected task icon can be distinguished from the unselected icon in terms of color, font, animation, etc.
  • the content displayed in the first area and the second area of the embedded window can be referred to Figure 9(d), Figure 10(c), Figure 11(b), Figure 12(b), and Figure 13(b) , the interfaces shown in (b) of Figure 14 or (a), (b), (c), (d) of Figure 15, etc. will not be described again here.
  • the method before receiving the second preset operation, further includes: receiving a third preset operation for switching the second task to the third task in the embedded window; responding to the third preset operation. Operation, the interface content corresponding to the third task is displayed in the first area of the embedded window, and the first icon and the second icon are displayed in the second area of the embedded window; wherein, the first icon is in an unselected state, and the second icon is displayed in the second area of the embedded window. The icon is selected.
  • the third task can be: a task of the first application, or a task of the second application, or a task of the third application.
  • the embedded window can display multiple tasks of one application, or multiple tasks of multiple applications, so that the user can use different tasks of different applications based on the embedded window, which increases the richness and convenience of use.
  • the third preset operation for switching the second task to the third task may be a sliding operation or an operation of triggering a task icon in the second area.
  • FIG. 15 For details, please refer to the corresponding description of FIG. 15 , which will not be elaborated here.
  • the method after displaying the interface content corresponding to the third task in the first area of the embedded window, the method also includes: receiving a swipe-up operation in the first area of the embedded window; displaying a first button in the first area of the embedded window in response to the swipe-up operation; and when receiving a trigger operation on the first button, displaying the page content associated with the third task in the first area of the embedded window.
  • the embedded window can support the display of part of the page of the task.
  • the hidden content that is not displayed on the page can be displayed based on the upward sliding operation.
  • the button in the embedded window can also support the downward movement of the content displayed in the embedded window.
  • One-level or multi-level page jumps can enrich the content of the embedded window and enable users to implement more services based on the embedded window.
  • the first button may correspond to "Group Collection" in Figure 17 , which will not be described again here.
  • the first button includes a second button in the page content associated with the third task
  • the method also includes: when receiving a trigger operation for the second button, restoring the first area of the embedded window. Display the interface content corresponding to the first task.
  • the second button may refer to the return button
  • the embedded window may also support returning to the upper-level interface based on the triggering of the return button.
  • the page content corresponding to the second task of the second application includes a third button
  • the method further includes: when receiving a trigger for the third button, displaying an input box in the embedded window; when receiving When the input box is triggered, the keyboard is displayed; the input received on the keyboard is displayed in the input box.
  • the embedded window can support keyboard input, which allows the user to implement convenient input in the embedded window.
  • keyboard input which allows the user to implement convenient input in the embedded window.
  • the third button may correspond to the input box in Figure 18, which will not be described again here.
  • the method further includes: receiving a notification message; continuing to display the embedded window, and displaying the notification message in the form of a capsule or banner on the upper layer of the embedded window.
  • the embedded window can continue to be displayed, and the notification message is displayed in the form of a capsule or banner on the upper layer of the embedded window. This allows the user to You can also see notification messages instantly.
  • the embedded window can continue to be displayed, and the notification message is displayed in the form of a capsule or banner on the upper layer of the embedded window.
  • the method also displays a second interface, the second interface including the first switch; when a trigger operation for turning on the first switch is received, a third interface is displayed, the third interface includes the added column and the unused column.
  • the added column includes the identification of one or more tasks that have been added by the user, and the unadded column includes the identification of one or more tasks provided by the electronic device that have not been added by the user;
  • When deleting the first target task in the added column cancel the display of the identification of the first target task in the added column, and display the identification of the first target task in the unadded column; or, when receiving a request for adding
  • the display of the identifier of the second target task in the unadded column is cancelled, and the identifier of the second target task is displayed in the added column.
  • the second interface may be an interface that displays the main switch, and may correspond to (a) of FIG. 6 , for example.
  • the third interface may be an interface for setting tasks, and may correspond to (b) of FIG. 6 , for example.
  • the first target task can be any task in the added column, and the second target task can be any application installed in the electronic device in the unadded column.
  • the specific setting process can refer to the description of Figure 6 or Figure 7, here No further details will be given. This allows users to easily customize the tasks they need.
  • the unadded column includes an identification of the third target task, and the application corresponding to the third target task is not installed in the electronic device.
  • the method also includes: when receiving a third request for adding the third target task in the unadded column. During the operation of the target task, prompt information is displayed, and the prompt information is used to prompt the installation of the application corresponding to the third target task.
  • the electronic device when the user selects a task for an application that is not installed on the electronic device, the electronic device can prompt the user to install the application. This allows the user to customize a rich set of tasks, not limited to applications that have been installed on the electronic device.
  • the third target task may correspond to "task f" of FIG. 6 , for example.
  • the third interface further includes a second switch
  • the method further includes: when receiving a trigger operation for turning on the second switch, displaying a recommendation logo in a blank area of the added column.
  • the second switch in the embodiment of the present application may correspond to the smart recommendation switch in the above embodiment.
  • the smart recommendation switch When the smart recommendation switch is turned on, if the amount of tasks in the added column does not reach the upper limit of the amount of tasks that can be displayed, it can be displayed in the added column.
  • Recommendation logo, the recommendation logo can be a virtual frame and/or text, etc. For details, please refer to the interface in Figure 7, which will not be described in detail here.
  • the smart recommendation switch After the smart recommendation switch is turned on, if the user triggers the electronic device to display an embedded window, the task corresponding to the first shortcut task card displayed in the embedded window may be obtained based on the recommendation algorithm.
  • an embedded window is displayed on the upper layer of the first interface, and the embedded window includes the page content corresponding to the second task of the second application, including: in response to the first preset operation, when determining When the second switch is in the on state, the second task of the second application is determined based on the recommendation algorithm.
  • the recommendation algorithm is related to one or more of the following: time information, the geofence where the user is located, or user-related information in the user portrait. ; Display an embedded window on the upper layer of the first interface, and the embedded window includes a page corresponding to the second task of the second application.
  • determining the second task of the second application based on the recommendation algorithm includes: when it is determined based on the recommendation algorithm that the user will travel, determining the second task of the second application as a travel-type task; or, when it is determined based on the recommendation algorithm that the user will check in , determine that the second task of the second application is a check-in task; or, when it is determined based on the recommendation algorithm that the user will pay, determine that the second task of the second application is a payment task; or, when it is determined based on the recommendation algorithm that the user will take a ride At this time, it is determined that the second task of the second application is a ride code type task.
  • the electronic device can recommend appropriate shortcut task cards to the user based on the scene the user is in, improving the user experience.
  • the display screen of the electronic device when the electronic device receives the first preset operation in a black screen or screen-inactive state, the display screen of the electronic device is lit; a lock screen interface is displayed, and the lower layer of the lock screen interface includes an embedded window; When the correct unlock input is received in the lock screen, an embedded window is displayed.
  • the electronic device can display an embedded window from a black screen or screen-off state based on a simple trigger by the user.
  • a simple trigger by the user please refer to the description in Figure 9, which will not be described again here.
  • the method further includes: when the electronic device receives the first preset operation in a light-screen locked state, displaying a lock screen interface, and the lower layer of the lock screen interface includes an embedded window; in the lock screen interface When correct unlock input is received, the embedded window is displayed.
  • the electronic device can display an embedded window from the screen-on/lock state based on a simple trigger by the user.
  • a simple trigger by the user please refer to the description in Figure 10, which will not be repeated here.
  • the window display method of the embodiment of the present application has been described above, and the device for performing the above window display method provided by the embodiment of the present application will be described below. Those skilled in the art can understand that methods and devices can be combined and referenced with each other, and the relevant devices provided in the embodiments of the present application can perform the steps in the above window display method.
  • the device for realizing window display includes hardware structures and/or software modules corresponding to each function.
  • the method steps of each example described in conjunction with the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • Embodiments of the present application can divide the device that implements the window display method into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • Integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • FIG 23 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 2300 includes one or more (including two) processors 2301, a communication line 2302, a communication interface 2303 and a memory 2304.
  • memory 2304 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
  • the method described in the above embodiment of the present application can be applied to the processor 2301 or implemented by the processor 2301.
  • the processor 2301 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 2301.
  • the above-mentioned processor 2301 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (ASIC), or an off-the-shelf programmable gate.
  • the processor 2301 can implement or execute the various processing-related methods and steps disclosed in the embodiments of this application. and logic block diagram.
  • the steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or It is executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium mature in this field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 2304.
  • the processor 2301 reads the information in the memory 2304 and completes the steps of the above method in combination with its hardware.
  • the processor 2301, the memory 2304 and the communication interface 2303 can communicate with each other through the communication line 2302.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • An embodiment of the present application also provides a computer program product including one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • a wired link e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be Any available media that a computer can store or is a data storage device such as a server, data center, or other integrated server that includes one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (such as solid state drive (solid state disk, SSD)), etc.
  • Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another.
  • the storage media can be any target media that can be accessed by the computer.
  • the computer-readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk memory or other disk storage device.
  • any connection line is also properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • Disk and optical disk include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing device produce a use A device for implementing the functions specified in one process or processes of the flowchart and/or one block or blocks of the block diagram.

Abstract

本申请实施例提供了一种窗口显示方法和相关装置,涉及终端技术领域。电子设备可以在接收到用户的预设操作后,显示独立的嵌入式窗口,该嵌入式窗口可以包括某应用程序的功能页面,使得用户可以便捷的使用应用程序的功能,嵌入式窗口独立于电子设备中安装的任意应用程序,因此嵌入式窗口的显示和交互,不会对电子设备中运行的应用程序造成中断。

Description

窗口显示方法和相关装置
本申请要求于2022年09月22日提交中国国家知识产权局、申请号为202211158219.5、申请名称为“窗口显示方法和相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种窗口显示方法和相关装置。
背景技术
随着终端技术的发展,电子设备能够支持种类多样的应用程序的运行。
一些实现中,对于电子设备中加载的应用程序,如果用户要使用应用程序的某一功能,需要用户在电子设备中点击应用程序的图标,应用程序的启动后,用户在应用程序的各级页面中一级一级找到该功能,然后才能使用该功能。
但是,上述实现中,用户使用应用程序时的操作较繁琐,影响用户体验。
发明内容
本申请实施例提供一种窗口显示方法和相关装置,简化了打开应用程序的功能的方式。
第一方面,本申请实施例提供一种窗口显示方法,应用于电子设备,包括:
显示第一界面,第一界面中包括第一应用的第一任务对应的页面内容;接收到第一预设操作;响应于第一预设操作,在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容;接收到第二预设操作;响应于第二预设操作,取消嵌入式窗口的显示,恢复显示第一应用的第一任务对应的页面内容。
这样,可以基于用户操作便捷的显示嵌入式窗口,在嵌入式窗口中为用户提供一些任务,使得用户可以方便的使用嵌入式窗口中的任务,且显示嵌入式窗口时不中断电子设备中已运行的应用,使得电子设备中已运行的应用有较好的连续性,减少对用户使用应用的打扰,提示用户体验。
在一种可能的实现方式中,第二应用的第二任务对应的页面内容显示在嵌入式窗口的第一区域,嵌入式窗口还包括第二区域,在第一界面的上层,嵌入式窗口的第二区域还显示有:第二任务对应的第一图标,第三任务对应的第二图标;其中,第一图标为选中状态,第二图标为未选中状态。这样,嵌入式窗口中可以提供多个任务,使得用户可以便捷的使用多个应用。正在显示页面内容的任务在第二区域为选中状态,其他没有显示页面内容的任务标识可以为未选中状态,这样可以便于用户了解正在使用的任务的名称。
在一种可能的实现方式中,接收到第二预设操作之前,还包括:在嵌入式窗口中接收到用于将第二任务切换到第三任务的第三预设操作;响应于第三预设操作,在嵌入式窗口的的第一区域显示第三任务对应的界面内容,在嵌入式窗口的的第二区域显示第一图标以及第二图标;其中,第一图标为未选中状态,第二图标为选中状态。这样,用户可以在嵌 入式窗口中实现对多个任务之间的灵活切换,增加了用户使用多个任务的便捷性。
在一种可能的实现方式中,在嵌入式窗口的第一区域显示第三任务对应的界面内容之后,方法还包括:在嵌入式窗口的第一区域接收到上滑操作;响应于上滑操作,在嵌入式窗口的第一区域显示第一按钮;当接收到对第一按钮的触发操作时,在嵌入式窗口的第一区域显示第一按钮在第三任务所关联的页面内容。这样可以丰富嵌入式窗口的内容,使得用户基于嵌入式窗口能实现更多的服务。
在一种可能的实现方式中,第一按钮在第三任务所关联的页面内容中包括第二按钮,方法还包括:当接收到对第二按钮的触发操作时,在嵌入式窗口的第一区域恢复显示第一任务对应的界面内容。这样,用户还可以在嵌入式窗口中便捷的实现返回上级页面。
在一种可能的实现方式中,第三任务为:第一应用的任务,或者第二应用的任务,或者第三应用的任务。这样,可以使得用户能基于嵌入式窗口实现对不同应用不同任务的使用,增加了使用的丰富和便捷性。
在一种可能的实现方式中,第二应用的第二任务对应的页面内容中包括第三按钮,方法还包括:当接收到对第三按钮的触发时,在嵌入式窗口显示输入框;当接收到对输入框的触发时,显示键盘;将键盘中接收到的输入内容显示在输入框。这样可以使得用户在嵌入式窗口能实现便捷的输入。
在一种可能的实现方式中,在第一界面的上层显示嵌入式窗口之后,还包括:接收到通知消息;继续显示嵌入式窗口,且在嵌入式窗口的上层以胶囊或横幅形式显示通知消息。这样可以使得用户在嵌入式窗口时,也能即时看到通知消息。
在一种可能的实现方式中,方法还包括:显示第二界面,第二界面包括第一开关;当接收到用于开启第一开关的触发操作时,显示第三界面,第三界面包括已添加栏和未添加栏,已添加栏中包括用户自定义添加的一个或多个任务的标识,未添加栏中包括电子设备提供的未被用户添加的一个或多个任务的标识;当接收到用于将已添加栏中的第一目标任务删除的操作时,在已添加栏中取消第一目标任务的标识的显示,以及在未添加栏中显示第一目标任务的标识;或者,当接收到用于添加未添加栏中的第二目标任务的操作时,在未添加栏中取消第二目标任务的标识的显示,以及在已添加栏中显示第二目标任务的标识。这样可以支持用户便捷的自定义需要的任务。
在一种可能的实现方式中,未添加栏中包括第三目标任务的标识,第三目标任务对应的应用在电子设备中未安装,方法还包括:当接收到用于添加未添加栏中的第三目标任务的操作时,显示提示信息,提示信息用于提示安装第三目标任务对应的应用。这样可以使得用户能够自定义丰富的任务,不局限于电子设备中已经安装的应用。
在一种可能的实现方式中,第三界面还包括第二开关,方法还包括:当接收到用于开启第二开关的触发操作时,在已添加栏的空白区域显示推荐标识。这样,可以支持电子设备结合用户所处的场景为用户推荐合适的任务。
在一种可能的实现方式中,应于第一预设操作,在第一界面的上层显示嵌入式窗口,嵌入式窗口包括第二应用的第二任务对应的页面内容,包括:响应于第一预设操作,当确定第二开关为开启状态时,基于推荐算法确定第二应用的第二任务,推荐算法与下述的一项或多项有关:时间信息、用户所处的地理围栏或用户画像中的用户相关信息;在第一界面的上层显示嵌入式窗口,嵌入式窗口中包括第二应用的第二任务对应的页面。这样,电 子设备可以基于用户所处的场景,为用户推荐合适的快捷任务卡片,提升用户体验。
在一种可能的实现方式中,基于推荐算法确定第二应用的第二任务,包括:当基于推荐算法确定用户将出行时,确定第二应用的第二任务为出行类任务;或者,当基于推荐算法确定用户将打卡时,确定第二应用的第二任务为打卡类任务;或者,当基于推荐算法确定用户将支付时,确定第二应用的第二任务为支付类任务;或者,当基于推荐算法确定用户将乘车时,确定第二应用的第二任务为乘车码类任务。这样,电子设备可以基于用户所处的场景,为用户推荐合适的快捷任务卡片,提升用户体验。
在一种可能的实现方式中,第一应用包括支持播放视频或音频内容的应用,在电子设备显示嵌入式窗口的过程中,电子设备保持第一应用播放视频或音频。这样,可以使得电子设备原本运行的应用能持续运行。
在一种可能的实现方式中,方法还包括:当电子设备在黑屏或息屏状态下接收到第一预设操作时,点亮电子设备的显示屏;显示锁屏界面,锁屏界面的下层包括嵌入式窗口;在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。这样,电子设备可以从黑屏或息屏状态,基于用户的简单触发显示嵌入式窗口。
在一种可能的实现方式中,方法还包括:当电子设备在亮屏锁屏状态下接收到第一预设操作时,显示锁屏界面,锁屏界面的下层包括嵌入式窗口;在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。这样,电子设备可以从亮屏锁屏状态,基于用户的简单触发显示嵌入式窗口。
在一种可能的实现方式中,响应于第一预设操作,在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容,包括:响应于第一预设操作,为第二应用创建新的任务task,并在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容。这样,使得第二应用可以基于新创建的task,为嵌入式窗口提供第二任务对应的页面内容,而不需要电子设备跳转到第二应用,使得第二应用的运行也可以有较好的连续性。
在一种可能的实现方式中,接收到第一预设操作,包括:接收到对电子设备的背部双击的操作。这样的操作方式较为便捷,易于用户实现。
第二方面,本申请实施例提供一种窗口显示装置,该窗口显示装置可以是电子设备,也可以是电子设备内的芯片或者芯片系统。该窗口显示装置可以包括显示单元和处理单元。当该窗口显示装置是电子设备时,该处显示单元可以是显示屏。该显示单元用于执行显示的步骤,以使该电子设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种窗口显示方法。当该窗口显示装置是电子设备时,该处理单元可以是处理器。该窗口显示装置还可以包括存储单元,该存储单元可以是存储器。该存储单元用于存储指令,该处理单元执行该存储单元所存储的指令,以使该电子设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种窗口显示方法。当该窗口显示装置是电子设备内的芯片或者芯片系统时,该处理单元可以是处理器。该处理单元执行存储单元所存储的指令,以使该电子设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种窗口显示方法。该存储单元可以是该芯片内的存储单元(例如,寄存器、缓存等),也可以是该电子设备内的位于该芯片外部的存储单元(例如,只读存储器、随机存取存储器等)。
示例性的,显示单元,用于显示第一界面,第一界面中包括第一应用的第一任务对应 的页面内容;处理单元,用于接收到第一预设操作;显示单元,还用于响应于第一预设操作,在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容;处理单元,还用于接收到第二预设操作;显示单元,还用于响应于第二预设操作,取消嵌入式窗口的显示,恢复显示第一应用的第一任务对应的页面内容。
在一种可能的实现方式中,第二应用的第二任务对应的页面内容显示在嵌入式窗口的第一区域,嵌入式窗口还包括第二区域,在第一界面的上层,嵌入式窗口的第二区域还显示有:第二任务对应的第一图标,第三任务对应的第二图标;其中,第一图标为选中状态,第二图标为未选中状态。
在一种可能的实现方式中,处理单元,还用于在嵌入式窗口中接收到用于将第二任务切换到第三任务的第三预设操作;显示单元,还用于响应于第三预设操作,在嵌入式窗口的的第一区域显示第三任务对应的界面内容,在嵌入式窗口的的第二区域显示第一图标以及第二图标;其中,第一图标为未选中状态,第二图标为选中状态。
在一种可能的实现方式中,处理单元,还用于在嵌入式窗口的第一区域接收到上滑操作;显示单元,还用于响应于上滑操作,在嵌入式窗口的第一区域显示第一按钮;显示单元,还用于当接收到对第一按钮的触发操作时,在嵌入式窗口的第一区域显示第一按钮在第三任务所关联的页面内容。
在一种可能的实现方式中,第一按钮在第三任务所关联的页面内容中包括第二按钮,显示单元,还用于当接收到对第二按钮的触发操作时,在嵌入式窗口的第一区域恢复显示第一任务对应的界面内容。
在一种可能的实现方式中,第三任务为:第一应用的任务,或者第二应用的任务,或者第三应用的任务。
在一种可能的实现方式中,第二应用的第二任务对应的页面内容中包括第三按钮,显示单元,还用于当接收到对第三按钮的触发时,在嵌入式窗口显示输入框;当接收到对输入框的触发时,显示键盘;将键盘中接收到的输入内容显示在输入框。
在一种可能的实现方式中,显示单元,还用于接收到通知消息时继续显示嵌入式窗口,且在嵌入式窗口的上层以胶囊或横幅形式显示通知消息。
在一种可能的实现方式中,显示单元,还用于显示第二界面,第二界面包括第一开关;当接收到用于开启第一开关的触发操作时,显示第三界面,第三界面包括已添加栏和未添加栏,已添加栏中包括用户自定义添加的一个或多个任务的标识,未添加栏中包括电子设备提供的未被用户添加的一个或多个任务的标识;当接收到用于将已添加栏中的第一目标任务删除的操作时,在已添加栏中取消第一目标任务的标识的显示,以及在未添加栏中显示第一目标任务的标识;或者,当接收到用于添加未添加栏中的第二目标任务的操作时,在未添加栏中取消第二目标任务的标识的显示,以及在已添加栏中显示第二目标任务的标识。
在一种可能的实现方式中,未添加栏中包括第三目标任务的标识,第三目标任务对应的应用在电子设备中未安装,显示单元,还用于当接收到用于添加未添加栏中的第三目标任务的操作时,显示提示信息,提示信息用于提示安装第三目标任务对应的应用。
在一种可能的实现方式中,第三界面还包括第二开关,显示单元,还用于当接收到用 于开启第二开关的触发操作时,在已添加栏的空白区域显示推荐标识。
在一种可能的实现方式中,处理单元,具体用于响应于第一预设操作,当确定第二开关为开启状态时,基于推荐算法确定第二应用的第二任务,推荐算法与下述的一项或多项有关:时间信息、用户所处的地理围栏或用户画像中的用户相关信息;在第一界面的上层显示嵌入式窗口,嵌入式窗口中包括第二应用的第二任务对应的页面。
在一种可能的实现方式中,处理单元,具体用于当基于推荐算法确定用户将出行时,确定第二应用的第二任务为出行类任务;或者,当基于推荐算法确定用户将打卡时,确定第二应用的第二任务为打卡类任务;或者,当基于推荐算法确定用户将支付时,确定第二应用的第二任务为支付类任务;或者,当基于推荐算法确定用户将乘车时,确定第二应用的第二任务为乘车码类任务。
在一种可能的实现方式中,第一应用包括支持播放视频或音频内容的应用,在电子设备显示嵌入式窗口的过程中,电子设备保持第一应用播放视频或音频。
在一种可能的实现方式中,处理单元,还用于当电子设备在黑屏或息屏状态下接收到第一预设操作时,点亮电子设备的显示屏;显示单元,还用于显示锁屏界面,锁屏界面的下层包括嵌入式窗口;显示单元,还用于在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。
在一种可能的实现方式中,显示单元,还用于当电子设备在亮屏锁屏状态下接收到第一预设操作时,显示锁屏界面,锁屏界面的下层包括嵌入式窗口;显示单元,还用于在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。
在一种可能的实现方式中,处理单元,还用于响应于第一预设操作,为第二应用创建新的任务task,显示单元,还用于在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容。
在一种可能的实现方式中,处理单元,具体用于接收到对电子设备的背部双击的操作。
第三方面,本申请实施例提供一种电子设备,包括处理器和存储器,存储器用于存储代码指令,处理器用于运行代码指令,以执行第一方面或第一方面的任意一种可能的实现方式中描述的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行第一方面或第一方面的任意一种可能的实现方式中描述的方法。
第五方面,本申请实施例提供一种包括计算机程序的计算机程序产品,当计算机程序在计算机上运行时,使得计算机执行第一方面或第一方面的任意一种可能的实现方式中描述的方法。
第六方面,本申请提供一种芯片或者芯片系统,该芯片或者芯片系统包括至少一个处理器和通信接口,通信接口和至少一个处理器通过线路互联,至少一个处理器用于运行计算机程序或指令,以执行第一方面或第一方面的任意一种可能的实现方式中描述的方法。其中,芯片中的通信接口可以为输入/输出接口、管脚或电路等。
在一种可能的实现中,本申请中上述描述的芯片或者芯片系统还包括至少一个存储器,该至少一个存储器中存储有指令。该存储器可以为芯片内部的存储单元,例如,寄存器、缓存等,也可以是该芯片的存储单元(例如,只读存储器、随机存取存储器等)。
应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1为本申请实施例提供的电子设备100的结构示意图;
图2为本申请实施例提供的电子设备100的软件结构示意图;
图3为本申请实施例提供的接口示意图;
图4为本申请实施例提供的软硬件框架示意图;
图5为本申请实施例提供的模块交互示意图;
图6为本申请实施例提供的一种设置任务的界面示意图;
图7为本申请实施例提供的另一种设置任务的界面示意图;
图8为本申请实施例提供的一种调整任务顺序的界面示意图;
图9为本申请实施例提供的一种从黑屏到显示嵌入式窗口的界面示意图;
图10为本申请实施例提供的一种从锁屏到显示嵌入式窗口的界面示意图;
图11为本申请实施例提供的一种从桌面到显示嵌入式窗口的界面示意图;
图12为本申请实施例提供的一种从视频应用屏到显示嵌入式窗口的界面示意图;
图13为本申请实施例提供的一种从应用A到显示嵌入式窗口的界面示意图;
图14为本申请实施例提供的一种从冷启动或加载失败到显示嵌入式窗口的界面示意图;
图15为本申请实施例提供的一种嵌入式窗口显示的几类可能任务的界面示意图;
图16为本申请实施例提供的一种嵌入式窗口显示支付类任务的界面示意图;
图17为本申请实施例提供的另一种嵌入式窗口显示支付类任务的界面示意图;
图18为本申请实施例提供的一种嵌入式窗口显示出行类任务的界面示意图;
图19为本申请实施例提供的一种嵌入式窗口显示时接收到通知消息的界面示意图;
图20为本申请实施例提供的一种退出嵌入式窗口的界面示意图;
图21为本申请实施例提供的另一种退出嵌入式窗口的界面示意图;
图22为本申请实施例提供的一种窗口显示流程示意图;
图23为本申请实施例提供的芯片的硬件结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,以下,对本申请实施例中所涉及的部分术语和技术进行简单介绍:
1、Launcher:Launcher可以理解为桌面应用程序(application,APP),是使用安卓(Android)系统的电子设备的应用的入口,可以管理应用,可以提供窗口等功能。
2、SystemUI:可以称为系统用户界面,在Android系统中SystemUI是以应用的形式运行的。它为系统提供了基础的显示界面。比如:屏幕顶端的状态栏、屏幕底部的导航栏、下拉界面的快速设置栏、通知栏、锁屏界面,音量调节对话框、截屏显示界面等界面。
3、快捷任务卡片:可以理解为窗口中显示的应用程序某功能的页面,窗口中支持多个应用程序的功能页面的切换时,可以称为窗口中支持多个快捷任务卡片的切换。快捷任 务卡片的显示可以是Launcher负责管理的,快捷任务卡片的具体服务内容可以是SystemUI提供的。
需要说明的是,本申请实施例的快捷任务卡片并不限定为与负一屏或主界面中的卡片相同的含义,而可以理解为一种为了便于描述的自定义称呼,可能的实现中,快捷任务卡片也可能被称为下述的任一种:快捷服务卡片、快捷功能卡片、任务卡片、快捷卡片、卡片、快捷功能页面、快捷功能界面、功能页面、功能界面等,本申请实施例不作具体限定。
4、其他术语
在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一芯片和第二芯片仅仅是为了区分不同的芯片,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a--c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
5、电子设备
本申请实施例的电子设备可以包括具有图像处理功能的手持式设备、车载设备等。例如,一些电子设备为:手机(mobile phone)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。
作为示例而非限定,在本申请实施例中,该电子设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更 是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。
此外,在本申请实施例中,电子设备还可以是物联网(internet of things,IoT)系统中的终端设备,IoT是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。
本申请实施例中的电子设备也可以称为:终端设备、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。
在本申请实施例中,电子设备或各个网络设备包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。该硬件层包括中央处理器(central processing unit,CPU)、内存管理单元(memory management unit,MMU)和内存(也称为主存)等硬件。该操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。该应用层包含浏览器、通讯录、文字处理软件、即时通信软件等应用。
一些实现中,对于电子设备中加载的应用程序,如果用户要使用应用程序的某一功能,需要用户在电子设备中点击应用程序的图标,应用程序的启动后,用户在应用程序的各级页面中一级一级找到该功能,然后才能使用该功能。但是,该实现中,用户使用应用程序时的操作较繁琐,影响用户体验。
或者,另一些实现中,用户可以通过敲击电子设备,快捷的打开应用程序,先显示该应用程序的首页,然后在该应用程序中显示应用程序的某项功能的页面。但是,该实现中,用户一次敲击只能打开一种应用程序的某项功能,显示过程导致应用程序的页面发生变化,影响用户体验。且如果用户想打开另一个应用程序的功能,需要执行另外的敲击等操作,或者用户需要开启另一个应用程序,并在应用程序的页面中查找该功能,操作繁琐,影响用户体验。
有鉴于此,本申请实施例提供一种窗口显示方法,电子设备可以在接收到用户的预设操作后,显示独立的窗口,该窗口可以包括某应用程序的功能页面,使得用户可以便捷的使用应用程序的功能,该窗口中还可以提供该应用程序的另外的一个或多个功能的标识,和/或,其他应用程序的一个或多个功能的标识,这样,基于该窗口中各功能的标识,用户可以在不同应用程序的不同功能间实现灵活的切换。
其中,独立的窗口可以理解为:该窗口不是用户打开的某应用程序中的窗口,而可以是电子设备的系统提供的独立的窗口,该独立的窗口可以覆盖在电子设备所显示的任意应用程序页面的上方,该独立的窗口中可以嵌入一个或多个应用程序的任务入口,在该独立的窗口中的任务执行时,可以为该任务对应的应用程序建立新的task,使得该任务的执行独立于应用程序中其它已经运行任务,从而实现触发嵌入式窗口的任务时不对电子设备显示的任意应用程序运行造成中断。这样,可以使得该窗口的调用不对用户当前的操作造成影响,提升用户体验。例如,用户正在利用电子设备看视频或玩游戏时,如果用户触发电 子设备显示该窗口,显示该窗口时,视频和游戏可以不中断。
独立的窗口也可以称为窗口、嵌入式窗口、快捷卡片弹窗、弹窗、卡应用窗口、快捷卡片窗口、快捷功能窗口、快捷功能弹窗等,本申请实施例不作具体限定。
为了能够更好地理解本申请实施例,下面对本申请实施例的电子设备的结构进行介绍:
图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriberidentification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像 处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用程序。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构,等。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,系统用户界面(systemUI),电话,地图,电 话,音乐,设置,桌面(launcher),视频,社交等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器(window manager service,WMS),Activity管理器(activity manager service,AMS)、内容提供器,资源管理器,视图系统(view),通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,触摸屏幕,拖拽屏幕,截取屏幕等。
AMS用于管理应用程序的生命周期,启动或杀死应用程序的进程,调度任务(task)等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。本申请实施例的视图系统可以包括View或Surface View。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
示例性的,结合图2,图3示出了本申请实施例中应用层与应用程序框架层之间的一些接口。
如图3所示,应用层中可以包括嵌入式窗口组件包,该嵌入式窗口组件包可以是launcher的一部分。嵌入式窗口组件包可以与应用程序框架层的AMS、WMS、view和输入管理服务(input manger service,inputMS)交互。
例如,嵌入式窗口组件包中可以包括启动控制模块、task管理及状态同步模块、view内嵌及显示控制模块、交互控制模块和代理服务模块。
启动控制模块可以基于activity启动退出接口,与AMS进行交互,使得AMS可基于该activity启动退出接口,实现对嵌入式窗口的activity启动管理以及activity生命周期管理。
Task管理及状态同步模块可以基于Task管理及状态同步接口与WMS进行交互,交互控制模块可以基于界面交互与事件传递接口与WMS进行交互,使得WMS可以基于该Task管理及状态同步接口,以及界面交互与事件传递接口实现下述的一项或多项管理:Task任务栈管理、activity跳转控制、焦点切换控制、窗口可见性管理、窗口层级管理、conflg更新及兼容性管理、insets窗口管理、输入法窗口管理。
View内嵌及显示控制模块可以基于surface控制接口与view交互,使得view可以基于surface控制接口实现surface显示控制。
代理服务可以对应于嵌入式窗口能力接入接口(或称为任务接入的接口)。
InputMS可以用于在嵌入式窗口中接收到用户触发时,进行事件派发。
基于图3的应用层与应用程序框架层的各功能模块,可以使得电子设备实现跨task显示的嵌入式窗口,从而可以不中断用户当前场景。
示例性的,在电子设备接收到用户触发,需要显示嵌入式窗口时,启动控制模块可以基于activity启动退出接口,调用AMS进行嵌入式窗口的activity启动管理以及activity生命周期管理。Task管理及状态同步模块可以基于Task管理及状态同步接口,调用WMS进行task任务栈管理,实现新建task或新建栈。交互控制模块可以基于界面交互与事件传递接口,调用WMS的activity跳转控制,实现从代理服务接入的应用中获取嵌入式窗口中将要显示的页面内容。View内嵌及显示控制模块可以基于surface控制接口,调用View中将待显示的页面内容转化后得到的surface view,实现嵌入式窗口的显示。嵌入式窗口显示时,WMS可以基于conflg更新及兼容性管理实现对嵌入式窗口的基础参数配置。WMS还可以基于insets窗口管理,实现对显示屏中除嵌入式窗口外的状态栏(例如WiFi标志,运营商标志等)和导航栏(例如虚拟按键)等的管理,使得状态栏和导航栏等不会影响嵌入式窗口的显示。
在嵌入式窗口显示的过程,嵌入式窗口中还可能接收到触发操作,产生触发事件,InputMS可以派发这些事件,由WMS的相应模块响应和处理这些事件。例如,当嵌入式窗口中接收到切换任务的操作时,WMS的焦点切换控制可以控制实现焦点切换;当嵌入式窗口中接收到进入下级或上级页面的操作时,WMS的窗口层级管理可以控制实现窗口中层级的变化;当嵌入式窗口中接收到输入的操作时,WMS的输入法窗口管理可以输入法管理;当嵌入式窗口中接收到取消嵌入式窗口显示的操作时,WMS的窗口可见性管理可以控制实现取消嵌入式窗口显示。
本申请实施例中,在显示嵌入式窗口时,新建task或新建栈,使得嵌入式窗口中的运行任务独立于应用程序的运行任务,从而可以不中断应用程序所运行的任务。
可以理解的是,在实现本申请实施例的窗口显示方法时,既需要电子设备中的软件逻辑,也需要电子设备中的一些硬件。示例性的,图4示出了一种用于实现本申请实施例的方法的软硬件架构示意图。
可能的实现中,图4的系统应用、人工智能(artificial intelligence,AI)中台、基础架构都可以为运行在应用层的应用。芯片平台和芯片算法可以运行在内核层,也可以运行在应用程序框架层,本申请实施例不作具体限定。
下面结合用户敲击手机背部触发本申请实施例的窗口显示方法实现的场景,示例性说明电子设备100软件以及硬件的工作流程。
当加速度传感器和/或陀螺仪检测到敲击操作,相应的硬件中断被发给内核层。内核层将敲击操作加工成原始输入事件,原始输入事件可以包括加速度传感器采集的值、陀螺仪采集的值、音频信号和/或触摸(touchpanel,TP)信号,原始输入事件被存储在内核层。芯片算法可以基于手机背部敲击识别算法识别该原始输入事件是否为手机背部敲击事件,其中,敲击可以指连续多次敲击或单次敲击,手机背部敲击识别算法中可以包括对原始输入事件中信息的预判断、特征提取、神经网络识别和结果输出,其中,原始输入事件中的加速度传感器采集的值和陀螺仪采集的值可以为核心特征,音频信号和TP信号可以为辅助特征,神经网络可以是基于机器学习或深度学习训练得到的用于识别手机背部敲击的模型,在识别到手机背部敲击事件后,芯片平台可以基于背部敲击软件通道适配在应用程序框架层进行软件通道接口适配,应用程序框架层可以将软件通道侧的事件封装成系统应用可调用的接口,应用层可以调用应用程序框架层封装的接口,启动嵌入式弹窗,嵌入式弹窗中待显示的内容可以包括用户在手机本地配置的一个或多个应用的功能页面,和/或,云端配置的一个或多个应用的功能页面。可能的实现中,AI中台可以识别用户所处的场景,场景可以与用户的使用习惯,用户所处的时间、用户所处的位置、和/或,用户的置业等有关,进而AI中台可以基于用户所处的场景在待显示的内容中确定嵌入式窗口中显示的快捷任务卡片,则终端设备可以显示该快捷任务卡片。
对应于图4,图5示例性的示出了本申请实施例中各模块之间的交互流程示意图。
实现本申请实施例的窗口显示方法,可以包括设置阶段和使用阶段。设置阶段可以指设置后续窗口显示时窗口中的快捷任务卡片的阶段。使用阶段可以指电子设备接收到用户触发后实现窗口显示的阶段。
例如,如图5所示,在设置阶段:电子设备可以在设置应用中提供辅助功能,辅助功能中可以提供包括控制快捷任务卡片功能开启或关闭的开关,以及可设置的快捷任务卡片标识,当控制快捷任务卡片功能开启或关闭的开关为开启状态时,电子设备可以在辅助功能的页面接收用户所选择的一个或多个快捷任务卡片标识,和/或,云端推荐的一个或多个快捷任务卡片标识,则设置应用可以得到本次设置的新的快捷任务卡片标识,设置应用还可以从桌面应用的数据库中获取之前设置的快捷任务卡片标识,从而得到包括本次设置的新的快捷任务卡片标识以及之前设置的快捷任务卡片标识的新的任务列表结果。可以理解的是,桌面应用的数据库中可能有之前设置的快捷任务卡片标识,也可能没有之前设置的快捷任务卡片标识。任务列表结果也可以称为任务列表、服务列表结果或服务列表等,本 申请实施例不作具体限定。
设置应用可以进一步将开关的状态以及新的任务列表结果写入桌面应用的数据库,实现桌面应用的数据库更新。
在使用阶段:当电子设备接收到双击背部的操作时,可以将该操作加工为双击背部事件,基于芯片算法的软件通路将双击背部事件传递到芯片平台,应用程序框架层可以将芯片平台的双击背部事件进行接口封装。桌面应用对应用程序框架层封装的接口进行接口回调,桌面应用加载桌面应用的数据库中的任务列表结果,并从AI中台中获取场景服务,当AI返回当前场景服务时,桌面应用可以结合当前场景服务在任务列表结果中确定与当前场景服务对应的快捷任务卡片,并将与当前场景服务对应的快捷任务卡片优先显示。例如,当前场景服务表示用户在地铁口,则优先显示的快捷任务卡片可以为乘车码功能对应的快捷任务卡片。
在显示快捷任务卡片时,桌面应用可以打开包括快捷任务卡片的窗口,并从systemUI中获取快捷任务卡片的服务内容,systemUI可以进一步从应用程序框架层获取服务内容,并向桌面应用返回surface view,桌面应用可以基于surface view控制快捷任务卡片的显示。
上面图3-图5从电子设备内部实现逻辑,示例性说明用户连续两次敲击电子设备背部,电子设备上弹出快捷任务卡片窗口的内部实现。下面将结合用户界面详细说明本申请实施例的窗口显示时可能的界面交互。后续用户界面图将分为快捷任务卡片设置阶段、快捷任务卡片使用阶段和快捷任务卡片关闭阶段分开示例说明。其中,快捷任务卡片设置阶段可以对应于图6-8,快捷任务卡片使用阶段可以对应于图9-19,快捷任务卡片关闭阶段可以对应于图20-21。
可以理解的是,上述图3-图5的双击背部的操作也可以替换为下述的任一种:N次敲击背部的操作、N次敲击功能键(例如音量键、开关键、电源键等)的操作、N次敲击电子设备任意区域(例如正面、背面、侧面等)的操作、特定的手势操作、特定的滑动触摸操作、声音控制等,本申请实施例对触发嵌入式窗口显示的具体操作不作限定,能够实现基于一个操作实现嵌入式窗口的快捷显示即可。N为自然数。为了便于描述,后续的用户界面中均以双击背部触发手机的嵌入式窗口显示为例进行说明,适应的提示信息也以双击背部实现快捷任务进行提示,该示例并不构成对触发嵌入式窗口显示的操作以及提示信息的限定。
如图6的(a)所示,电子设备可以提供用于设置快捷功能卡片的界面,该界面可以包括用于开启或关闭快捷任务卡片的总开关601。该总开关601的状态可以为开启或关闭。在如图6的(a)所示的界面中,该总开关601处于关闭状态,如图6的(a)所示的界面中可以显示用于提示“敲击手机背部两次后可实现快捷任务”的提示信息,不显示可以添加的快捷任务等。
其中,进入该如图6的(a)所示的界面至少可以有下述方式:方式一、在设置应用中,按照“设置-辅助功能-快捷启动及手势”的顺序依次触发从而进入到如图6的(a)所示的设置快捷功能卡片的界面。方式二、在嵌入式窗口显示时,在嵌入式窗口中提供进入图6的(a)所示的设置快捷功能卡片的界面的快捷控件,快捷控件的标识可以为设置标识或编辑标识等,后续在说明嵌入式窗口显示时将结合图示进行说明,在此不作赘述。当然,电子设备也可以提供其他能够进入到如图6的(a)所示的设置快捷功能卡片的界面的方式, 本申请实施例对此不作具体限定。
当在如图6的(a)所示的界面中,接收到用于开启总开关601的触发操作后,可以进入到如图6的(b)所示的界面。
如图6的(b)所示的界面,总开关为开启状态。可选的,总开关下面还可以有智能推荐开关602,智能推荐开关602的状态可以为开启状态或关闭状态,在智能推荐开关602为开启状态时,可以支持电子设备基于用户所处的场景为用户推荐嵌入式窗口所显示的快捷任务卡片。在智能推荐开关602为关闭状态时,不支持电子设备基于用户所处的场景为用户推荐嵌入式窗口所显示的快捷任务卡片,嵌入式窗口中所显示的快捷任务卡片为默认的或用户自定义设置的。在如图6的(b)所示的界面中,以智能推荐开关602为关闭状态示例说明,智能推荐开关602开启状态的情况将在图7中详细说明,此处不作赘述。
如图6的(b)所示的界面中还包括已添加栏和未添加栏,已添加栏中包括后续会在嵌入式窗口弹窗中显示的M个快捷任务卡片的标识,未添加栏中包括电子设备提供的、能够支持在嵌入式窗口弹窗时显示的L个快捷任务卡片的标识。M和L的数量本申请实施例均不作具体限定。未添加栏中的快捷任务卡片的标识可以基于用户的添加操作移动到已添加栏中,已添加栏中的快捷任务卡片的标识可以基于用户的移除操作移动到未添加栏中。
示例性的,如图6的(b)所示,已添加栏的任一个快捷任务卡片的标识可以包括:该快捷任务的图标、该快捷任务的名称、该快捷任务所述的应用的名称、以及用于实现移除该快捷任务的移除控件603。其中,快捷任务可以理解为应用中任意的功能、任务或服务等,例如,快捷任务可以包括各支付类应用的收付款服务、扫一扫服务、各出行应用的出行服务、各办公应用的打卡服务等,一些实现中,支持scheme、ShortCut的功能均可以作为快捷任务。
未添加栏的任一个快捷任务卡片的标识可以包括:该快捷任务的图标、该快捷任务的名称、该快捷任务所述的应用的名称、以及用于实现添加该快捷任务的添加控件604。
需要说明的是,已添加栏和未添加栏中所包括的快捷任务卡片的标识,可以属于一个应用程序中的任务,也可以属于多个应用程序中的任务。已添加栏中所包括的快捷任务卡片的标识,属于电子设备中已安装的应用程序中的任务。未添加栏中所包括的快捷任务卡片的标识,可以属于电子设备中已安装的应用程序中的任务,也可以属于电子设备中未安装的应用程序中的任务。示例性的,任务a和任务b属于应用A,任务c、任务d和任务e属于应用B,任务f属于应用C,应用A和应用B属于电子设备中已安装的应用程序,应用C属于电子设备中未安装的应用程序。未安装的应用C对应的快捷任务卡片的标识可以从颜色、大小等区分于已安装的应用A和应用B。
当如图6的(b)所示未添加栏的任务d的添加控件接收到用户触发时,可以进入如图6的(c)所示的界面,如图6的(c)所示,任务d被添加到已添加栏,适应的未添加栏中的任务d消失。
当如图6的(c)所示未添加栏的任务f的添加控件接收到用户触发时,因为任务f所属的应用C在电子设备中未安装,可以进入如图6的(d)所示的界面,如图6的(d)所示,可以显示提示框,提示应用C未安装,需安装应用C后才能使用,并提供前往下载的控件,以及取消下载的控件。当电子设备接收到对前往下载的控件的触发时,可以跳转到下载界面,完成应用C的下载安装后,可以再进入到如图6的(c)所示的界面,本申请 实施例对下载安装和跳转的实现不作限定。
当电子设备接收到对取消下载的控件的触发时,可以进入如图6的(e)所示的界面,该界面可以与图6的(c)相同,不作赘述。
用户可以继续向已添加栏中添加内容,直到达到已添加栏所允许添加的上限,示例性的,当如图6的(e)所示未添加栏的任务e的添加控件接收到用户触发时,可以进入如图6的(f)所示的界面,如图6的(f)所示,任务e被添加到已添加栏,适应的未添加栏中的任务e消失,已添加栏中的任务数量达到上限。
可以理解的是,图6的(b)-(e)所示的任意界面中,如果接收到用户对总开关的关闭操作,均可以返回到如图6的(a)所示的界面。图6的(b)-(e)所示的任意界面中,如果接收到对已添加栏中任意任务对应的移除控件的操作,则可以将改任意任务从已添加栏中移除,并在未添加栏中显示(图中未示出)。
图6以智慧推荐开关为关闭状态示例说明用户自定义快捷任务卡片的相关界面。下面图7以智慧推荐开关为开启状态示例说明设置快捷任务卡片的相关界面。
示例性的,当图6的(f)所示的智慧推荐开关接收到用户触发时,可以进入如图7的(a)所示的界面。如图7的(a)所示,智慧推荐开关为开启状态,已添加栏有用户自定义添加的5个任务,这样后续在用户触发显示嵌入式窗口时,因为开启了智慧推荐,电子设备在嵌入式窗口中显示的第一个任务可以不是用户自定义添加的该5个任务中的第一个任务a,而可以基于用户所处的场景,在5个任务务以及电子设备安装应用所能提供的任意任务中,选择与该场景最匹配的任务进行快捷任务卡片显示。
也就是说,在智慧推荐开关开启状态下,电子设备可以基于设备所处的场景,在电子设备安装的应用所能提供的所有服务对应的任务中,选择与设备所处的场景匹配的一个或多个任务,显示在快捷任务卡片中。
当如图7的(a)所示任务e的移除控件接收到用户触发时,可以进入如图7的(b)所示的界面,如图7的(b)所示,任务e在未添加栏显示,适应的已添加栏中的任务e消失,同时,已添加栏中位于任务后面的位置显示用于提示推荐的虚框标识。这样后续用户触发显示嵌入式窗口,电子设备在嵌入式窗口中显示第一个任务时,可以基于用户所处的场景,在电子设备已安装的应用所能提供的任意任务中,选择与该场景最匹配的任务进行快捷任务卡片显示。
当如图7的(b)所示任务d的移除控件接收到用户触发时,可以进入如图7的(c)所示的界面,如图7的(c)所示,任务d在未添加栏显示,适应的已添加栏中的任务d消失,同时,已添加栏中位于任务后面的位置显示两个用于提示推荐的虚框标识。这样后续用户触发显示嵌入式窗口,电子设备在嵌入式窗口中显示第一个任务时,可以基于用户所处的场景,在电子设备已安装的应用所能提供的任意任务中,选择与该场景最匹配的任务进行快捷任务卡片显示。具体的推荐方法将在后续快捷任务卡片使用阶段进行说明,在此不作赘述。
可以理解的是,用户可以随时关闭智慧推荐开关,例如,当如图7的(c)所示智慧推荐开关接收到用户触发时,可以进入如图7的(d)所示的界面,智慧推荐开关为关闭状态,已添加栏中不显示用于提示推荐的虚框标识。
用户也可以继续移除已添加栏中的任务,示例性的,在图7的(c)所示界面的基础上, 电子设备可以继续接收用户的移除操作,将已添加任务栏中的任务全部移除,进入如图7的(e)所示的界面,已添加栏中全部显示为用于提示推荐的虚框标识。可能的实现中,电子设备也可以在图7的任意界面中提供用于一键移除已添加任务栏中全部任务的控件(图中未示出),以实现已添加任务栏中便捷的任务移除。
当如图7的(e)所示智慧推荐开关接收到用户触发时,可以进入如图7的(f)所示的界面,已添加栏中可以自动填充默认的5个任务,该默认的5个任务为电子设备中已安装的应用。
图6和图7中,总开关、智能推荐开关和已添加任务栏均可以有一些特性。例如,总开关可以默认开或默认关,电子设备也可以记忆用户操作,下次显示包括总开关的界面时,总开关的状态为上次记忆的用户设置状态。智慧推荐开关可以默认开或默认关,电子设备也可以记忆用户操作,下次显示包括智慧推荐开关的界面时,智慧推荐开关的状态为上次记忆的用户设置状态。已添加任务栏可以支持长安拖动调整任务顺序。
示例性的,图8示出了已添加任务栏中调整任务顺序的界面示意图。
在如图8的(a)所示的界面中,智慧推荐开关为关闭状态,已添加任务栏中不显示用于提示推荐的虚框标识,当任务a的图标接收到用户长按并向任务c的位置移动的操作时,可以进入如图8的(b)所示的界面,如图8的(b)所示已添加任务栏中,任务a和任务c的位置发生变化。这样,后续用户触发显示嵌入式窗口时,可以默认先显示位于已添加栏第一个位置处的任务对应的快接任务卡片。
在如图8的(a)所示的界面中,智慧推荐开关如果接收到用户的触发,可以进入如图8的(c)所示的界面,智慧推荐开关变为开启状态,已添加任务栏中显示用于提示推荐的虚框标识,当如图8的(c)所示的界面中任务a的图标接收到用户长按并向任务c的位置移动的操作时,可以进入如图8的(d)所示的界面,如图8的(b)所示已添加任务栏中,任务a和任务c的位置发生变化,用于提示推荐的虚框标识的位置不发生变化。这样,后续用户触发显示嵌入式窗口时,可以先显示位于已添加栏第一个位置处的任务对应的快捷任务卡片,或者显示与用户所处场景对应的推荐的快捷任务卡片。
可以理解的是,在图6和图7中任意显示有已添加栏的界面中,均可以支持已添加栏中任务的调整,类似于图8的描述,不作赘述。
图6-8示例性说明了快捷任务卡片设置阶段可能涉及的界面,下面将对设置完成后,电子设备基于用户触发实现在嵌入式窗口中显示快捷任务卡片时可能涉及的界面进行示例说明。
用户触发实现嵌入式窗口显示时电子设备可能处于不同的状态,例如电子设备处于黑屏(或息屏)、电子设备亮屏且为锁屏状态、电子设备显示桌面、电子设备显示任意应用程序的界面等,电子设备在不同状态下实现快捷显示的方式可以有所不同,图9-图14分别示出几种可能的触发显示嵌入式窗口的方式。
如图9示出了电子设备从黑屏到显示嵌入式窗口的界面示意图。如图9的(a)所示,电子设备为黑屏,当电子设备接收到双击背部的操作时,电子设备可以点亮屏幕进入如图9的(b)所示的界面,之后可以有两种可能的实现:实现一、电子设备中没有设置密码或者电子设备识别到可以解锁的人脸,则电子设备可以从如图9的(b)所示的界面进入到如图9的(d)所示的界面。实现二、电子设备需要基于用户输入的密码实现解锁,则电 子设备可以从如图9的(b)所示的界面先进入到如图9的(c)所示的解锁界面,解锁界面的下一图层可以显示缩小比例的嵌入式窗口(例如缩小到90%),在如图9的(c)所示的解锁界面接收到正确的密码输入后,再进入到如图9的(d)所示的界面,显示嵌入式窗口。
如图9的(d)所示的界面可以理解为嵌入式窗口的界面,嵌入式窗口可以悬浮显示于电子设备其它应用程序的上层,嵌入式窗口可以具有一定的透明度,嵌入式窗口中可以包括详情显示区域901和任务栏902。
详情显示区域901可以显示一个任务的快捷任务卡片,快捷任务卡片的内容可以为该任务的详细页面。任务栏902可以显示多个任务的标识,标识可以包括图标和/或文字等,多个任务标识的排列顺序可以与前述已添加栏中的排列顺序相同或不同。详情显示区域901所显示的任务为任务栏902中的其中一个任务,详情显示区域901所显示的任务的标识在任务栏902中可以基于颜色、形状、大小、选中标志等区分于其它任务的标识。
如图9的(d)所示的嵌入式窗口中还可以包括编辑控件,用户点击编辑控件时可以进入到如图6所示的设置快捷任务卡片的界面,在此不再赘述。
可能的实现中,如图9的(d)所示的界面如果显示一段时间没有接收到用户操作,则可以退出嵌入式窗口的显示,电子设备重新进入黑屏,这样可以节约因误触发嵌入式窗口显示所带来的功耗。
如图10示出了电子设备从锁屏界面到显示嵌入式窗口的界面示意图。如图10的(a)所示,电子设备为亮屏且显示锁屏界面,当电子设备接收到双击背部的操作时,电子设备可以有两种可能的实现:实现一、电子设备中没有设置密码或者电子设备识别到可以解锁的人脸,则电子设备可以从如图10的(a)所示的界面进入到如图10的(c)所示的界面。实现二、电子设备需要基于用户输入的密码实现解锁,则电子设备可以从如图10的(a)所示的界面先进入到如图10的(b)所示的界面,在如图10的(b)所示的界面接收到正确的密码输入后,再进入到如图10的(c)所示的界面。可能的实现中,如图10的(c)所示的界面如果显示一段时间没有接收到用户操作,则可以退出嵌入式窗口的显示,电子设备重新显示锁屏界面,这样可以节约因误触发嵌入式窗口显示所带来的功耗。
如图11示出了电子设备从桌面到显示嵌入式窗口的界面示意图。如图11的(a)所示,电子设备显示桌面,当电子设备接收到双击背部的操作时,电子设备可以从如图11的(a)所示的界面进入到如图11的(b)所示的界面。可能的实现中,如图11的(b)所示的界面如果显示一段时间没有接收到用户操作,则可以退出嵌入式窗口的显示,电子设备重新显示桌面。
如图12示出了电子设备从视频应用的界面到显示嵌入式窗口的界面示意图。如图12的(a)所示,电子设备显示视频应用的界面,当电子设备接收到双击背部的操作时,电子设备可以从如图12的(a)所示的界面进入到如图12的(b)所示的界面。其中,在电子设备显示如图12的(b)所示的界面时,视频应用可以不中断,在嵌入式窗口退出后,电子设备继续显示播放中的视频,实现视频应用的连续播放。
如图13示出了电子设备从应用A的a界面到显示嵌入式窗口的界面示意图。如图13的(a)所示,电子设备显示应用A的a界面,当电子设备接收到双击背部的操作时,电子设备可以从如图13的(a)所示的界面进入到如图13的(b)所示的界面,图13的(b) 所示的嵌入式窗口中也可以显示应用A的任务a对应的其它页面,在嵌入式窗口退出后,电子设备继续显示应用A的a界面,不对应用A本身的运行造成影响。也就是说,本申请实施例的嵌入式窗口时独立于应用A的,不会对应用A的运行造成中断。
需要说明的是,上述的图9的(d)所示的界面、图10的(c)所示的界面、图11的(b)所示的界面、图12的(b)所示的界面、以及图13的(b)所示的界面,该五个界面中的嵌入式窗口中的内容均相同,区别在于嵌入式窗口下覆盖的界面为各自在显示嵌入式窗口之前的界面,因此该五个界面中嵌入式窗口的内容可以互相参照,不作赘述。
可以理解的是,在电子设备启动嵌入式窗口时,可能存在冷启动或加载失败的情况,则启动嵌入式窗口后,快捷任务卡片的内容可能没有正常显示,则显示快捷任务卡片正常内容之前,还可能在详情显示区域显示冷启动界面或加载界面。
示例性的,图14示出了电子设备存在冷启动或加载失败时可能的界面示意图。图14的(b)可以为图9的(d)所示的界面、图10的(c)所示的界面、图11的(b)所示的界面、图12的(b)所示的界面、或图13的(b)所示的界面。如果电子设备是冷启动,则显示图14的(b)之前,还可以在如图14的(a)示出的嵌入式窗口中显示冷启动界面。如果电子设备因为网络差或其他原因导致快捷任务卡片的内容加载失败,则显示图14的(b)之前,还可以在如图14的(c)示出的嵌入式窗口中显示加载界面,加载界面中可以包括加载控件,在接收到对加载控件的触发时,可以进入如图14的(b)所示的界面。
需要说明的是,图9的(d)所示的界面、图10的(c)所示的界面、图11的(b)所示的界面、图12的(b)所示的界面、图13的(b)所示的界面、以及图14的(b)所示的六个界面中,均是以嵌入式窗口中显示应用A的任务a所对应的快捷任务卡片为例进行说明。
可能的实现中,该六个界面的嵌入式窗口也可以替换为显示下述的任一种:如图15的(a)所示的应用A的任务b所对应的快捷任务卡片、如图15的(b)所示的应用B的任务c所对应的快捷任务卡片、如图15的(c)所示的应用B的任务d所对应的快捷任务卡片、如图15的(d)所示的应用B的任务e所对应的快捷任务卡片。
该六个界面的嵌入式窗口弹出时第一个显示的快捷任务卡片具体为哪个任务的快捷任务卡片,可以与智慧开关是否开启有关。
示例性的,在智慧推荐开关为关闭状态时,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为:已添加栏中的第一个任务对应的快捷任务卡片,或者用户上次使用过的任务对应的快捷任务卡片,或者已添加栏中任一个任务对应的快捷任务卡片。
在智慧推荐开关为开启状态时,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为:基于推荐算法计算得到的任务对应的快捷任务卡片。推荐算法可以与用户的出行规律、当前时间、用户所处的地理围栏、用户的使用习惯、用户的职业等有关。可能的实现中,用户的出行规律、用户的使用习惯、用户的职业等可以在用户画像中基于用户的授权得到。
例如,电子设备基于用户的行程信息得到用户将要出发到别的目的地时,监测到双击背部操作后,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为出行任务对应的快捷任务卡片,例如图15的(d)所示的应用B的任务e所对应的快捷任务卡片。
例如,电子设备基于当前的时间得到用户需要打卡时,监测到双击背部操作后,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为打卡任务对应的快捷任务卡片(图中未示 出)。
例如,电子设备基于用户当前所处的地理围栏得到用户将付款时,监测到双击背部操作后,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为支付类任务对应的快捷任务卡片,例如图14的(b)所示的应用A的任务a所对应的快捷任务卡片,或图15的(b)所示的应用B的任务c所对应的快捷任务卡片。具体是应用A的任务a所对应的快捷任务卡片还是应用B的任务c所对应的快捷任务卡片,还可以结合用户的使用习惯确定一个,例如用户使用应用A的任务a所对应的快捷任务卡片的频率或次数较高时,可以第一个显示应用A的任务a所对应的快捷任务卡片,或者用户使用应用B的任务c所对应的快捷任务卡片频率或次数较高时,可以第一个显示应用B的任务c所对应的快捷任务卡片。
例如,电子设备基于用户当前所处的地理围栏得到用户将乘地铁或公交时,监测到双击背部操作后,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为地铁乘车码或公交乘车码任务对应的快捷任务卡片(图中未示出)。当然,如果用户所标注的职业为地铁工作人员,用户会频繁前往地铁站,则用户在地铁站时可以不推荐第一个显示地铁乘车码或公交乘车码任务对应的快捷任务卡片。
例如,电子设备基于用户当前所处的地理围栏(如快递柜围栏)得到用户将扫码时,监测到双击背部操作后,嵌入式窗口弹出时第一个显示的快捷任务卡片可以为扫码类任务对应的快捷任务卡片,例如图15的(a)所示的应用A的任务b所对应的快捷任务卡片,或图15的(c)所示的应用B的任务d所对应的快捷任务卡片。具体是应用A的任务b所对应的快捷任务卡片还是应用B的任务d所对应的快捷任务卡片,还可以结合用户的使用习惯确定一个,例如用户使用应用A的任务b所对应的快捷任务卡片的频率或次数较高时,可以第一个显示应用A的任务b所对应的快捷任务卡片,或者用户使用应用B的任务d所对应的快捷任务卡片频率或次数较高时,可以第一个显示应用B的任务d所对应的快捷任务卡片。
推荐算法当然还可以结合实际有其他的实现,本申请实施例不作具体限定。需要说明的是,本申请实施例的任意数据的获取均为经过授权合规获取的。
电子设备在嵌入式窗口中显示第一个快捷任务卡片后,嵌入式窗口可以支持用户在各个任务的快捷任务卡片中切换。
一种可能的实现中,用户可以在嵌入式窗口中左右滑动或上下滑动实现相邻任务的快捷任务卡片的切换。例如,在图15的(a)所示的应用A的任务b所对应的快捷任务卡片收到向右滑动的操作时,可以进入如图15的(b)所示的应用B的任务c所对应的快捷任务卡片。在如图15的(b)所示的应用B的任务c所对应的快捷任务卡片收到向右滑动的操作时,可以进入如图15的(c)所示的应用B的任务d所对应的快捷任务卡片。在如图15的(c)所示的应用B的任务d所对应的快捷任务卡片收到向右滑动的操作时,可以进入如图15的(d)所示的应用B的任务e所对应的快捷任务卡片。当然,如果在如图15的(d)所示的应用B的任务e所对应的快捷任务卡片收到向左滑动的操作时,可以进入如图15的(c)所示的应用B的任务d所对应的快捷任务卡片,等。
另一种可能的实现中,用户可以在嵌入式窗口的任务栏中触发任一个任务标识,使得嵌入式窗口中显示的快捷任务卡片切换为用户所触发的任务标识对应的快捷任务卡片。例如,在图15的(a)所示的应用A的任务b所对应的快捷任务卡片下面任务栏中收到对任 务c的标识的触发时,可以进入如图15的(b)所示的应用B的任务c所对应的快捷任务卡片。或者,在图15的(a)所示的应用A的任务b所对应的快捷任务卡片下面任务栏中收到对任务d的标识的触发时,可以进入如图15的(c)所示的应用B的任务d所对应的快捷任务卡片。或者,在图15的(a)所示的应用A的任务b所对应的快捷任务卡片下面任务栏中收到对任务e的标识的触发时,可以进入如图15的(d)所示的应用B的任务e所对应的快捷任务卡片。嵌入式窗口显示的快捷任务卡片在使用时,可以有多种的界面变化。示例性的,图16-图19示出了几种使用快捷任务卡片时的一些相关界面示意图。
可以理解的是,嵌入式窗口中各任务可以关联该任务所属的应用程序的接口,当在嵌入式窗口中显示某任务的快捷任务卡片时,嵌入式窗口可以通过该任务所关联的应用程序的接口,拉起该应用程序中该任务模块的运行,从而基于应用程序为嵌入式窗口中提供快捷任务卡片显示的具体内容,以及在快捷任务卡片中接收到触发时,基于应用程序自身的执行逻辑实现在快捷任务卡片中被触发后的进一步界面显示等,应用程序自身的执行逻辑本申请实施例不作具体限定。
图16示例性示出了支付类任务的快捷任务卡片在完成支付后的界面变化示意图。如图16的(a)所示,嵌入式窗口中可以基于应用A中用于实现任务a的模块提供的内容,显示应用A的支付类任务a的快捷任务卡片,快捷任务卡片中可以包括能够支付或收款的条形码或二维码,在电子设备确定条形码或二维码已被扫描完成支付或收款后,基于应用A可以进入如图16的(b)所示的界面,快捷任务卡片位置可以显示用于提示支付完成的提示信息。一种可能的实现中,显示用于提示支付完成的提示信息后,嵌入式窗口可以退出,电子设备恢复到弹出嵌入式窗口之前的界面,这样可以实现嵌入式窗口的即用即退,不仅提供便捷的操作还不对用户使用电子设备的过程造成中断。
可选的,应用A的支付类任务a的快捷任务卡片中还可以包括其它支付方式以及一些隐藏内容,该部分内容也可以支持用户触发。
示例性的,图17示出了使用支付类任务的快捷任务卡片中隐藏选项时的界面变化示意图。如图17的(a)所示,嵌入式窗口中显示应用A的支付类任务a的快捷任务卡片,快捷任务卡片中还包括条形码、二维码、付款方式a选项以及一些隐藏选项,如图17的(a)所示的任务a的快捷任务卡片也可以理解为根界面。
当在如图17的(a)所示的界面中接收到用户在快捷任务卡片中向上滑动的操作时,可以进入如图17的(b)所示的界面,如图17的(b)所示,快捷任务卡片中的条形码和二维码上移,之前的隐藏选项例如二维码收款、赞赏码和群收款显示在快捷任务卡片中。
当在如图17的(b)所示的界面中接收到用户对群收款的触发操作时,可以进入如图17的(c)所示的界面,如图17的(c)所示,快捷任务卡片中显示群收款的界面,群收款的界面可以显示用于选择聊天群的控件。
当在如图17的(c)所示的界面中接收到用户对选择聊天群的控件的触发操作时,可以进入如图17的(d)所示的界面,如图17的(d)所示,快捷任务卡片中显示用于选择聊天的界面,用于选择聊天的界面可以显示最近转发的一个或多个群组,以及最近聊天的一个或多个群组。进一步的,用户可以在如图17的(d)所示的界面中选择一个群组,实现向该群组中的成员发起群收款。
当在如图17的(d)所示的界面中接收到用户对返回按钮的触发时,快捷任务卡片可 以先返回到如图17的(d)所示的界面的上一级界面,进入如图17的(e)所示的界面,图17的(e)所示的界面可以与图17的(c)所示的界面内容相同,不作赘述。
当在如图17的(e)所示的界面中接收到用户对返回按钮的触发时,快捷任务卡片可以返回到如图17的(e)所示的界面的上一级界面,进入如图17的(f)所示的界面,图17的(f)所示的界面可以与图17的(b)所示的界面内容相同,不作赘述。
可以理解的是,图17的(b)所示的界面为任务a的快捷任务卡片的根界面,因此不支持再返回,如果在图17的(b)所示的界面中接收到用户对返回按钮的触发,则可以对嵌入式窗口增加抖动或其他动效,提示用户不能再执行返回。
示例性的,图18示出了使用出行类任务的快捷任务卡片中显示键盘时的界面变化示意图。如图18的(a)所示,嵌入式窗口中显示应用B的出行类任务e的快捷任务卡片,快捷任务卡片中包括乘车二维码、乘车方式选项(如工具、地铁、打车和骑行等)、出行优惠、路线规划和乘车记录等选项。
当在如图18的(a)所示的界面中接收到路线规划的触发操作时,可以进入如图18的(b)所示的界面,如图18的(b)所示,嵌入式卡片中显示路线规划的界面,路线规划的界面可以包括设置出行地址、行程提醒等选项。
当在如图18的(b)所示的界面中接收到输入地址的输入框的触发操作时,如果之前用户没有设置过出行地址,则电子设备可以进入如图18的(c)所示的界面,如图18的(c)所示,电子设备可以弹出键盘,同时快捷任务卡片的高度可以减少,快捷任务卡片可以向电子设备顶部移动,使得用户可以用键盘输入出行地址等相关信息。在用户完成键盘使用后,可以进一步取消键盘显示,恢复快捷任务卡片的显示(图中未示出),不作赘述。这样后续再次接收到用户对路线规划的触发时,可以基于用户已输入过的出行地址,显示目的地为出行地址的规划路线界面。
在显示嵌入式窗口时还可能收到通知消息。图19示出了使用快捷任务卡片时收到通知消息的界面变化示意图。
如图19的(a)所示,嵌入式窗口中显示应用A的支付类任务a的快捷任务卡片,这时如果收到通知消息1,可以进入到如图19的(b)所示的界面,如图19的(b)所示嵌入式窗口继续显示,消息1可以以横幅或胶囊等形式显示在嵌入式窗口的上层。
在如图19的(b)所示的界面中,如果接收到用于打开消息1的触发操作(例如下拉通知或点击通知),可以进入到如图19的(c)所示的界面,如图19的(c)所示,电子设备可以取消嵌入式窗口的显示,进入到消息1对应的界面。可选的,在消息1对应的界面中执行返回上一页时,可以返回到消息1的应用中消息1界面的上一级界面,不再显示嵌入式窗口。当然,也可以返回到如图19的(a)的嵌入式窗口显示的界面,本申请实施例不作具体限定。
在如图19的(b)所示的界面中,如果消息1一段时间没有被触发,或者接收到关闭消息1的触发,则消息1可以取消显示,电子设备继续显示如图19的(a)所示的包括嵌入式窗口的界面。在如图19的(a)所示的界面,如果用户想要再查看通知消息,则用户可以执行从屏幕上方的下拉操作等,进入如图19的(d)所示的消息通知的界面,消息通知的界面中可以包括多条消息,嵌入式窗口还可以显示在消息通知界面的下层,如果消息通知的界面被用户上滑收起,电子设备可以继续显示如图19的(a)所示的包括嵌入式窗 口的界面。如果在多条消息中接收到用于打开消息1的触发操作,也可以进入到如图19的(c)所示的消息1的界面。
可以理解的是,如果在显示嵌入式窗口时电子设备接收到来电呼叫,来电联系人信息、接听控件和挂断控件也可以以胶囊形式显示在嵌入式窗口的上层(图中未示出),如果接收到用户触发挂断控件,则电子设备挂断该通话,嵌入式窗口可以保持显示。如果接收到用户触发接听控件,则电子设备接听该通话,嵌入式窗口可以保持显示,通话界面以胶囊形式显示,或嵌入式窗口可以取消显示,电子设备显示通话界面。
需要说明的是,上面示例性对使用快捷任务卡片时涉及的可能界面进行描述,实际应用中,快捷任务卡片还可以支持提供替他的用户交互界面,以及实现其他的任务,或者采用其它的界面实现上述的交互,上面的示例说明并不对使用快捷任务卡片造成必然限定。
下面将对关闭嵌入式窗口可能涉及的界面进行示例说明。
一种可能的实现中,电子设备在显示嵌入式窗口时,如果电子设备检测到嵌入式窗口在预设时间内没有接收到触发操作,则电子设备可关闭嵌入式窗口,预设时间可以基于实际应用设置,例如可以设置为较短的时间,以减少嵌入式窗口对电子设备中运行的应用的干扰。
其中,预设时间内没有接收到触发操作可以包括:从嵌入式窗口从开始弹出时起算的预设时间内没有接受到触发操作,或者,在嵌入式窗口中完成扫码等交互流程之后的预设时间内没有接受到触发操作。
嵌入式窗口关闭后,电子设备可以恢复显示在弹出嵌入式窗口之前的界面。电子设备可显示在弹出嵌入式窗口之前的界面可以包括:黑屏、息屏、锁屏、桌面、任意应用程序的界面等。
示例性的,图20示出了从应用A的a界面弹出嵌入式窗口,在嵌入式窗口中执行了关于应用A的任务a的功能后,关闭嵌入式窗口返回应用A的a界面的界面示意图。
如图20的(a)所示,电子设备可以显示应用A的a界面,这时如果电子设备检测到双击电子设备背部的操作,可以进入如图20的(b)所示的界面,如图20的(b)所示,电子设备在应用A的a界面上层覆盖显示嵌入式窗口,嵌入式窗口中包括应用A的支付类任务a的快捷任务卡片,任务a的快捷任务卡片中可以包括支付码,电子设备检测到支付码被扫描完成支付时,可以显示如图20的(c)所示的界面,如图20的(c)所示,任务a的快捷任务卡片中提示支付已完成,则电子设备可以在预设时间后关闭嵌入式窗口,进入如图20的(d)所示的界面,恢复显示应用A的a界面,图20的(d)所示的界面可以与图20的(a)所示的界面内容相同。当然,如果电子设备显示如图20的(b)所示的界面后,如果检测到预设时间之后没有在嵌入式窗口中收到触发或扫描,则电子设备也可以从如图20的(b)所示的界面进入到进入如图20的(d)所示的界面,恢复显示应用A的a界面。
也就是说,本申请实施例中,无论在嵌入式窗口中,应用A任务a中进行了哪种界面交互,在电子设备关闭嵌入式窗口时,电子设备均可以恢复显示应用界面的a界面。本申请实施例的嵌入式窗口时新创建的任务,不会对其它应用程序的任务造成任何中断或影响。
另一种可能的实现中,电子设备也可以基于用户触发关闭嵌入式窗口。
示例性的,电子设备显示嵌入式窗口的过程中,当电子设备接收到用户从电子设备屏 幕的底部上滑并保持的操作时,电子设备不触发显示最近任务,触发关闭嵌入式窗口。或者,用户从电子设备屏幕的侧边内滑并保持的操作时,电子设备不触发侧边栏,触发关闭嵌入式窗口。
或者,嵌入式窗口中可以提供用于显示最近任务的控件,用户触发该用于显示最近任务的控件时,可以关闭嵌入式窗口,并显示最近任务。
如图21的(a)所示,电子设备显示嵌入式窗口,嵌入式窗口包括应用A的任务a的快捷任务卡片,以及用于显示最近任务的控件。当接收到用户触发该用于显示最近任务的控件的操作时,可以关闭嵌入式窗口,进入如图21的(b)所示的界面。
如图21的(b)所示,界面中可以显示最近运行的任务的悬浮窗,如果在图21的(b)所示的界面中接收到对最近运行的任务1的触发,可以进入如图21的(c)所示的任务1界面。
可以理解的是,如果没有最近运行的任务,则电子设备在如图21的(a)的界面中接收到用户触发该用于显示最近任务的控件的操作时,可以关闭嵌入式窗口并显示桌面。
当然,另外可能的实现中,嵌入式窗口中也可以提供用于关闭嵌入式窗口的控件(图中未示出),在接收到用户对嵌入式窗口中用于关闭嵌入式窗口的控件的操作时,电子设备可以恢复显示在弹出嵌入式窗口之前的界面。
或者,电子设备可以在接收到对嵌入式窗口中一些区域的按压操作、触摸操作或滑动操等预设的操作时,关闭嵌入式窗口,恢复显示在弹出嵌入式窗口之前的界面。
或者,电子设备可以在接收到用于关闭嵌入式窗口的敲击操作、语音控制、手势控制等时,关闭嵌入式窗口,恢复显示在弹出嵌入式窗口之前的界面。
或者,电子设备可以包括返回按键、进入桌面按键、锁屏按键等功能或物理按键,电子设备接收到对返回按键的触发时,关闭嵌入式窗口,恢复显示在弹出嵌入式窗口之前的界面;电子设备接收到对桌面按键的触发时,关闭嵌入式窗口,显示桌面;电子设备接收到对锁屏按键的触发时,关闭嵌入式窗口,显示锁屏界面,等。
本申请实施例对关闭嵌入式窗口的具体实现不作限定。
下面将对本申请实施例提供的窗口显示方法的流程实施例进行示意介绍。需要说明的是,本申请实施例中的“在……时”,可以为在某种情况发生的瞬时,也可以为在某种情况发生后的一段时间内,本申请实施例对此不作具体限定。如图22所示,方法包括:
S2201:显示第一界面,第一界面中包括第一应用的第一任务对应的页面内容。
本申请实施例的第一界面可以为电子设备显示的任意应用的界面,示例性的,第一界面可以对应于图11的(a)、图12的(a)或图13的(a)所示的界面。
第一应用可以为电子设备正在显示的应用,第一应用可以为桌面应用、视频应用或游戏应用等任意安装在电子设备中的应用。第一应用的第一任务可以是第一应用的任意任务,第一任务对应的页面内容可以是第一应用提供的,本申请实施例对第一界面显示的具体内容不做限定。
S2202:接收到第一预设操作。
一种可能的实现中,第一预设操作可以是对电子设备的背部双击的操作,这样的操作方式较为便捷,易于用户实现。
当然,第一预设操作也可以为上述实施例中描述的双击背部操作的任意替代方案,在 此不作赘述。
S2203:响应于第一预设操作,在第一界面的上层显示嵌入式窗口,且不中断第一任务的执行,嵌入式窗口包括第二应用的第二任务对应的页面内容。
本申请实施例的嵌入式窗口可以是电子设备的系统提供的独立于第一应用和第二应用的窗口。嵌入式窗口的作用以及可能的称谓可以参照前述实施例的记载,嵌入式窗口的具体内容可以参照图9的(d)、图10的(c)、图11的(b)、图12的(b)、图13的(b)、图14的(b)或图15的(a)、(b)、(c)、(d)等所示的界面,此处不作赘述。
嵌入式窗口的运行可以不影响第一任务的执行。例如,当第一应用包括支持播放视频或音频内容的应用时,在电子设备显示嵌入式窗口的过程中,电子设备保持第一应用播放视频或音频,这样可以使得电子设备原本运行的应用能持续运行。
第二应用可以是与第一应用相同的应用,也可以是与第一应用不同的应用,第二应用的第二任务可以是第二应用中任意的应用,本申请实施例对第二应用及第二任务均不作具体限定。
可能的实现中,电子设备可以为嵌入式窗口中的第二任务对应的第二应用创建新的task,使得第二应用可以基于新创建的task,为嵌入式窗口提供第二任务对应的页面内容,而不需要电子设备跳转到第二应用。
可以理解的是,即使在嵌入式窗口中运行了第二应用的第二任务,且电子设备中第二应用也运行在后台,基于本申请实施例的方法,当电子设备退出嵌入式窗口显示第二应用的第二任务的页面时,也可以回到第二应用运行在后台前所记忆的界面,而不会中断第二应用之前的运行。也就是说,嵌入式窗口中第二应用执行的任务与电子设备前台或后台中第二应用执行的任务可以是独立的。
S2204:接收到第二预设操作。
本申请实施例中,第二预设操作可以是任意用于退出嵌入式窗口的操作,示例性的,可以参照图20、图21或上述实施例中记载的任意用于退出嵌入式窗口的操作。
S2205:响应于第二预设操作,取消嵌入式窗口的显示,恢复显示第一应用的第一任务对应的页面内容。
本申请实施例中,在嵌入式窗口取消显示后,电子设备可以恢复显示弹出嵌入式窗口之前的应用的页面内容,使得嵌入式窗口的显示不对电子设备中原来运行的应用造成干扰。
综上,本申请实施例中,可以基于用户操作便捷的显示嵌入式窗口,在嵌入式窗口中为用户提供一些任务,使得用户可以方便的使用嵌入式窗口中的任务,且显示嵌入式窗口时不中断电子设备中已运行的应用,使得电子设备中已运行的应用有较好的连续性,减少对用户使用应用的打扰,提示用户体验。
一种可能的实现中,第二应用的第二任务对应的页面内容显示在嵌入式窗口的第一区域,嵌入式窗口还包括第二区域,在第一界面的上层,嵌入式窗口的第二区域还显示有:第二任务对应的第一图标,第三任务对应的第二图标;其中,第一图标为选中状态,第二图标为未选中状态。
本申请实施例中,第一区域可以理解为显示快捷任务卡片(即任务对应的具体页面内容)的区域,第二区域可以理解为显示多个任务标识的区域。多个任务标识可以是用户自定义设置的,也可以是电子设备默认或推荐的,任务标识可以是任务图标,正在显示快捷 任务卡片的任务在第二区域可以为选中状态,其他没有显示快捷任务卡片的任务标识可以为未选中状态。选中状态的任务图标可以从颜色、字体、动效等方面区分于未选中状态的图标。
嵌入式窗口的第一区域和第二区域显示的内容可以参照图9的(d)、图10的(c)、图11的(b)、图12的(b)、图13的(b)、图14的(b)或图15的(a)、(b)、(c)、(d)等所示的界面,此处不作赘述。
一种可能的实现中,接收到第二预设操作之前,还包括:在嵌入式窗口中接收到用于将第二任务切换到第三任务的第三预设操作;响应于第三预设操作,在嵌入式窗口的的第一区域显示第三任务对应的界面内容,在嵌入式窗口的的第二区域显示第一图标以及第二图标;其中,第一图标为未选中状态,第二图标为选中状态。
本申请实施例中,第三任务可以为:第一应用的任务,或者第二应用的任务,或者第三应用的任务。也就是说,嵌入式窗口中可以显示一个应用的多个任务,也可以显示多个应用的多个任务,这样,可以使得用户能基于嵌入式窗口实现对不同应用不同任务的使用,增加了使用的丰富和便捷性。
用于将第二任务切换到第三任务的第三预设操作可以是滑动操作,也可以是触发第二区域中任务图标的操作,具体可以参照图15对应的描述,此处不作赘述。
一种可能的实现中,在嵌入式窗口的第一区域显示第三任务对应的界面内容之后,方法还包括:在嵌入式窗口的第一区域接收到上滑操作;响应于上滑操作,在嵌入式窗口的第一区域显示第一按钮;当接收到对第一按钮的触发操作时,在嵌入式窗口的第一区域显示第一按钮在第三任务所关联的页面内容。
本申请实施例中,嵌入式窗口可以支持显示任务的部分页面,页面中未显示的隐藏内容可以基于上滑操作实现显示,嵌入式窗口中的按钮还能支持嵌入式窗口中显示的内容向下一级或多级页面跳转,这样可以丰富嵌入式窗口的内容,使得用户基于嵌入式窗口能实现更多的服务。具体可以参照图17的(a)和(b)的描述,第一按钮可以对应于图17中“群收款”,在此不作赘述。
一种可能的实现中,第一按钮在第三任务所关联的页面内容中包括第二按钮,方法还包括:当接收到对第二按钮的触发操作时,在嵌入式窗口的第一区域恢复显示第一任务对应的界面内容。
本申请实施例中,第二按钮可以指返回按钮,嵌入式窗口中还可以支持基于对返回按钮的触发返回到上级界面,具体可以参照图17的(d)、(e)和(f)的描述,在此不作赘述。
一种可能的实现中,第二应用的第二任务对应的页面内容中包括第三按钮,方法还包括:当接收到对第三按钮的触发时,在嵌入式窗口显示输入框;当接收到对输入框的触发时,显示键盘;将键盘中接收到的输入内容显示在输入框。
本申请实施例中,嵌入式窗口可以支持采用键盘输入,这样可以使得用户在嵌入式窗口能实现便捷的输入。具体可以参照图18的(a)、(b)和(c)的描述,第三按钮可以对应于图18中的输入框,在此不作赘述。
一种可能的实现中,在第一界面的上层显示嵌入式窗口之后,还包括:接收到通知消息;继续显示嵌入式窗口,且在嵌入式窗口的上层以胶囊或横幅形式显示通知消息。
本申请实施例中,嵌入式窗口显示时若收到通知消息,可以继续显示嵌入式窗口,且在嵌入式窗口的上层以胶囊或横幅形式显示通知消息,这样可以使得用户在嵌入式窗口时,也能即时看到通知消息。具体可以参照图19的(a)、(b)、(c)和(d)的描述,在此不作赘述。
一种可能的实现中,方法还显示第二界面,第二界面包括第一开关;当接收到用于开启第一开关的触发操作时,显示第三界面,第三界面包括已添加栏和未添加栏,已添加栏中包括用户自定义添加的一个或多个任务的标识,未添加栏中包括电子设备提供的未被用户添加的一个或多个任务的标识;当接收到用于将已添加栏中的第一目标任务删除的操作时,在已添加栏中取消第一目标任务的标识的显示,以及在未添加栏中显示第一目标任务的标识;或者,当接收到用于添加未添加栏中的第二目标任务的操作时,在未添加栏中取消第二目标任务的标识的显示,以及在已添加栏中显示第二目标任务的标识。
其中,第二界面可以为显示总开关的界面,例如可以对应于图6的(a)。第三界面可以为设置任务的界面,例如可以对应于图6的(b)。第一目标任务可以是已添加栏中任一个任务,第二目标任务可以是未添加栏中任一已经在电子设备中安装的应用,具体设置过程可以参照图6或图7的描述,此处不作赘述。这样可以支持用户便捷的自定义需要的任务。
一种可能的实现中,未添加栏中包括第三目标任务的标识,第三目标任务对应的应用在电子设备中未安装,方法还包括:当接收到用于添加未添加栏中的第三目标任务的操作时,显示提示信息,提示信息用于提示安装第三目标任务对应的应用。
本申请实施例中,当用户选择电子设备没有安装的应用的任务时,电子设备可以提示用户进行应用安装,这样可以使得用户能够自定义丰富的任务,不局限于电子设备中已经安装的应用。第三目标任务例如可以对应于图6的“任务f”。
一种可能的实现中,第三界面还包括第二开关,方法还包括:当接收到用于开启第二开关的触发操作时,在已添加栏的空白区域显示推荐标识。
本申请实施例的第二开关可以对应于上述实施例的智慧推荐开关,智慧推荐开关开启是,如果已添加栏中的任务量没有达到能显示的任务量上限,则可以在已添加栏中显示推荐标识,推荐标识可以为虚框和/或文字等,具体可以参照图7的界面,在此不作赘述。
在智慧推荐开关开启后,如果用户触发电子设备显示嵌入式窗口,嵌入式窗口中显示的第一个快捷任务卡片对应的任务可以是基于推荐算法得到的。
示例性的,一种可能的实现中,在第一界面的上层显示嵌入式窗口,嵌入式窗口包括第二应用的第二任务对应的页面内容,包括:响应于第一预设操作,当确定第二开关为开启状态时,基于推荐算法确定第二应用的第二任务,推荐算法与下述的一项或多项有关:时间信息、用户所处的地理围栏或用户画像中的用户相关信息;在第一界面的上层显示嵌入式窗口,嵌入式窗口中包括第二应用的第二任务对应的页面。
例如,基于推荐算法确定第二应用的第二任务,包括:当基于推荐算法确定用户将出行时,确定第二应用的第二任务为出行类任务;或者,当基于推荐算法确定用户将打卡时,确定第二应用的第二任务为打卡类任务;或者,当基于推荐算法确定用户将支付时,确定第二应用的第二任务为支付类任务;或者,当基于推荐算法确定用户将乘车时,确定第二应用的第二任务为乘车码类任务。
本申请实施例的推荐算法的相关内容可以参照前述实施例的记载,此处不作赘述。这样,电子设备可以基于用户所处的场景,为用户推荐合适的快捷任务卡片,提升用户体验。
一种可能的实现中,当电子设备在黑屏或息屏状态下接收到第一预设操作时,点亮电子设备的显示屏;显示锁屏界面,锁屏界面的下层包括嵌入式窗口;在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。
本申请实施例中,电子设备可以从黑屏或息屏状态,基于用户的简单触发显示嵌入式窗口,具体可以参照图9的描述,此处不作赘述。
一种可能的实现中,方法还包括:当电子设备在亮屏锁屏状态下接收到第一预设操作时,显示锁屏界面,锁屏界面的下层包括嵌入式窗口;在锁屏界面中接收到正确的解锁输入时,显示嵌入式窗口。
本申请实施例中,电子设备可以从亮屏锁屏状态,基于用户的简单触发显示嵌入式窗口,具体可以参照图10的描述,此处不作赘述。
上面已对本申请实施例的窗口显示方法进行了说明,下面对本申请实施例提供的执行上述窗口显示方法的装置进行描述。本领域技术人员可以理解,方法和装置可以相互结合和引用,本申请实施例提供的相关装置可以执行上述窗口显示方法中的步骤。
为了实现上述功能,实现窗口显示的装置包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的方法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对实现窗口显示方法的装置进行功能模块的划分,例如可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
如图23为本申请实施例提供的一种芯片的结构示意图。芯片2300包括一个或两个以上(包括两个)处理器2301、通信线路2302、通信接口2303和存储器2304。
在一些实施方式中,存储器2304存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。
上述本申请实施例描述的方法可以应用于处理器2301中,或者由处理器2301实现。处理器2301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2301可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器2301可以实现或者执行本申请实施例中的公开的各处理相关的方法、步骤及逻辑框图。
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或 者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器2304,处理器2301读取存储器2304中的信息,结合其硬件完成上述方法的步骤。
处理器2301、存储器2304以及通信接口2303之间可以通过通信线路2302进行通信。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
本申请实施例还提供一种计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。

Claims (21)

  1. 一种窗口显示方法,应用于电子设备,其特征在于,包括:
    显示第一界面,所述第一界面中包括第一应用的第一任务对应的页面内容;
    接收到第一预设操作;
    响应于所述第一预设操作,在所述第一界面的上层显示嵌入式窗口,且不中断所述第一任务的执行,所述嵌入式窗口包括第二应用的第二任务对应的页面内容;
    接收到第二预设操作;
    响应于所述第二预设操作,取消所述嵌入式窗口的显示,恢复显示所述第一应用的第一任务对应的页面内容。
  2. 根据权利要求1所述的方法,其特征在于,所述第二应用的第二任务对应的页面内容显示在所述嵌入式窗口的第一区域,所述嵌入式窗口还包括第二区域,在所述第一界面的上层,所述嵌入式窗口的第二区域还显示有:所述第二任务对应的第一图标,第三任务对应的第二图标;其中,所述第一图标为选中状态,所述第二图标为未选中状态。
  3. 根据权利要求2所述的方法,其特征在于,所述接收到第二预设操作之前,还包括:
    在所述嵌入式窗口中接收到用于将所述第二任务切换到所述第三任务的第三预设操作;
    响应于所述第三预设操作,在所述嵌入式窗口的所述的第一区域显示所述第三任务对应的界面内容,在所述嵌入式窗口的所述的第二区域显示所述第一图标以及所述第二图标;其中,所述第一图标为未选中状态,所述第二图标为选中状态。
  4. 根据权利要求3所述的方法,其特征在于,在所述嵌入式窗口的所述第一区域显示所述第三任务对应的界面内容之后,所述方法还包括:
    在所述嵌入式窗口的所述第一区域接收到上滑操作;
    响应于所述上滑操作,在所述嵌入式窗口的所述第一区域显示第一按钮;
    当接收到对所述第一按钮的触发操作时,在所述嵌入式窗口的所述第一区域显示所述第一按钮在所述第三任务所关联的页面内容。
  5. 根据权利要求4所述的方法,其特征在于,所述第一按钮在所述第三任务所关联的页面内容中包括第二按钮,所述方法还包括:
    当接收到对所述第二按钮的触发操作时,在所述嵌入式窗口的所述第一区域恢复显示所述第一任务对应的界面内容。
  6. 根据权利要求2-5任一项所述的方法,其特征在于,所述第三任务为:所述第一应用的任务,或者所述第二应用的任务,或者第三应用的任务。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二应用的第二任务对应的页面内容中包括第三按钮,所述方法还包括:
    当接收到对所述第三按钮的触发时,在所述嵌入式窗口显示输入框;
    当接收到对所述输入框的触发时,显示键盘;
    将所述键盘中接收到的输入内容显示在所述输入框。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,在所述第一界面的上层显示嵌入式窗口之后,还包括:
    接收到通知消息;
    继续显示所述嵌入式窗口,且在所述嵌入式窗口的上层以胶囊或横幅形式显示所述通知消息。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:
    显示第二界面,所述第二界面包括第一开关;
    当接收到用于开启所述第一开关的触发操作时,显示第三界面,所述第三界面包括已添加栏和未添加栏,所述已添加栏中包括用户自定义添加的一个或多个任务的标识,所述未添加栏中包括所述电子设备提供的未被用户添加的一个或多个任务的标识;
    当接收到用于将所述已添加栏中的第一目标任务删除的操作时,在所述已添加栏中取消所述第一目标任务的标识的显示,以及在所述未添加栏中显示所述第一目标任务的标识;
    或者,当接收到用于添加所述未添加栏中的第二目标任务的操作时,在所述未添加栏中取消所述第二目标任务的标识的显示,以及在所述已添加栏中显示所述第二目标任务的标识。
  10. 根据权利要求9所述的方法,其特征在于,所述未添加栏中包括第三目标任务的标识,所述第三目标任务对应的应用在所述电子设备中未安装,所述方法还包括:
    当接收到用于添加所述未添加栏中的第三目标任务的操作时,显示提示信息,所述提示信息用于提示安装所述第三目标任务对应的应用。
  11. 根据权利要求9或10所述的方法,其特征在于,所述第三界面还包括第二开关,所述方法还包括:
    当接收到用于开启所述第二开关的触发操作时,在所述已添加栏的空白区域显示推荐标识。
  12. 根据权利要求11所述的方法,其特征在于,所述响应于所述第一预设操作,在所述第一界面的上层显示嵌入式窗口,所述嵌入式窗口包括所述第二应用的第二任务对应的页面内容,包括:
    响应于所述第一预设操作,当确定所述第二开关为开启状态时,基于推荐算法确定所述第二应用的第二任务,所述推荐算法与下述的一项或多项有关:时间信息、用户所处的地理围栏或用户画像中的用户相关信息;
    在所述第一界面的上层显示嵌入式窗口,所述嵌入式窗口中包括所述第二应用的第二任务对应的页面。
  13. 根据权利要求12所述的方法,其特征在于,基于推荐算法确定所述第二应用的第二任务,包括:
    当基于所述推荐算法确定用户将出行时,确定所述第二应用的第二任务为出行类任务;
    或者,当基于所述推荐算法确定用户将打卡时,确定所述第二应用的第二任务为打卡类任务;
    或者,当基于所述推荐算法确定用户将支付时,确定所述第二应用的第二任务为支付类任务;
    或者,当基于所述推荐算法确定用户将乘车时,确定所述第二应用的第二任务为乘车码类任务。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一应用包括支持播放 视频或音频内容的应用,在所述电子设备显示所述嵌入式窗口的过程中,所述电子设备保持所述第一应用播放视频或音频。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在黑屏或息屏状态下接收到所述第一预设操作时,点亮所述电子设备的显示屏;
    显示锁屏界面,所述锁屏界面的下层包括所述嵌入式窗口;
    在所述锁屏界面中接收到正确的解锁输入时,显示所述嵌入式窗口。
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在亮屏锁屏状态下接收到所述第一预设操作时,显示锁屏界面,所述锁屏界面的下层包括所述嵌入式窗口;
    在所述锁屏界面中接收到正确的解锁输入时,显示所述嵌入式窗口。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述响应于所述第一预设操作,在所述第一界面的上层显示嵌入式窗口,且不中断所述第一任务的执行,所述嵌入式窗口包括所述第二应用的第二任务对应的页面内容,包括:
    所述响应于所述第一预设操作,为所述第二应用创建新的任务task,并在所述第一界面的上层显示嵌入式窗口,且不中断所述第一任务的执行,所述嵌入式窗口包括所述第二应用的第二任务对应的页面内容。
  18. 根据权利要求1-17任一项所述的方法,其特征在于,所述接收到第一预设操作,包括:
    接收到对所述电子设备的背部双击的操作。
  19. 一种电子设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于执行所述计算机程序,以执行如权利要求1-18任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,当所述指令被执行时,使得计算机执行如权利要求1-18任一项所述的方法。
  21. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得电子设备执行如权利要求1-18任一项所述的方法。
PCT/CN2023/117839 2022-09-22 2023-09-08 窗口显示方法和相关装置 WO2024061032A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211158219.5A CN117793237A (zh) 2022-09-22 2022-09-22 窗口显示方法和相关装置
CN202211158219.5 2022-09-22

Publications (1)

Publication Number Publication Date
WO2024061032A1 true WO2024061032A1 (zh) 2024-03-28

Family

ID=90396831

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117839 WO2024061032A1 (zh) 2022-09-22 2023-09-08 窗口显示方法和相关装置

Country Status (2)

Country Link
CN (1) CN117793237A (zh)
WO (1) WO2024061032A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870711A (zh) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 页面导航方法、提供用户界面的方法及客户端
CN112835485A (zh) * 2021-02-04 2021-05-25 维沃移动通信有限公司 应用界面处理方法、装置、电子设备及可读存储介质
CN114237779A (zh) * 2020-09-09 2022-03-25 华为技术有限公司 一种显示窗口的方法、切换窗口的方法、电子设备和系统
WO2022068483A1 (zh) * 2020-09-30 2022-04-07 华为技术有限公司 应用启动方法、装置和电子设备
CN114363462A (zh) * 2020-09-30 2022-04-15 华为技术有限公司 一种界面显示方法及相关装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870711A (zh) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 页面导航方法、提供用户界面的方法及客户端
CN114237779A (zh) * 2020-09-09 2022-03-25 华为技术有限公司 一种显示窗口的方法、切换窗口的方法、电子设备和系统
WO2022068483A1 (zh) * 2020-09-30 2022-04-07 华为技术有限公司 应用启动方法、装置和电子设备
CN114363462A (zh) * 2020-09-30 2022-04-15 华为技术有限公司 一种界面显示方法及相关装置
CN112835485A (zh) * 2021-02-04 2021-05-25 维沃移动通信有限公司 应用界面处理方法、装置、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN117793237A (zh) 2024-03-29

Similar Documents

Publication Publication Date Title
WO2021159922A1 (zh) 卡片显示方法、电子设备及计算机可读存储介质
WO2020181988A1 (zh) 一种语音控制方法及电子设备
CN103853451B (zh) 显示设备及控制显示设备的方法
EP3979061A1 (en) Quick application starting method and related device
KR102411890B1 (ko) 컨텐츠를 처리하는 방법 및 이를 위한 전자 장치
US11853526B2 (en) Window display method, window switching method, electronic device, and system
US20230213973A1 (en) Notification display method and terminal
EP3485358B1 (en) Electronic device and method thereof for managing applications
CN113805743B (zh) 切换显示窗口的方法和电子设备
EP4280058A1 (en) Information display method and electronic device
EP3938879A1 (en) Device, method, and graphical user interface for updating a background for home and wake screen user interfaces
CN113805744A (zh) 窗口的显示方法和电子设备
US20180196584A1 (en) Execution of multiple applications on a device
CN113268212A (zh) 投屏方法、装置、存储介质及电子设备
CN113132526A (zh) 一种页面绘制方法及相关装置
US20190369827A1 (en) Remote data input framework
CN116451709A (zh) 翻译控件的控制方法及电子设备
CN110290058A (zh) 一种在应用中呈现会话消息的方法与设备
WO2024061032A1 (zh) 窗口显示方法和相关装置
CN115017522B (zh) 一种权限推荐方法及电子设备
CN114095610B (zh) 一种通知消息处理方法及计算机可读存储介质
CN114461312B (zh) 显示的方法、电子设备及存储介质
CN113625881A (zh) 显示控制方法、装置、存储介质及电子设备
CN110853643A (zh) 快应用中进行语音识别的方法、装置、设备及存储介质
CN115291995B (zh) 一种消息显示方法及相关电子设备、可读存储介质