WO2022100556A1 - 一种通知消息的管理方法及电子设备 - Google Patents

一种通知消息的管理方法及电子设备 Download PDF

Info

Publication number
WO2022100556A1
WO2022100556A1 PCT/CN2021/129387 CN2021129387W WO2022100556A1 WO 2022100556 A1 WO2022100556 A1 WO 2022100556A1 CN 2021129387 W CN2021129387 W CN 2021129387W WO 2022100556 A1 WO2022100556 A1 WO 2022100556A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification
application
electronic device
notification message
user
Prior art date
Application number
PCT/CN2021/129387
Other languages
English (en)
French (fr)
Inventor
胡越
王红军
林晨
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/252,427 priority Critical patent/US20230418444A1/en
Priority to EP21891081.8A priority patent/EP4227784A4/en
Publication of WO2022100556A1 publication Critical patent/WO2022100556A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • 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/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • 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

Definitions

  • the present application relates, in particular, to the field of terminal technologies, and in particular, to a notification message management method and electronic device.
  • a notification panel is set in electronic devices such as mobile phones to display notification messages received by an operating system or an application.
  • a mobile phone as an example, as shown in (a) of FIG. 1 , when the mobile phone displays applications such as a desktop, a status bar 101 can be simultaneously displayed.
  • the status bar 101 can display time, power, signal strength, Bluetooth status, and operator name.
  • the mobile phone can display the pull-down menu 102 .
  • the mobile phone can display these notification messages in the notification bar 103 of the pull-down menu 102 .
  • the mobile phone may display the received notification messages in the notification bar 103 one by one in the form of notification messages or notification message groups (the notification message group includes multiple notification messages).
  • notification message groups when the number of notification messages (or notification message groups) is large, the user needs to swipe up and down in the notification bar 103 to locate the corresponding notification message (or notification message group), so that the user has a better experience when browsing and managing notification messages. not tall.
  • the present application provides a notification message management method and electronic device, which can provide users with the function of quickly searching and managing notification messages in the notification bar, and improve the user's management efficiency and usage experience of notification messages in the notification bar.
  • the present application provides a method for managing notification messages, including: an electronic device can display a notification interface, and the notification interface includes N (N is an integer greater than 1) of M (M is an integer greater than or equal to 1) applications ) notification messages, these notification messages generally have not been read by the user; wherein, the notification interface further includes an operation bar, and the identifiers of the M applications are displayed in the operation bar.
  • the present application additionally sets an operation bar in the notification interface, and the operation bar displays the identifier of the application corresponding to each current notification message.
  • the user can quickly browse to the specific applications to which each current notification message belongs in the operation bar of the notification interface.
  • the user can input a corresponding operation to the identifier of the application in the operation bar, and trigger the electronic device to manage the notification message with the application as the granularity, so as to improve the user's management efficiency and usage experience of the notification message in the notification bar.
  • the identifiers of the above-mentioned M applications include an identifier of the first application (for example, an icon of the first application), and after the electronic device displays the above notification interface, the method further includes: The first screening operation of the application identifier input; in response to the first screening operation, the electronic device may display the notification message of the first application in the above N notification messages in the notification interface. At this time, notification messages of other applications may not be displayed in the notification interface.
  • the user can filter out the notification messages from a certain application in the notification interface, which is convenient for the user to quickly find the notification messages of a certain application with the application as the granularity, and improves the user's understanding of the application. Management efficiency and usage experience of notification messages.
  • the method further includes: in response to the first screening operation, the electronic device marks the identification of the first application in the operation bar In the selected state, the user is prompted that the identifier of the current first application is selected, and the notification interface presents the screening result of the notification message of the first application.
  • the identifiers of the above M applications further include an identifier of the second application
  • the method further includes: receiving the notification message of the first application by the electronic device in the notification interface.
  • a second screening operation input by the user to the identifier of the second application; in response to the second screening operation, the electronic device may display the notification message of the second application among the N notification messages in the notification interface.
  • the electronic device may no longer filter the notification messages of the first application, but Re-screen the notification messages of the second application among all notification messages.
  • the method further includes: the electronic device receives a first cancel screening operation input by the user for the identifier of the second application ; In response to the first cancel screening operation, the electronic device may display N notification messages in the notification interface.
  • the electronic device can display all notification messages in the notification interface again.
  • the electronic device may also receive a second screening operation input by the user on the identifier of the second application; in response to the second screening operation, the electronic device may Displays the notification messages of the first application and the second application among the N notification messages.
  • the electronic device filters out the notification messages of the first application in the notification interface, if the user continues to filter the notification messages of the second application, the electronic device can simultaneously filter the first application and the second application in all notification messages The notification messages of the first application and the second application are presented to the user in the notification interface.
  • the method further includes: the electronic device can receive the input of the identifier of the second application by the user.
  • the first cancellation of the screening operation in response to the first cancellation of the screening operation, the electronic device may display the notification message of the first application in the N notification messages in the notification interface.
  • the electronic device After the electronic device filters out the notification messages of the first application and the second application in the notification interface, if the user inputs the first cancel screening operation for the identifier of the second application, the electronic device can cancel the notification message of the second application. In the filtering operation, the filtering result of the notification message of the first application is retained in the notification interface.
  • the method further includes: the electronic device can receive a second cancel screening operation input by the user on the identification of the first application; in response to the second If the filtering operation is canceled, the electronic device can display N notification messages in the notification interface.
  • the electronic device can cancel the screening operation on the notification messages of the second application.
  • the identifiers of the above-mentioned M applications include the identifier of the first application
  • the method further includes: the electronic device receives a first pinning operation input by the user on the identifier of the first application, For example, an operation of dragging and sliding down the logo of the first application; in response to the first pinning operation, the electronic device may pin the notification message of the first application among the N notification messages and display it in the notification interface.
  • the user can trigger the electronic device to display all the notification messages of the corresponding application on the top of the notification interface by operating the logo of the application in the operation bar. Management efficiency and usage experience of notification messages.
  • the method further includes: in response to the first pinning operation, the electronic device may display the pinning operation around the identification of the first application icon, thereby prompting the user that the notification message of the current first application has been displayed on top.
  • the method further includes: acquiring the first notification message by the electronic device; when the first notification message is a notification of the first application message, the electronic device can display the first notification message on top of the notification interface; when the first notification message is a notification message of an application other than the first application, the electronic device can display the first notification message in the notification interface After the notification message of the first application. That is to say, when the notification message of the entire application is displayed on the top, the new notification message received by the application will also be displayed on the top.
  • the identifiers of the above M applications further include an identifier of the second application
  • the electronic device further includes: an electronic device.
  • the device may receive a second pinning operation input by the user on the identification of the second application (the second pinning operation may be the same as the first pinning operation); in response to the second pinning operation, the electronic device may send the information of the second application in the N notification messages.
  • the notification message is displayed on the top of the notification interface.
  • the electronic device can display the notification message of each application on top in response to the user's pinning operation of the application identifier in the operation bar; or, in response to the second pinning operation, the electronic device
  • the notification messages of the first application and the second application in the N notification messages may also be displayed on the top of the notification interface, so that the electronic device can simultaneously display the notification messages of multiple applications on the top.
  • the method further includes: the electronic device receiving an operation of canceling the pinning input by the user on the identification of the first application ;
  • the electronic device can restore the display position of the notification message of the first application in the notification interface, that is, the user can apply the function of granularly canceling the pinning display of the notification message of the first application.
  • the method further includes: the electronic device receiving an operation of canceling the pinning of the second notification message input by the user,
  • the second notification message is the notification message of the first application displayed on the top; in response to the cancellation of the pinning operation, the electronic device can restore the display position of the second notification message in the notification interface, that is, the user can cancel a notification for a single notification message as a granularity The function that the message is displayed on top.
  • the electronic device When the electronic device cancels the function of displaying a notification message on top, it does not affect the displaying function of the entire application to which the notification message belongs. Subsequently, if the electronic device receives the notification message of the first application again, the notification message of the first application can also be displayed on the notification interface by pinning the notification message of the first application.
  • the above method further includes: when the electronic device does not obtain the notification message of the third application, the electronic device can set the third application as the top application in response to the relevant setting operation of the user; in this way, in the electronic device After the device displays the notification interface, if the electronic device obtains the notification message of the third application, the electronic device can display the notification message of the third application on top of the notification interface, and display the identifier of the third application in the operation bar. That is, before receiving the notification message of the third application, the user can preset the notification message that needs to be displayed on top of the third application. In this way, after receiving the notification message of the third application, the electronic device can directly display the notification message of the third application on top of the notification interface.
  • the identifiers of the above M applications include the identifier of the first application
  • the method further includes: the electronic device receives a deletion operation input by the user on the identifier of the first application, such as dragging The operation of dragging and sliding up the logo of the first application; in response to the deletion operation, the electronic device may delete the notification message of the first application in the notification interface.
  • the user can delete the notification messages of a certain application in batches in the notification interface by operating the identifier of the application in the operation bar, which is convenient for the user to manage the notification messages in the notification interface with the application as the granularity, and improves the user experience.
  • the above-mentioned operation bar may further include a first button for displaying all notification messages; if a first operation (such as a click operation) input by the user on the first button is detected, the electronic device may The above N notification messages are displayed in the notification interface.
  • a first operation such as a click operation
  • the above-mentioned operation bar may further include a second button for deleting all notification messages; if a second operation (such as a click operation) input by the user on the second button is detected, the electronic device may Delete all notification messages in the notification interface (that is, the above N notification messages).
  • a second operation such as a click operation
  • the identifier of each application in the identifiers of the M applications is provided with a superscript, and the superscript is used to indicate the number of notification messages currently received by the corresponding application.
  • the identifiers of each application can be sorted according to the receiving time when each application received the notification message last; Or use parameters such as time to sort the identifiers of each application, which is not limited in this application.
  • the present application provides an electronic device, comprising: a touch screen, one or more processors, one or more memories, and one or more computer programs; wherein the processor is coupled to both the touch screen and the memory, and one of the above One or more computer programs are stored in the memory, and when the electronic device runs, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes any one of the above-mentioned methods for managing notification messages.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the method for managing notification messages according to any one of the first aspects.
  • the present application provides a computer program product that, when the computer program product runs on an electronic device, enables the electronic device to execute the method for managing notification messages according to any one of the first aspects.
  • the electronic device described in the second aspect, the computer storage medium described in the third aspect, and the computer program product described in the fourth aspect are all used to execute the corresponding methods provided above, so , the beneficial effects that can be achieved may refer to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
  • Fig. 1 is the application scene of opening the notification bar in the prior art
  • FIG. 2 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an operating system in an electronic device according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram 1 of an application scenario of a method for managing notification messages according to an embodiment of the present application
  • FIG. 5 is a second schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application
  • FIG. 6 is a schematic diagram 3 of an application scenario of a method for managing notification messages according to an embodiment of the present application
  • FIG. 7 is a fourth schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram 5 of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram 6 of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 10 is a seventh schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram eight of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram 9 of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram ten of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 14 is an eleventh schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 15 is a schematic diagram 12 of an application scenario of a method for managing notification messages according to an embodiment of the present application
  • 16 is a schematic diagram thirteen of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 17 is a fourteenth schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 18 is a fifteenth schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a sixteenth application scenario of a method for managing notification messages according to an embodiment of the present application.
  • 20 is a schematic diagram seventeen of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 21 is a schematic diagram 18 of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 22 is a nineteenth schematic diagram of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 23 is a schematic diagram 20 of an application scenario of a notification message management method provided by an embodiment of the present application.
  • 24 is a schematic diagram 21 of an application scenario of a method for managing notification messages provided by an embodiment of the present application.
  • 25 is a schematic diagram 22 of an application scenario of a method for managing notification messages according to an embodiment of the present application.
  • FIG. 26 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a notification message management method provided by an embodiment of the present application can be applied to a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, and a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • wearable electronic devices virtual reality devices and other electronic devices
  • the embodiments of the present application do not impose any restrictions on this.
  • FIG. 2 shows a schematic structural diagram of the 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 charge 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 jack 170D, sensor module 180, camera 193 and display screen 194 and so on.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge 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 jack 170D, sensor module 180, camera 193 and display screen 194 and so on.
  • USB universal serial bus
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (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 processing unit (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (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 transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include one or more filters, switches, power amplifiers, low noise amplifiers (LNAs), and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating one or more communication processing modules.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is 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.
  • Display screen 194 is used to display images, videos, and the like.
  • 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 (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store one or more computer programs including instructions.
  • the processor 110 may execute the above-mentioned instructions stored in the internal memory 121, thereby causing the electronic device 100 to execute the methods provided in some embodiments of the present application, as well as various functional applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the stored program area may store the operating system; the stored program area may also store one or more application programs (such as gallery, contacts, etc.) and the like.
  • the storage data area may store data (such as photos, contacts, etc.) created during the use of the electronic device 101 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash storage (UFS), and the like.
  • the processor 110 causes the electronic device 100 to execute the methods provided in the embodiments of the present application by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor, As well as various functional applications and data processing.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with one or more microphones 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the above electronic device may also include one or more components such as a button 190, a motor 191, an indicator 192, and a subscriber identification module (SIM) card interface 195, which are not limited in this embodiment of the present application. .
  • SIM subscriber identification module
  • 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.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 3 is a block diagram of the software structure 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 a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of applications.
  • the above-mentioned applications may include applications (application, APP) such as call, contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, and short message.
  • applications application, APP
  • call contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, and short message.
  • the above-mentioned application program may further include a notification center APP. If the notification messages received by other applications are not read by the user, the application can send the notification messages to the notification center APP, and the notification center APP displays the received notification messages in the notification bar (also called the notification panel).
  • the interface where the notification bar is located may be called a notification interface.
  • the notification interface may be an interface where the drop-down menu is located, or the notification interface may also be a desktop, a negative one-screen interface, a lock screen interface, or an application interface in a certain application.
  • the notification center APP can display the notification message 401 in the form of a card or the like in the notification bar 400 .
  • the notification message 401 may include controls such as title 402, application A's identifier 403, reception time 404, and message content 405.
  • controls such as title 402, application A's identifier 403, reception time 404, and message content 405.
  • Those skilled in the art may set each of the notification messages (for example, notification message 401) according to actual application scenarios or actual experience. controls.
  • the notification message in the notification bar 400 may be a notification message from an application, a notification message from an operating system (for example, a version upgrade message), or a notification message from an FA (Feature Ability, FA) or a PA (Particle Ability) notification message, this embodiment of the present application does not impose any limitation on this.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • a notification manager may be included in the application framework layer.
  • application A may first instantiate a corresponding notification object (ie, a notification object, which may also be referred to as a structure).
  • the notification object may contain information such as title 402 , application A's identifier 403 , reception time 404 , and message content 405 , and one or more of these pieces of information may be used as the content to be displayed in the above notification message 401 .
  • application A can call the relevant interface of the notification manager (for example, the notify() interface) to pass the created notification object as a parameter to the notification manager.
  • the notification manager stores notification objects sent from various applications in the preset database 1 .
  • the notification manager stores in database 1 two notification objects from application A and one notification object from application B.
  • each notification object corresponds to a notification message.
  • notification object 1 corresponds to notification message 401
  • notification object 2 corresponds to notification message 406
  • notification object 3 corresponds to notification message 407 .
  • the notification manager After acquiring the notification object 1 sent by the application A, the notification manager can add the notification object 1 to the database 1 shown in Table 1. Further, as shown in FIG. 4 , the notification manager may instruct the notification center APP to draw the corresponding notification message 401 , notification message 406 and notification message 407 in the notification bar 400 according to each notification object shown in Table 1. In this way, each time the application receives a new notification message, the notification message displayed in the notification bar 400 can be updated according to the above method.
  • notification object application receive time title Message content notification object 1 App A's logo time 1 Title 1 Content 1 notification object 2 App B's ID time 2 Title 2 Content 2 notification object 3 App A's logo time 3 Title 3 Content 3 ... ... ... ... ... ... ...
  • the notification center APP may further set an operation bar 501 in the notification bar 400 .
  • the operation bar 501 displays an identifier of an application that currently has a notification message.
  • the operation bar 501 may include the identification 502 of application A and the identification 503 of application B.
  • the user can manage one or more notification messages from the application A in the notification bar 400 in a unified manner by operating the identifier 502 of the application A.
  • the user can uniformly manage one or more notification messages from application B in the notification bar 400 by operating the identifier 503 of application B.
  • the notification center APP can send a deletion instruction to the notification manager, and the deletion instruction is used to delete the information from application A in the notification bar 400. notification message.
  • the notification manager may delete all notification objects corresponding to application A in Table 1.
  • the notification manager may instruct the notification center APP to redraw each notification message in the notification bar 400 according to the updated Table 1.
  • the notification message drawn by the notification center APP in the notification bar 400 according to the updated table 1 does not include the notification message of application A, so as to realize the application as the granularity The ability to delete notification messages in batches.
  • the user can also input other operations to the identification 502 of application A (or the identification 503 of application B) in the operation bar 501 to realize functions such as filtering and pinning the notification message of a certain application, which will be described in subsequent embodiments. Detailed description is omitted here.
  • the identifier of the application that currently has the notification message can be displayed in the operation bar 501 .
  • the user can quickly and conveniently manage all the notification messages of the corresponding application with the application as the granularity, without the need for the user to search for each notification message in the notification bar 400 and manage the notification message, thereby The user's management efficiency and usage experience of the notification message in the notification bar 400 are improved.
  • the application framework layer may also include an activity manager, a window manager, a content provider, a view system, a resource manager, an input method manager, and the like.
  • the activity manager can be used to manage the life cycle of each application.
  • Applications usually run in the operating system as an activity.
  • the activity manager can schedule the application's activity process to manage the life cycle of each application.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files, etc.
  • the Android runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • 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 still image files.
  • 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, compositing, 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 at least includes a display driver, a camera driver, an audio driver, a sensor driver, and the like, which are not limited in this embodiment of the present application.
  • a notification center APP (also referred to as a notification APP) may be installed in the application layer of the mobile phone. As shown in FIG. 6 , the notification center APP can display a notification bar 602 in the pull-down menu 601 .
  • the notification bar 602 includes notification messages received by each application.
  • the notification center APP may display each notification message in the notification bar 602 in the form of a card according to the time sequence in which the application receives the notification message.
  • the notification bar 602 shown in FIG. 6 includes a notification message 603 , a notification message 604 , a notification message 605 , and a notification message 606 .
  • the notification message 603 and the notification message 605 are from application A, the notification message 604 is from application B, and the notification message 606 is from application C.
  • Each notification message may include controls such as an application identifier (for example, an application name or an application icon, etc.), the title of the notification message, the receiving time, or the content of the message, which is not limited in this embodiment of the present application.
  • notification center APP can hide a part of the notification messages in the notification bar 602.
  • the sliding operation triggers the notification center APP to display the hidden notification message in the notification bar 602 .
  • the notification bar 602 is further provided with an operation bar 700 .
  • the operation bar 700 displays the identifier of the application that currently has the notification message.
  • the operation bar 600 displays the identifier 701 of the application A, the identifier 702 of the application B, and the identifier 703 of the application C.
  • a corner label may be set on the identifier of each application in the operation bar 700, and the number in the corner label is used to indicate the number of notification messages currently existing in the corresponding application.
  • the number in the superscript of the logo 701 of application A is 2, the number in the superscript of the logo 702 of application B and the logo 703 of application C are both 1, that is, the notification from application A in the notification bar 602 at this time
  • the number of messages is 2, and the number of notification messages from both application B and application C is 1.
  • the user can quickly browse to the specific applications to which the notification messages in the current notification bar 602 belong, and the number of notification messages received by each application.
  • the identifiers of the respective applications may be sorted according to the receiving time of the last notification message received by each application. For example, the last time T1 when application A received the notification message 603 is later than the last time T2 when application B received the notification message 604, and the last time T2 when application B received the notification message 604 was later than the last time when application C received the notification message 604.
  • the reception time T3 at which the notification message 606 is received ie, T1>T2>T3.
  • the notification center APP may sequentially arrange the above-mentioned identifiers 701 , 702 and 703 in the order of application A, application B, and application C.
  • the identifiers of the respective applications may also be sorted according to the duration of use of the application A, the application B, and the application C by the user. For example, the notification center APP may count the usage time of the user using application A, application B, and application C in a recent period of time (for example, 24 hours). If the usage duration of application C is longer than that of application B, and the usage duration of application B is longer than that of application A, the notification center APP can arrange the above identifiers 701 and 702 in the order of application C, application B, and application A. and logo 703.
  • the identifiers of the respective applications may also be sorted according to the user's usage frequency of the application A, the application B and the application C. For example, the notification center APP may count the usage times of application A, application B, and application C by the user in a recent period (eg, 24 hours). If the usage duration of application C is longer than that of application A, and the usage duration of application A is longer than that of application B, the notification center APP can arrange the above identifiers 701 and 702 in the order of application C, application A, and application B. and logo 703.
  • the user may manually set the identifier of the application to be displayed preferentially in the operation bar 700 .
  • the user can open the application interface 704 of the setting APP, and the application interface 704 includes the option 705 of the notification center APP. If it is detected that the user clicks on the option 705, as shown in (b) of FIG. 7, the mobile phone can display the setting interface 706 of the notification center APP.
  • the user can set the application list 706 to be displayed preferentially in the operation bar 700 .
  • the application list 707 including application D as an example, when the mobile phone receives the notification message from the application D, the notification center APP can display the logo of the application D in the first position of the operation bar 700 .
  • the notification center APP displays the identifiers of multiple applications in the operation bar 700
  • the user can also manually change the sequence relationship between the identifiers of these applications. For example, in the notification bar 602 shown in FIG. 6 , the user can drag the logo 701 of application A to the position where the logo 702 of application B is located. When it is detected that the user has released his finger, the notification center APP can respond to the user's current The input drag operation swaps the positions of the logo 701 and the logo 702 , thereby changing the positional relationship between the logos of multiple applications in the operation bar 700 .
  • the user can input a corresponding operation to the identifier of the application in the operation bar 700, and trigger the notification center APP to perform management operations such as filtering, pinning or deleting the notification message with the application as the granularity, so as to improve the user's understanding of the notification bar. Management efficiency and usage experience of notification messages.
  • the notification center APP may also display a button 801 in the operation bar 700 for displaying all notification messages in the notification bar 602. If it is detected that the user clicks the button 801 , it means that the user needs to display all the notification messages received by the current applications in the notification bar 602 , the notification center APP can mark the button 801 as the selected state, and display the current applications in the notification bar 602 All received notification messages, such as notification message 603 , notification message 604 , notification message 605 , and notification message 606 described above.
  • the notification manager located in the framework layer of the mobile phone application may store notification objects sent from various applications in the preset database 1, and each notification object corresponds to a notification message. Still taking the notification bar 602 shown in FIG. 8 as an example, see Table 2.
  • the database 1 includes the notification object 1 corresponding to the notification message 603, the notification object 2 corresponding to the notification message 604, and the notification object corresponding to the notification message 605. 3 and the notification object 4 corresponding to the notification message 606 .
  • the notification manager can sort the notification objects in Table 1 according to the receiving time of each notification message. Alternatively, the notification manager may also sort the notification objects in Table 1 according to different applications, which is not limited in this embodiment of the present application.
  • notification object application receive time title Message content notification object 1 App A's logo time 1 Title 1 Content 1 notification object 2 App B's ID time 2 Title 2 Content 2 notification object 3 App A's logo time 3 Title 3 Content 3 notification object 4 Application C's logo time 4 Title 4 Content 4
  • the notification center APP may send a first instruction to the notification manager, where the first instruction is used to instruct to display all notification messages in the notification bar 602 . Further, in response to the first instruction, the notification manager can instruct the notification center APP to draw a corresponding notification message in the notification bar 602 according to each notification object shown in Table 2 at this time, and finally display the current applications in the notification bar 602 All notification messages received.
  • the notification center APP can call ViewPager (view page turning tool) to create ViewPager1. Furthermore, ViewPager can draw each notification object as a control (View) in ViewPager1. Subsequently, the notification center APP may display the content in ViewPager1 in the notification bar 602, thereby displaying all currently received notification messages.
  • ViewPager view page turning tool
  • ViewPager can draw each notification object as a control (View) in ViewPager1.
  • the notification center APP may display the content in ViewPager1 in the notification bar 602, thereby displaying all currently received notification messages.
  • the user can also trigger the notification center APP to filter the current notification messages in the notification bar 602 with the granularity of the application by manipulating the identifiers of one or more applications in the operation bar 700 .
  • the button 801 in the operation bar 700 is in a selected state, and the notification center APP displays all the notification messages currently received by each application in the notification bar 602 .
  • the filtering operation may be a click operation, indicating that the user needs to display all notification messages currently received by application A in the notification bar 602 .
  • the notification center APP can mark the identification 701 of the application A in the operation bar 700 as a selected state, and display all the notification messages received by the current application A in the notification bar 602 , such as the above notification message 603 and notification message 605.
  • the notification center APP may send a second instruction to the notification manager, where the second instruction is used to instruct to display all notification messages of application A in the notification bar 602 .
  • the notification manager may filter out one or more notification objects corresponding to application A from the notification objects shown in Table 2, that is, notification object 1 and notification object 3 .
  • the notification manager may instruct the notification center APP to draw the notification message 603 and the notification message 605 received by the current application A in the notification bar 602 according to the filtered notification object 1 and notification object 3 .
  • the notification center APP can call ViewPager to create ViewPager2. Further, ViewPager can draw the filtered notification object 1 as a control (View) in ViewPager2, and draw the filtered notification object 3 as a control (View) in ViewPager2. Subsequently, the notification center APP may display the content in ViewPager2 in the notification bar 602, thereby displaying all notification messages received by the current application A. In some embodiments, the notification center APP may set the order of the notification message 603 and the notification message 605 in the notification bar 602 according to the receiving time of the notification message 603 and the notification message 605 .
  • the user can filter out all notification messages of application A in the notification bar 602, which is convenient for the user to quickly find the notification message of a certain application with the application as the granularity, and improves the user's awareness of notification Management efficiency and usage experience of notification messages in column 602 .
  • the notification center APP can cancel the selection of the logo 701 of application A in the operation bar 700, and apply the The identifier 702 of B is marked as the selected state.
  • the notification center APP can display all notification messages received by the current application B in the notification bar 602 , such as the above notification message 604 . That is to say, when it is detected that the user clicks the logo 702 of application B in the operation bar 700, the notification center APP can no longer screen the notification messages of application A, but re-screen the notification messages of application B in all notification messages .
  • the notification center APP can continue to display the operation bar 700.
  • the logo 701 of application A is marked as the selected state, and the logo 702 of application B is also marked as the selected state.
  • the notification center APP can display all notification messages received by the current application A and application B in the notification bar 602 .
  • the notification center APP can instruct the notification manager to filter out the notification objects of application A and application B from all the notification objects shown in Table 2.
  • the notification manager may instruct the notification center APP to draw the filtered notification objects in the notification bar 602 , so as to present the notification messages received by the application A and the application B in the notification bar 602 . That is to say, the user can click the identifiers of multiple applications in the operation bar 700 to trigger the notification center APP to filter the notification messages of the multiple applications in the notification bar 602 .
  • the notification center APP displays the filtered notification messages of application A and application B in the notification bar 602, if the user wishes to cancel the notification message of application A. filter, the user can input a preset cancel filter operation to the flag 701 of the application A in the operation bar 700 . For example, if it is detected that the user clicks the logo 701 of application A in the operation bar 700 again (ie, cancels the filtering operation), as shown in (a) of FIG. 11 , the notification center APP can display the logo 701 of application A in the operation bar 700 Return to the unselected state, and delete the notification message of application A in the notification bar 602 . At this time, the logo 702 of the application B in the operation bar 700 is still in the selected state, and only the notification message of the application B is retained in the notification bar 602 .
  • the user may also input the above-mentioned preset cancel screening operation into the identifier 702 of application B in the operation bar 700 .
  • the notification center APP can display the identifier 702 of application B in the operation bar 700 Revert to unselected state.
  • the notification center APP can select the button 801 in the operation bar 700 by default, and display all the notification messages currently received by each application in the notification bar 602, for example
  • the notification message 603 , the notification message 604 , the notification message 605 and the notification message 606 are described above.
  • the user can select the identifiers of one or more applications in the operation bar 700 to trigger the notification center APP to filter out the notification messages of the corresponding one or more applications for the user in the notification bar 602, which is convenient for the user to use the application as the granularity Quickly find the notification message of a certain application, and improve the management efficiency and usage experience of the notification message in the notification bar 602 by the user.
  • the user can also trigger the notification center APP to display the notification messages of the corresponding one or more applications on the notification bar 602 by manipulating the identifiers of one or more applications in the operation bar 700 .
  • the notification center APP displays the notification messages currently received by all applications in the notification bar 602 . If the user wishes to display the notification message of application A on top in the notification bar 602 , the user may input a preset pinning operation into the identifier 701 of application A in the operation bar 700 . For example, if it is detected that the user drags the logo 701 of the application A in the operation bar 700 to slide down, the notification center APP can send a third instruction to the notification manager, and the third instruction is used to instruct the application A to be displayed on top in the notification bar 602 notification message.
  • the notification manager may add a preset state identifier to the notification object corresponding to application A (ie notification object 1 and notification object 3) in the above database 1, where the state identifier is used to indicate the corresponding notification object is on top. Further, as shown in Table 3, the notification manager may rearrange each notification object in the database 1 based on the database 1 shown in Table 2, and arrange the notification objects in the top state on the top of the database 1. Further, the notification manager may instruct the notification center APP to draw a corresponding notification message in the notification bar 602 according to each notification object shown in Table 3. Finally, as shown in (b) of FIG.
  • the notification center APP can display the notification message 603 corresponding to the notification object 1 and the notification message 605 corresponding to the notification object 3 on the top of the notification bar 602 , so as to display the notification message 603 of the application A
  • the notification message is displayed on top of the notification bar 602 .
  • notification object application receive time title Message content Status ID notification object 1 App A's logo time 1 Title 1 Content 1 top notification object 3 App A's logo time 3 Title 3 Content 3 top notification object 2 App B's ID time 2 Title 2 Content 2 notification object 4 Application C's logo time 4 Title 4 Content 4
  • the notification center APP draws the notification message 603 according to the notification object 1 and the notification object 3 A corresponding pin icon 1201 may be included in the notification message 605 to prompt the user that the notification message has been pinned and displayed.
  • the notification center APP can also add a top icon 1202 around the logo 701 of the application A in the operation bar 700 to remind the user that the notification message of the application A has been displayed on the top. Pin icon 1202 and pin icon 1201 may be the same or different.
  • the notification center APP can also display the notification message 1301 on the top of the notification bar 602 .
  • the application A can send the notification object 5 corresponding to the notification message 1301 to the notification manager. Since the notification object 5 comes from application A, and the application A has been set to the top state by the user, the notification manager can add a state flag indicating the top state to the notification object 5, and add the notification object 5 to the database shown in Table 3 1 to get the database shown in Table 4. Further, the notification manager can instruct the notification center APP to draw the corresponding notification message in the notification bar 602 according to each notification object shown in Table 4, and finally obtain the notification bar 602 shown in FIG. 13 .
  • notification object application receive time title Message content Status ID notification object 5 App A's logo time 5 Title 5 Content 5 top notification object 1 App A's logo time 1 Title 1 Content 1 top notification object 3 App A's logo time 3 Title 3 Content 3 top notification object 2 App B's ID time 2 Title 2 Content 2 notification object 4 Application C's logo time 4 Title 4 Content 4
  • the notification center APP can display the received new notification message in the pinned application in the notification bar 602. After the notification message.
  • the user can trigger the notification center APP to display all notification messages of the entire application on the top of the notification bar 602 by selecting the identifiers of one or more applications in the operation bar 700, so as to facilitate the user to quickly find an application with the application as the granularity
  • the notification message in the notification bar 602 improves the management efficiency and usage experience of the user for the notification message in the notification bar 602 .
  • the notification center APP in addition to displaying the notification messages of one application on the top, can also display the notification messages of multiple applications on the top. As shown in (a) of FIG. 14 , after the notification center APP displays the notification message of application A on the top of the notification bar 602, if it is detected that the user drags the logo 703 of application C in the operation bar 700 to slide down, the notification The central APP can continue to display the notification message of the application C, that is, the notification message 606, on the top of the notification bar 602 according to the above method. When the notification messages of application A and application C both need to be displayed on the notification bar 602 on top, the notification center APP can arrange the order of the notification messages in the notification bar 602 according to their receiving time. For example, notification messages that are received later are closer to the top of the notification bar 602 .
  • the notification center APP can prioritize and display the notification message of application C on the top of the notification bar 602 .
  • the notification message of application A is located after the notification message of application C in the notification bar 602 . That is to say, the notification center APP can also arrange a plurality of notification messages to be displayed on the top in the notification bar 602 according to the order in which the user inputs the top operation for different applications.
  • the notification center APP can instruct the notification manager to delete the status flags indicating the top status in notification object 1 and notification object 3. At this time, only the notification object 4 of the application C contains the status flag indicating the top status. Further, as shown in (a) of FIG.
  • the notification manager can instruct the notification center APP to draw the corresponding notification message in the notification bar 602 according to each notification object shown in Table 5, and finally only put the top message in the notification bar 602 Display the notification message of application C, and cancel the function of displaying the notification message of application A on top.
  • notification object application receive time title Message content Status ID
  • notification object 4 Application C's logo time 4 Title 4 Content 4 top notification object 1 App A's logo time 1 Title 1 Content 1 notification object 2 App B's ID time 2 Title 2 Content 2 notification object 3 App A's logo time 3 Title 3 Content 3
  • the notification center APP may instruct the notification manager to delete the status flag indicating the top status in the notification object 4 .
  • the notification manager may instruct the notification center APP to draw a corresponding notification message in the notification bar 602 according to each notification object shown in Table 2.
  • the application in the notification bar 602 The functions of the notification messages of A and Application C being displayed on the top are canceled.
  • the notification center APP may also display one or more notification messages on the top of the notification bar 602 .
  • the notification center APP may set the top button 1601 in the notification message of the notification bar 602 . If it is detected that the user clicks the sticky button 1601 in the notification message 605, that is, the sticky display function of the notification message 605 is turned on, as shown in (b) of FIG. 16, the notification center APP can display the notification message 605 on top of the notification bar 602 middle. At this time, other notification messages of application A will not be displayed on top of the notification bar 602 . If the notification center APP subsequently receives a new notification message from application A, the notification center APP will not display the new notification message on the top of the notification bar 602 either.
  • the top button 1601 in the notification message 605 can be updated to the cancel button 1602. . If it is detected that the user clicks the cancel button 1602 in the notification message 605, the notification center APP can restore the notification message 605 to the state before it was displayed on the top of the notification bar 602, that is, the notification message 605 shown in (a) of FIG. 16, Thus, the top display function of this notification message 605 is cancelled.
  • the notification center APP displays all notification messages of a certain application on top of the notification bar 602
  • the user can also cancel the pinned display function of one or more of the notification messages.
  • the user operates the logo of application C in the operation bar 700 to trigger the notification center APP to display the notification message 606 of application C on top of the notification bar 602 .
  • the notification center APP can be triggered to display the setting button 1701 of the notification message 606 .
  • the notification center APP may display the management menu 1702 of the notification message 606 .
  • the user may choose to delete or unpin the notification message 606 in the management menu 1702 . If it is detected that the user selects to unpin the notification message 606 in the management menu 1702 , as shown in (b) of FIG.
  • the notification center APP can cancel the pinned display function of the notification message 606 this time.
  • the notification message 606 of the application C is not displayed on the top of the notification bar 602
  • the application C in the operation bar 700 is still in the top state.
  • the notification center APP can still display the notification message 1703 on top of the notification bar 602 according to the above method.
  • the user can trigger the notification center APP to display the notification message 605 on the notification bar 602 by clicking the top button 1601 in the notification message 605 of application A. Subsequently, if it is detected that the user has input a sticking operation to the logo 701 of application A in the operation bar 700, as shown in (b) of FIG. 18 , the notification center APP can still send all notification messages of application A (that is, notification A message 603 and a notification message 605) are displayed on top in the notification bar 602.
  • the pinning operation or the unpinning operation performed by the user on a notification message will not affect the pinning display function set by other notification messages of the corresponding application.
  • the user may also preset one or more applications (which may be referred to as top applications) in the notification bar 602 that need to be displayed on top of the notification message.
  • the user can enter the setting interface 705 of the notification center APP in the setting APP of the mobile phone.
  • the user can set the pinned application 708 that needs to be pinned to display the notification message.
  • the notification center APP can display the logo 1902 of application D in the operation bar 700, A sticky icon can be set near the logo 1902 of D.
  • the notification center APP can display the notification message 1901 on the top of the notification bar 602 . That is, before receiving the notification message of application D, the user can preset the notification message of application D to be displayed on top of the notification bar 602 in advance. In this way, after receiving the notification message of application D, the mobile phone can directly display the notification message of application D on the top of the notification bar 602 .
  • the user can also trigger the notification center APP to delete the notification messages of the corresponding one or more applications in the notification bar 602 by operating the identifiers of one or more applications in the operation bar 700 .
  • the notification center APP displays the notification messages currently received by all applications in the notification bar 602 .
  • a preset deletion operation can be input into the identifier 701 of application A in the operation bar 700 .
  • the notification center APP can send a fourth instruction to the notification manager, and the fourth instruction is used to instruct the notification bar 602 to delete all application A's notification message.
  • the notification manager may delete all notification objects of application A in the database 1 shown in Table 2.
  • the updated database 1 only includes notification objects of application B and application C.
  • the notification manager may instruct the notification center APP to draw a corresponding notification message in the notification bar 602 according to each notification object shown in Table 6.
  • the notification message displayed by the notification center APP in the notification bar 602 no longer includes the notification message of application A
  • the operation bar 700 no longer includes the identification 701 of application A.
  • notification object application receive time title Message content notification object 3 App A's logo time 3 Title 3 Content 3 notification object 4 Application C's logo time 4 Title 4 Content 4
  • the notification center APP can display all notification messages of application A in the notification bar 602 .
  • the notification center APP can delete all the notification messages of the application A according to the above method, as shown in (b) in FIG. 21 . It is also possible to automatically mark the next application (ie, application B) of application A in the operation bar 700 as a selected state, and display all notification messages of application B in the notification bar 602 .
  • the notification center APP can display all the notification messages of the application A in the notification bar 602 .
  • the notification center APP can delete all the notification messages of application B according to the above method, but at this time, the application A is still displayed in the notification bar 602 of all notification messages.
  • the notification center APP can display other notifications remaining after all notification messages of application B are deleted in the notification bar 602 information.
  • the notification center APP can pin all notification messages of application A and display it in the notification bar 602 .
  • the notification center APP can delete all the information of the application A in the notification bar 602 according to the above method. notification message.
  • the notification center APP can display notification message 2301 on top of the notification bar 602.
  • the user can delete the notification messages of one or more applications in the notification bar 602 in batches by selecting the identifier 701 of the application A in the operation bar 700, which is convenient for the user to manage the notification messages in the notification bar 602 with the application as the granularity, and improves the User experience.
  • the user can also input a preset delete operation to the button 801 in the operation bar 700 for displaying all notification messages. For example, if it is detected that the user drags the button 801 to slide up, as shown in (b) of FIG. 24 , the notification center APP can delete the notification messages of all current applications, that is, clear the notification bar 602 .
  • the notification center APP may also set a delete button 2501 in the operation bar 700 . If it is detected that the user clicks the delete button 2501 , as shown in (b) of FIG. 24 , the notification center APP can delete the notification messages of all current applications, that is, clear the notification bar 602 .
  • the notification center APP may further set the above-mentioned delete operation as an operation of dragging the application logo in the operation bar 700 to the delete button 2501 .
  • the notification center APP can delete all the notification messages of the application A according to the above method.
  • the notification center APP can delete the notification messages of all current applications according to the above method, that is, clear the notification bar 602 .
  • the notification message management method can display the identifier of the application that currently has the notification message in the operation bar.
  • the user can quickly and conveniently filter, top or delete the notification messages of one or more applications with the application as the granularity, so that the user does not need to search for each notification message in the notification bar and make the notification message management, so as to improve the user's management efficiency and use experience of notification messages in the notification bar.
  • the embodiment of the present application discloses an electronic device, which includes a processor, and a memory, an input device, and an output device connected to the processor.
  • the input device and the output device can be integrated into one device, for example, a touch sensor can be used as an input device, a display screen can be used as an output device, and the touch sensor and the display screen can be integrated into a touch screen.
  • the above electronic device may include: a touch screen 2601, the touch screen 2601 includes a touch sensor 2606 and a display screen 2607; one or more processors 2602; a memory 2603; and one or more computer programs 2604, the various devices may be connected by one or more communication buses 2605.
  • the one or more computer programs 2604 are stored in the aforementioned memory 2603 and configured to be executed by the one or more processors 2602, the one or more computer programs 2604 comprising instructions that may be used to perform the aforementioned implementations steps in the example.
  • all the relevant contents of the steps involved in the above method embodiments can be cited in the functional description of the corresponding physical device, which will not be repeated here.
  • the processor 2602 may be the processor 110 shown in FIG. 2
  • the memory 2603 may be the internal memory 121 shown in FIG. 2
  • the display screen 2607 may be the display screen 194 shown in FIG. 2
  • the above-mentioned touch sensor 2606 may specifically be a touch sensor in the sensor module 180 shown in FIG. 2 , which is not limited in this embodiment of the present application.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供一种通知消息的管理方法及电子设备,涉及终端技术领域,可向用户提供在通知栏中快速查找和管理通知消息的功能,提高用户对通知栏中通知消息的管理效率和使用体验。该方法包括:电子设备显示通知界面,该通知界面中包括M(M为大于等于1的整数)个应用的N(N为大于1的整数)条通知消息,这些通知消息一般还未被用户读取;其中,上述通知界面中还包括操作栏,操作栏内显示有上述M个应用的标识。

Description

一种通知消息的管理方法及电子设备
本申请要求于2020年11月11日提交国家知识产权局、申请号为202011257002.0、申请名称为“一种通知消息的管理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及,尤其涉及终端技术领域,尤其涉及一种通知消息的管理方法及电子设备。
背景技术
目前,手机等电子设备中均会设置通知栏(notification panel),用于展示操作系统或应用接收到的通知消息。以手机为例,如图1中的(a)所示,手机在显示桌面等应用时可同时显示状态栏(status bar)101。状态栏101中可显示时间、电量、信号强度、蓝牙状态以及运营商名称等。
如果检测到用户对状态栏101执行下拉操作,如图1中的(b)所示,手机可显示下拉菜单102。当手机中存在应用的通知消息时,手机可将这些通知消息显示在下拉菜单102的通知栏103中。其中,手机可以通知消息或通知消息组(通知消息组中包含多个通知消息)的形式在通知栏103中逐条显示接收到的通知消息。
但是,当通知消息(或通知消息组)的数目较多时,用户需要在通知栏103中上下滑动才能定位到相应的通知消息(或通知消息组),使得用户浏览和管理通知消息时的使用体验不高。
发明内容
本申请提供一种通知消息的管理方法及电子设备,可向用户提供在通知栏中快速查找和管理通知消息的功能,提高用户对通知栏中通知消息的管理效率和使用体验。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种通知消息的管理方法,包括:电子设备可显示通知界面,该通知界面中包括M(M为大于等于1的整数)个应用的N(N为大于1的整数)条通知消息,这些通知消息一般还未被用户读取;其中,上述通知界面中还包括操作栏,操作栏内显示有上述M个应用的标识。
也就是说,本申请在通知界面中额外设置了操作栏,操作栏中显示有与当前各个通知消息对应的应用的标识。这样,用户在通知界面的操作栏中可以快速浏览到当前各个通知消息所属的应用具体有哪些。后续,用户可以对操作栏中应用的标识输入对应的操作,触发电子设备以应用为粒度对通知消息进行管理,以提高用户对通知栏中通知消息的管理效率和使用体验。
在一种可能的实现方式中,上述M个应用的标识包括第一应用的标识(例如第一应用的图标),在电子设备显示了上述通知界面之后,还包括:电子设备接收用户对第一应用的标识输入的第一筛选操作;响应于第一筛选操作,电子设备可在通知界面中显示上述N条通知消息中第一应用的通知消息。此时,其他应用的通知消息可以不显示在通知界面中。
这样一来,用户通过选中操作栏中某一应用的标识,可在通知界面中筛选出来自某一应用的通知消息,方便用户以应用为粒度快速查找到某一应用的通知消息,提高用户对通知消息的管理效率和使用体验。
在一种可能的实现方式中,在电子设备接收用户对第一应用的标识输入的第一筛选操作之后,还包括:响应于第一筛选操作,电子设备将操作栏中第一应用的标识标记为选中状态,从而提示用户当前第一应用的标识被选中,通知界面中呈现的是第一应用的通知消息的筛选结果。
在一种可能的实现方式中,上述M个应用的标识还包括第二应用的标识,在电子设备在通知界面中显示N条通知消息中第一应用的通知消息之后,还包括:电子设备接收用户对第二应用的标识输入的第二筛选操作;响应于第二筛选操作,电子设备可在通知界面中显示N条通知消息中第二应用的通知消息。
也就是说,电子设备在通知界面中筛选出了第一应用的通知消息后,如果用户继续筛选第二应用的通知消息,则电子设备可以不再对第一应用的通知消息进行筛选,而是重新在所有通知消息中对第二应用的通知消息进行筛选。
在一种可能的实现方式中,在电子设备在通知界面中显示N条通知消息中第二应用的通知消息之后,还包括:电子设备接收用户对第二应用的标识输入的第一取消筛选操作;响应于第一取消筛选操作,电子设备可在通知界面中显示N条通知消息。
也就是说,当用户对第二应用的标识输入的第一取消筛选操作时,电子设备可以重新在通知界面中显示所有的通知消息。
或者,当上述M个应用的标识还包括第二应用的标识时,电子设备还可以接收用户对第二应用的标识输入的第二筛选操作;响应于第二筛选操作,电子设备可在通知界面中显示N条通知消息中第一应用和第二应用的通知消息。
也就是说,电子设备在通知界面中筛选出了第一应用的通知消息后,如果用户继续筛选第二应用的通知消息,则电子设备可以在所有通知消息中同时筛选第一应用和第二应用的通知消息,向用户在通知界面中呈现第一应用和第二应用的通知消息。
在一种可能的实现方式中,在电子设备在通知界面中显示N条通知消息中第一应用和第二应用的通知消息之后,还包括:电子设备可以接收用户对第二应用的标识输入的第一取消筛选操作;响应于第一取消筛选操作,电子设备可在通知界面中显示N条通知消息中第一应用的通知消息。
当电子设备在通知界面中筛选出了第一应用和第二应用的通知消息后,如果用户对第二应用的标识输入第一取消筛选操作,则电子设备可取消对第二应用的通知消息的筛选操作,在通知界面中保留对第一应用的通知消息的筛选结果。
进一步地,在电子设备在通知界面中显示N条通知消息中第一应用的通知消息之后,还包括:电子设备可以接收用户对第一应用的标识输入的第二取消筛选操作;响应于第二取消筛选操作,电子设备可在通知界面中显示N条通知消息。
也就是说,当用户取消了对所有应用的通知消息的筛选操作后,电子设备可取消对第二应用的通知消息的筛选操作。
在一种可能的实现方式中,上述M个应用的标识包括第一应用的标识,在电子设备显示通知界面之后,还包括:电子设备接收用户对第一应用的标识输入的第一置顶操作,例 如拖拽第一应用的标识向下滑动的操作;响应于第一置顶操作,电子设备可将N条通知消息中第一应用的通知消息置顶显示在通知界面中。
也就是说,用户可以通过操作操作栏中应用的标识,触发电子设备在通知界面中置顶显示对应应用的所有通知消息,方便用户以应用为粒度快速查找到某一应用的通知消息,提高用户对通知消息的管理效率和使用体验。
在一种可能的实现方式中,在电子设备接收用户对第一应用的标识输入的第一置顶操作之后,还包括:响应于第一置顶操作,电子设备可在第一应用的标识周围显示置顶图标,从而提示用户当前第一应用的通知消息已被置顶显示。
在一种可能的实现方式中,在电子设备接收用户对第一应用的标识输入的第一置顶操作之后,还包括:电子设备获取第一通知消息;当第一通知消息为第一应用的通知消息时,电子设备可将第一通知消息置顶显示在通知界面中;当第一通知消息为第一应用之外的其他应用的通知消息时,电子设备可在通知界面中将第一通知消息显示在第一应用的通知消息之后。也就是说,当整个应用的通知消息被置顶显示时,该应用接收到的新的通知消息也会被置顶显示。
在一种可能的实现方式中,上述M个应用的标识还包括第二应用的标识,在电子设备将N条通知消息中第一应用的通知消息置顶显示在通知界面中之后,还包括:电子设备可接收用户对第二应用的标识输入的第二置顶操作(第二置顶操作可与第一置顶操作相同);响应于第二置顶操作,电子设备可将N条通知消息中第二应用的通知消息置顶显示在通知界面中,这样一来,电子设备可响应用户对操作栏中应用标识的置顶操作,对每个应用的通知消息进行置顶显示;或者,响应于第二置顶操作,电子设备也可以将N条通知消息中第一应用和第二应用的通知消息置顶显示在通知界面中,这样一来,电子设备可同时对多个应用的通知消息进行置顶显示。
在一种可能的实现方式中,在电子设备将N条通知消息中第一应用的通知消息置顶显示在通知界面中之后,还包括:电子设备接收用户对第一应用的标识输入的取消置顶操作;响应于取消置顶操作,电子设备可恢复第一应用的通知消息在通知界面中的显示位置,即用户可以应用为粒度取消对第一应用的通知消息置顶显示的功能。
在一种可能的实现方式中,在电子设备将N条通知消息中第一应用的通知消息置顶显示在通知界面中之后,还包括:电子设备接收用户对第二通知消息输入的取消置顶操作,第二通知消息为置顶显示的第一应用的通知消息;响应于取消置顶操作,电子设备可恢复第二通知消息在通知界面中的显示位置,即用户可以单条通知消息为粒度取消对某一通知消息置顶显示的功能。
当电子设备取消对某一通知消息置顶显示的功能后,并不影响对该通知消息所属的整个应用的置顶显示功能。后续,如果电子设备再接收到第一应用的通知消息,还可以将第一应用的通知消息置顶显示在通知界面。
在一种可能的实现方式中,上述方法还包括:当电子设备未获取到第三应用的通知消息时,电子设备可响应用户的相关设置操作将第三应用设置为置顶应用;这样,在电子设备显示通知界面之后,如果电子设备获取到第三应用的通知消息,则电子设备可将第三应用的通知消息置顶显示在通知界面,并在操作栏中显示第三应用的标识。也就是说,在接收到第三应用的通知消息之前,用户便可以预先设置需要置顶显示第三应用的通知消息。 这样,当接收到第三应用的通知消息后,电子设备可直接将第三应用的通知消息置顶显示在通知界面中。
在一种可能的实现方式中,上述M个应用的标识包括第一应用的标识,在电子设备显示通知界面之后,还包括:电子设备接收用户对第一应用的标识输入的删除操作,例如拖拽第一应用的标识向上滑动的操作;响应于删除操作,电子设备可删除通知界面中第一应用的通知消息。
这样,用户通过操作操作栏中应用的标识,可在通知界面中批量删除某一应用的通知消息,方便用户以应用为粒度对通知界面中通知消息的进行管理,提高用户的使用体验。
在一种可能的实现方式中,上述操作栏中还可以包括用于显示所有通知消息的第一按钮;如果检测到用户对第一按钮输入的第一操作(例如点击操作),则电子设备可在通知界面中显示上述N条通知消息。
在一种可能的实现方式中,上述操作栏中还可以包括用于删除所有通知消息的第二按钮;如果检测到用户对第二按钮输入的第二操作(例如点击操作),则电子设备可删除通知界面中的所有通知消息(即上述N条通知消息)。
在一种可能的实现方式中,上述M个应用的标识中每个应用的标识上均设置有角标,该角标用于指示对应应用当前接收到的通知消息的数目。
另外,电子设备在操作栏中显示各个应用的标识时,可根据各个应用最近一次接收到通知消息的接收时间对各个应用的标识进行排序;或者,电子设备也可以根据用户对各个应用的使用频率或使用时间等参数对各个应用的标识进行排序,本申请对此不做任何限制。
第二方面,本申请提供一种电子设备,包括:触摸屏、一个或多个处理器、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与触摸屏以及存储器均耦合,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述任一项所述的通知消息的管理方法。
第三方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的通知消息的管理方法。
第四方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的通知消息的管理方法。
可以理解地,上述提供的第二方面所述的电子设备、第三方面所述的计算机存储介质,以及第四方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为现有技术中打开通知栏的应用场景;
图2为本申请实施例提供的一种电子设备的结构示意图一;
图3为本申请实施例提供的一种电子设备中操作系统的架构示意图;
图4为本申请实施例提供的一种通知消息的管理方法的应用场景示意图一;
图5为本申请实施例提供的一种通知消息的管理方法的应用场景示意图二;
图6为本申请实施例提供的一种通知消息的管理方法的应用场景示意图三;
图7为本申请实施例提供的一种通知消息的管理方法的应用场景示意图四;
图8为本申请实施例提供的一种通知消息的管理方法的应用场景示意图五;
图9为本申请实施例提供的一种通知消息的管理方法的应用场景示意图六;
图10为本申请实施例提供的一种通知消息的管理方法的应用场景示意图七;
图11为本申请实施例提供的一种通知消息的管理方法的应用场景示意图八;
图12为本申请实施例提供的一种通知消息的管理方法的应用场景示意图九;
图13为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十;
图14为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十一;
图15为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十二;
图16为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十三;
图17为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十四;
图18为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十五;
图19为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十六;
图20为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十七;
图21为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十八;
图22为本申请实施例提供的一种通知消息的管理方法的应用场景示意图十九;
图23为本申请实施例提供的一种通知消息的管理方法的应用场景示意图二十;
图24为本申请实施例提供的一种通知消息的管理方法的应用场景示意图二十一;
图25为本申请实施例提供的一种通知消息的管理方法的应用场景示意图二十二;
图26为本申请实施例提供的一种电子设备的结构示意图二。
具体实施方式
下面将结合附图对本实施例的实施方式进行详细描述。
本申请实施例提供的一种通知消息的管理方法可应用于手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等电子设备中,本申请实施例对此不做任何限制。
示例性的,图2示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,摄像头193以及显示屏194等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,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 circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括一个或多个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后, 被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成一个或多个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的方法,以及各种功能应用和数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在另一些实施例中,处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,来使得电子设备100执行本申请实施例中提供的方法,以及各种功能应用和数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置一个或多个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速 度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
另外,上述电子设备中还可以包括按键190、马达191、指示器192以及用户标识模块(subscriber identification module,SIM)卡接口195等一种或多种部件,本申请实施例对此不做任何限制。
上述电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图3是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
1、应用程序层
应用程序层可以包括一系列应用程序。
如图3所示,上述应用程序可以包括通话,联系人,相机,图库,日历,地图,导航,蓝牙,音乐,视频,短信息等应用(application,APP)。
在本申请实施例中,上述应用程序还可以包括通知中心APP。如果其他应用接收到的通知消息未被用户读取,该应用可将通知消息发送给通知中心APP,由通知中心APP将接收到的通知消息显示在通知栏(也可称为通知面板)中。其中,通知栏所在的界面可称为通知界面。例如,通知界面可以是下拉菜单所在的界面,或者,通知界面也可以是桌面、负一屏界面、锁屏界面或某一应用中的应用界面等。
如图4所示,通知中心APP接收到来自应用A的通知消息401后,可在通知栏400中以卡片等形式显示通知消息401。其中,通知消息401可以包括标题402、应用A的标识403、接收时间404以及消息内容405等控件,本领域技术人员可以按照实际应用场景或实际经验设置通知消息(例如通知消息401)中的各个控件。
当然,通知栏400中的通知消息可以是来自某一应用的通知消息,也可以是来自操作系统的通知消息(例如版本升级消息),还可以是来自FA(Feature Ability,FA)或PA(Particle Ability)的通知消息,本申请实施例对此不做任何限制。
2、应用程序框架层
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
仍如图3所示,应用程序框架层中可以包括通知管理器(notification manager)。示例性的,应用A接收到上述通知消息401后,可先实例化一个对应的通知对象(即notification对象,也可称为结构体)。例如,该notification对象中可包含标题402、应用A的标识403、接收时间404以及消息内容405等信息,这些信息中的一项或多项可作为上述通知消息401中需要显示的内容。进而,应用A可调用通知管理器的相关接口(例如notify()接口)将创建好的notification对象作为参数传递给通知管理器。
示例性的,通知管理器在预设的数据库1中存储有来自各个应用发送的notification对象。例如,如表1所示,通知管理器在数据库1中存储有来自应用A的两个notification对 象以及来自应用B的一个notification对象。其中,每个notification对象与一条通知消息对应。例如,notification对象1与通知消息401对应,notification对象2与通知消息406对应,notification对象3与通知消息407对应。
通知管理器获取到应用A发来的notification对象1后,可将notification对象1添加至表1所示的数据库1中。进而,如图4所示,通知管理器可指示通知中心APP按照表1所示的每个notification对象,在通知栏400中绘制对应的通知消息401、通知消息406以及通知消息407。这样,应用每接收到新的通知消息时,均可按照上述方法更新通知栏400中显示的通知消息。
表1
notification对象 应用 接收时间 标题 消息内容
notification对象1 应用A的标识 时间1 标题1 内容1
notification对象2 应用B的标识 时间2 标题2 内容2
notification对象3 应用A的标识 时间3 标题3 内容3
…… …… …… …… ……
在本申请实施例中,如图5所示,通知中心APP还可以在通知栏400中设置操作栏501。操作栏501中显示有当前存在通知消息的应用的标识。例如,当通知栏400中的三条通知消息来自应用A和应用B时,操作栏501可以包括应用A的标识502以及应用B的标识503。后续,用户可以通过操作应用A的标识502,对通知栏400中来自应用A的一条或多条通知消息统一进行管理。或者,用户可以通过操作应用B的标识503,对通知栏400中来自应用B的一条或多条通知消息统一进行管理。
例如,如果通知中心APP检测到用户对操作栏501中应用A的标识502输入第一操作,则通知中心APP可向通知管理器发送删除指令,该删除指令用于删除通知栏400中来自应用A的通知消息。通知管理器响应于上述删除指令,可将表1中与应用A对应的所有notification对象删除。进而,通知管理器可指示通知中心APP按照更新后的表1重新绘制通知栏400中的各个通知消息。由于更新后的表1中不存在应用A的notification对象,因此,通知中心APP最终按照更新后的表1在通知栏400中绘制的通知消息不包括应用A的通知消息,从而实现以应用为粒度批量删除通知消息的功能。
当然,用户还可以对操作栏501中应用A的标识502(或应用B的标识503)输入其他操作,实现对某一应用的通知消息进行筛选、置顶等功能,后续实施例中将对此进行详细阐述,故此处不予赘述。
可以看出,本申请实施例通过在通知栏400中设置操作栏501,可将当前存在通知消息的应用的标识显示在操作栏501中。用户通过操作操作栏501中应用的标识,可以以应用为粒度快速、便捷的管理对应应用的所有通知消息,无需用户查找通知栏400中的每一条通知消息并对该条通知消息进行管理,从而提高用户对通知栏400中通知消息的管理效率和使用体验。
当然,应用程序框架层中还可以包括活动管理器,窗口管理器,内容提供器,视图系统,资源管理器,输入法管理器等。
其中,活动管理器可用于管理每个应用的生命周期。应用通常以activity的形式运行在操作系统中。活动管理器可以调度应用的activity进程管理每个应用的生命周期。窗口 管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。
3、Android runtime和系统库
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绘图的绘图引擎。
4、内核层
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等,本申请实施例对此不做任何限制。
以下将以手机作为电子设备举例,结合附图详细阐述本申请实施例提供的一种通知消息的管理方法。
示例性的,手机的应用程序层中可以安装通知中心APP(也可称为通知APP)。如图6所示,通知中心APP可以在下拉菜单601中显示通知栏602。通知栏602中包括各个应用接收到的通知消息。例如,通知中心APP可以按照应用接收通知消息的时间顺序,以卡片的形式在通知栏602中显示每一条通知消息。例如,图6所示的通知栏602中包括通知消息603、通知消息604、通知消息605以及通知消息606。其中,通知消息603和通知消息605来自应用A,通知消息604来自应用B,通知消息606来自应用C。每个通知消息中均可包括应用的标识(例如应用名称或应用图标等)、通知消息的标题、接收时间或消息内容等控件,本申请实施例对此不做任何限制。
当然,上述通知栏602中还可以显示更多的通知消息,当通知消息的数目过多无法全部显示在通知栏602时,通知中心APP可在通知栏602中隐藏一部分通知消息,用户可以通过输入滑动操作触发通知中心APP在通知栏602中显示被隐藏的通知消息。
在一些实施例中,仍如图6所示,通知栏602内还设置有操作栏700。操作栏700中显示有当前存在通知消息的应用的标识,例如,操作栏600中显示有应用A的标识701、 应用B的标识702以及应用C的标识703。在一些实施例中,操作栏700中每个应用的标识上可设置角标,角标中的数字用于指示对应应用当前存在的通知消息的数目。例如,应用A的标识701的角标中的数字为2,应用B的标识702和应用C的标识703的角标中的数字均为1,也即此时通知栏602中来自应用A的通知消息数目为2条,来自应用B和应用C的通知消息数目均为1条。这样,用户在操作栏700中可以快速浏览到当前通知栏602中通知消息所属的应用具体有哪些,以及每个应用接收到的通知消息的数目。
示例性的,通知中心APP在操作栏700中显示各个应用的标识时,可以按照每个应用最近一次接收到通知消息的接收时间对各个应用的标识进行排序。例如,应用A最近一次接收到通知消息603的接收时间T1晚于应用B最近一次接收到通知消息604的接收时间T2,应用B最近一次接收到通知消息604的接收时间T2晚于应用C最近一次接收到通知消息606的接收时间T3(即T1>T2>T3)。此时,通知中心APP可按照应用A、应用B和应用C的顺序依次排列上述标识701、标识702以及标识703。
或者,通知中心APP在操作栏700中显示各个应用的标识时,也可以按照用户对应用A、应用B和应用C的使用时长对各个应用的标识进行排序。例如,通知中心APP可统计最近一段时间(例如24小时)内用户使用应用A、应用B和应用C的使用时长。如果应用C的使用时长大于应用B的使用时长,应用B的使用时长大于应用A的使用时长,则通知中心APP可按照应用C、应用B和应用A的顺序依次排列排列上述标识701、标识702以及标识703。
类似的,通知中心APP在操作栏700中显示各个应用的标识时,也可以按照用户对应用A、应用B和应用C的使用频率对各个应用的标识进行排序。例如,通知中心APP可统计最近一段时间(例如24小时)内用户使用应用A、应用B和应用C的使用次数。如果应用C的使用时长大于应用A的使用时长,应用A的使用时长大于应用B的使用时长,则通知中心APP可按照应用C、应用A和应用B的顺序依次排列排列上述标识701、标识702以及标识703。
又或者,用户也可以手动设置在操作栏700中优先显示的应用的标识。如图7中的(a)所示,用户可以打开设置APP的应用界面704,应用界面704中包含通知中心APP的选项705。如果检测到用户点击选项705,则如图7中的(b)所示,手机可以显示通知中心APP的设置界面706。在设置界面706中用户可以设置优先在操作栏700中显示的应用名单706。以应用名单707中包括应用D举例,当手机接收到来自应用D的通知消息后,通知中心APP可将应用D的标识显示在操作栏700的首位。
另外,通知中心APP在操作栏700中显示出多个应用的标识后,用户也可以手动更改这些应用的标识之间的顺序关系。例如,在图6所示的通知栏602中,用户可以将应用A的标识701拖拽至应用B的标识702所在的位置,当检测到用户松开手指后,通知中心APP可响应用户本次输入的拖拽操作将标识701与标识702的位置互换,从而更改操作栏700中多个应用的标识之间的位置关系。
在本申请实施例中,用户可以对操作栏700中应用的标识输入对应的操作,触发通知中心APP以应用为粒度对通知消息进行筛选、置顶或删除等管理操作,以提高用户对通知栏中通知消息的管理效率和使用体验。
在一些实施例中,如图8所示,通知中心APP还可以在操作栏700中显示用于在通知 栏602中显示所有通知消息的按钮801。如果检测到用户点击按钮801,说明用户需要在通知栏602中显示当前各个应用接收到的所有通知消息,则通知中心APP可将按钮801标记为选中状态,并在通知栏602中显示当前各个应用接收到的所有通知消息,例如上述通知消息603、通知消息604、通知消息605以及通知消息606。
示例性的,位于手机应用程序框架层中的通知管理器可在预设的数据库1中存储来自各个应用发送的notification对象,每一个notification对象与一条通知消息对应。仍以图8所示的通知栏602举例,参见表2,此时数据库1中包括与通知消息603对应的notification对象1,与通知消息604对应的notification对象2,与通知消息605对应的notification对象3以及与通知消息606对应的notification对象4。通知管理器可以按照每一条通知消息的接收时间对表1中的notification对象进行排序。或者,通知管理器也可以按照不同的应用对表1中的notification对象进行排序,本申请实施例对此不做任何限制。
表2
notification对象 应用 接收时间 标题 消息内容
notification对象1 应用A的标识 时间1 标题1 内容1
notification对象2 应用B的标识 时间2 标题2 内容2
notification对象3 应用A的标识 时间3 标题3 内容3
notification对象4 应用C的标识 时间4 标题4 内容4
当检测到用户点击按钮801后,通知中心APP可向通知管理器发送第一指令,第一指令用于指示在通知栏602中显示所有的通知消息。进而,通知管理器响应于第一指令,可指示通知中心APP按照此时表2所示的每个notification对象在通知栏602中绘制对应的通知消息,最终在通知栏602中显示出当前各个应用接收到的所有通知消息。
例如,通知中心APP获取到表2中的每个notification对象后,可调用ViewPager(视图翻页工具)创建ViewPager1。进而,ViewPager可将每个notification对象作为一个控件(View)绘制在ViewPager1中。后续,通知中心APP可将ViewPager1中的内容显示在通知栏602中,从而显示出当前接收到的所有通知消息。
在一些实施例中,用户还可以通过操作操作栏700中一个或多个应用的标识,触发通知中心APP在通知栏602中以应用为粒度对当前的通知消息进行筛选。
示例性的,仍如图8所示,操作栏700中的按钮801处于被选中的状态,此时通知中心APP在通知栏602中显示出当前各个应用接收到的所有通知消息。如果检测到用户向操作栏700中应用A的标识701输入筛选操作,例如,该筛选操作可以为点击操作,说明用户需要在通知栏602中显示当前应用A接收到的所有通知消息。此时,如图9所示,通知中心APP可将操作栏700中应用A的标识701标记为选中状态,并且在通知栏602中显示当前应用A接收到的所有通知消息,例如上述通知消息603和通知消息605。
示例性的,检测到用户点击应用A的标识701后,通知中心APP可向通知管理器发送第二指令,第二指令用于指示在通知栏602中显示应用A的所有通知消息。进而,通知管理器响应于第二指令,可在表2所示的notification对象中筛选出与应用A对应的一个或多个notification对象,即notification对象1和notification对象3。进而,通知管理器可指示通知中心APP按照筛选出的notification对象1和notification对象3,在通知栏602中绘制当前应用A接收到的通知消息603和通知消息605。
例如,通知中心APP可调用ViewPager创建ViewPager2。进而,ViewPager可将筛选出的notification对象1作为一个控件(View)绘制在ViewPager2中,并将筛选出的notification对象3作为一个控件(View)绘制在ViewPager2中。后续,通知中心APP可将ViewPager2中的内容显示在通知栏602中,从而显示出当前应用A接收到的所有通知消息。在一些实施例中,通知中心APP可以按照通知消息603和通知消息605的接收时间,设置通知消息603和通知消息605在通知栏602中的顺序。
这样,用户通过选中操作栏700中应用A的标识701,可在通知栏602中筛选出所有应用A的通知消息,方便用户以应用为粒度快速查找到某一应用的通知消息,提高用户对通知栏602中通知消息的管理效率和使用体验。
仍以图9所示的通知栏602举例,用户在通知栏602中筛选出应用A的所有通知消息后,还可以继续筛选其他应用的通知消息。例如,如果检测到用户点击操作栏700中应用B的标识702,则如图10中的(a)所示,通知中心APP可取消操作栏700中对应用A的标识701的选中,并将应用B的标识702标记为选中状态。此时,通知中心APP可在通知栏602中显示当前应用B接收到的所有通知消息,例如上述通知消息604。也就是说,检测到用户点击操作栏700中应用B的标识702时,通知中心APP可以不再对应用A的通知消息进行筛选,而是重新在所有通知消息中对应用B的通知消息进行筛选。
或者,如果检测到用户对操作栏700中应用B的标识702输入筛选操作,例如,点击应用B的标识702,则如图10中的(b)所示,通知中心APP可继续将操作栏700中应用A的标识701标记为选中状态,并将应用B的标识702也标记为选中状态。此时,通知中心APP可将当前应用A和应用B接收到的所有通知消息均显示在通知栏602中。例如,通知中心APP可指示通知管理器在表2所示的所有notification对象中筛选出应用A和应用B的notification对象。进而,通知管理器可指示通知中心APP在通知栏602中绘制筛选出的notification对象,从而在通知栏602呈现应用A和应用B接收到的通知消息。也就是说,用户可以在操作栏700中点击多个应用的标识,触发通知中心APP在通知栏602中筛选多个应用的通知消息。
仍以图10中的(b)所示的通知栏602举例,通知中心APP将筛选出的应用A和应用B的通知消息显示在通知栏602后,如果用户希望取消对应用A的通知消息的筛选,则用户可对操作栏700中应用A的标识701输入预设的取消筛选操作。例如,如果检测到用户再次点击操作栏700中应用A的标识701(即取消筛选操作),则如图11中的(a)所示,通知中心APP可将操作栏700中应用A的标识701恢复为未选中的状态,并在通知栏602中删除应用A的通知消息。此时,操作栏700中应用B的标识702仍处于被选中状态,通知栏602中仅保留有应用B的通知消息。
进一步的,如果用户希望继续取消通知栏602对应用B的通知消息的筛选,则用户还可以对操作栏700中应用B的标识702输入上述预设的取消筛选操作。例如,如果检测到用户次点击操作栏700中应用B的标识702(即取消筛选操作),则如图11中的(b)所示,通知中心APP可将操作栏700中应用B的标识702恢复为未选中的状态。此时,由于操作栏700中没有被选中的应用的标识,那么,通知中心APP可默认选中操作栏700中的按钮801,并在通知栏602中显示当前各个应用接收到的所有通知消息,例如上述通知消息603、通知消息604、通知消息605以及通知消息606。
可以看出,用户可以通过选中操作栏700中一个或多个应用的标识,触发通知中心APP在通知栏602中为用户筛选出对应的一个或多个应用的通知消息,方便用户以应用为粒度快速查找到某一应用的通知消息,提高用户对通知栏602中通知消息的管理效率和使用体验。
在一些实施例中,用户还可以通过操作操作栏700中一个或多个应用的标识,触发通知中心APP将对应的一个或多个应用的通知消息置顶显示在通知栏602中。
示例性的,如图12中的(a)所示,通知中心APP在通知栏602中显示出了当前所有应用接收到的通知消息。如果用户希望将应用A的通知消息置顶显示在通知栏602中,则可向操作栏700中应用A的标识701输入预设的置顶操作。例如,如果检测到用户拖动操作栏700中应用A的标识701向下滑动,则通知中心APP可向通知管理器发送第三指令,第三指令用于指示在通知栏602中置顶显示应用A的通知消息。
响应于第三指令,通知管理器可在上述数据库1中向与应用A对应的notification对象(即notification对象1和notification对象3)添加预设的状态标识,该状态标识用于指示对应的notification对象处于置顶状态。进而,如表3所示,通知管理器可基于表2所示的数据库1重新排列数据库1中的各个notification对象,将处于置顶状态的notification对象排列在数据库1的顶部。进而,通知管理器可指示通知中心APP按照表3所示的每个notification对象在通知栏602中绘制对应的通知消息。最终,如图12中的(b)所示,通知中心APP可将与notification对象1对应的通知消息603以及与notification对象3对应的通知消息605显示在通知栏602的顶部,从而将应用A的通知消息置顶显示在通知栏602中。
表3
notification对象 应用 接收时间 标题 消息内容 状态标识
notification对象1 应用A的标识 时间1 标题1 内容1 置顶
notification对象3 应用A的标识 时间3 标题3 内容3 置顶
notification对象2 应用B的标识 时间2 标题2 内容2  
notification对象4 应用C的标识 时间4 标题4 内容4  
仍如图12中的(b)所示,由于notification对象1和notification对象3中包含用于表示置顶状态的状态标识,因此,通知中心APP按照notification对象1和notification对象3绘制出的通知消息603和通知消息605中可以包括对应的置顶图标1201,以提示用户该条通知消息已被置顶显示。同时,通知中心APP还可以在操作栏700中应用A的标识701周围增加置顶图标1202,以提示用户应用A的通知消息已被置顶显示。置顶图标1202与置顶图标1201可以相同或不同。
由于应用A的通知消息已被置顶显示,当后续通知中心APP再次接收到来自应用A的通知消息(例如通知消息1301)时,如图13所示,与应用A的通知消息603和通知消息605类似的,通知中心APP可将通知消息1301也置顶显示在通知栏602中。
例如,应用A接收到通知消息1301后,可将与通知消息1301对应的notification对象5发送至通知管理器。由于notification对象5来自应用A,应用A已经被用户设置为置顶状态,因此,通知管理器可在notification对象5中增加表示置顶状态的状态标识,并将notification对象5添加至表3所示的数据库1的顶部,得到表4所示的数据库。进而,通 知管理器可指示通知中心APP按照表4所示的每个notification对象在通知栏602中绘制对应的通知消息,最终得到图13所示的通知栏602。
表4
notification对象 应用 接收时间 标题 消息内容 状态标识
notification对象5 应用A的标识 时间5 标题5 内容5 置顶
notification对象1 应用A的标识 时间1 标题1 内容1 置顶
notification对象3 应用A的标识 时间3 标题3 内容3 置顶
notification对象2 应用B的标识 时间2 标题2 内容2  
notification对象4 应用C的标识 时间4 标题4 内容4  
相应的,如果通知中心APP接收到的新的通知消息不是来自于操作栏700中已经被置顶的应用,则通知中心APP可将接收到的新的通知消息显示在通知栏602中已经被置顶的通知消息之后。
也就是说,用户可以通过选中操作栏700中一个或多个应用的标识,触发通知中心APP在通知栏602中置顶显示整个应用的所有通知消息,方便用户以应用为粒度快速查找到某一应用的通知消息,提高用户对通知栏602中通知消息的管理效率和使用体验。
在一些实施例中,除了可以置顶显示一个应用的通知消息外,通知中心APP还可以置顶显示多个应用的通知消息。如图14中的(a)所示,通知中心APP在通知栏602中置顶显示了应用A的通知消息后,如果检测到用户拖动操作栏700中应用C的标识703向下滑动,则通知中心APP可按照上述方法继续在通知栏602中置顶显示应用C的通知消息,即通知消息606。当应用A和应用C的通知消息均需要置顶显示在通知栏602时,通知中心APP可以按照被置顶的多个通知消息的接收时间排列这些通知消息在通知栏602中的顺序。例如,接收时间越晚的通知消息越靠近通知栏602的顶部。
或者,如图14中的(b)所示,由于用户最近一次输入的置顶操作是针对应用C输入的,那么,通知中心APP可以优先将应用C的通知消息置顶显示在通知栏602的顶部。此时,通知栏602中应用A的通知消息位于应用C的通知消息之后。也就是说,通知中心APP也可以按照用户对不同应用输入置顶操作的顺序,在通知栏602中排列需要置顶显示的多个通知消息。
仍以通知栏602中应用A和应用C的通知消息被置顶显示举例,如果检测到用户再次拖动操作栏700中应用A的标识701向下滑动,即用户输入了预设的取消置顶操作,说明用户不需要在通知栏602中置顶显示应用A的通知消息。那么,如表5所示,通知中心APP可指示通知管理器删除notification对象1和notification对象3中表示置顶状态的状态标识。此时,只有应用C的notification对象4包含表示置顶状态的状态标识。进而,如图15中的(a)所示,通知管理器可指示通知中心APP按照表5所示的每个notification对象在通知栏602中绘制对应的通知消息,最终在通知栏602中仅置顶显示应用C的通知消息,取消对应用A的通知消息置顶显示的功能。
表5
notification对象 应用 接收时间 标题 消息内容 状态标识
notification对象4 应用C的标识 时间4 标题4 内容4 置顶
notification对象1 应用A的标识 时间1 标题1 内容1  
notification对象2 应用B的标识 时间2 标题2 内容2  
notification对象3 应用A的标识 时间3 标题3 内容3  
类似的,以图15中的(a)所示的通知栏602举例,如果检测到用户再次拖动操作栏700中应用C的标识703向下滑动,说明用户不需要在通知栏602中置顶显示应用C的通知消息。那么,通知中心APP可指示通知管理器删除notification对象4中表示置顶状态的状态标识。此时,没有notification对象包含表示置顶状态的状态标识,数据库1被恢复为表2所示的状态。进而,如图15中的(b)所示,通知管理器可指示通知中心APP按照表2所示的每个notification对象在通知栏602中绘制对应的通知消息,此时,通知栏602中应用A和应用C的通知消息置顶显示的功能均被取消。
在一些实施例中,除了以应用为粒度在通知栏602中置顶显示一个或多个应用的通知消息外,通知中心APP也可以将一条或多条通知消息置顶显示在通知栏602中。例如,如图16中的(a)所示,通知中心APP可以在通知栏602的通知消息内设置置顶按钮1601。如果检测到用户点击通知消息605中的置顶按钮1601,即打开通知消息605的置顶显示功能,则如图16中的(b)所示,通知中心APP可以将通知消息605置顶显示在通知栏602中。此时,应用A的其他通知消息不会置顶显示在通知栏602中。如果后续通知中心APP接收到来自应用A的新的通知消息,通知中心APP也不会将该新的通知消息置顶显示在通知栏602中。
进一步的,仍如图16中的(b)所示,用户点击通知消息605中的置顶按钮1601触发通知中心APP将通知消息605置顶显示在通知栏602后,置顶按钮1601可更新为取消按钮1602。如果检测到用户点击通知消息605中的取消按钮1602,则通知中心APP可将通知消息605恢复为置顶显示在通知栏602之前的状态,即图16中的(a)所示的通知消息605,从而取消本次通知消息605的置顶显示功能。
或者,当通知中心APP在通知栏602中置顶显示了某一应用的所有通知消息后,用户也可以取消其中的一条或多条通知消息的置顶显示功能。
如图17中的(a)所示,用户通过操作操作栏700中应用C的标识,触发通知中心APP将应用C的通知消息606置顶显示在通知栏602中。如果检测到用户向左滑动通知消息606,可触发通知中心APP显示通知消息606的设置按钮1701。如果检测到用户点击设置按钮1701,则通知中心APP可显示通知消息606的管理菜单1702。用户可在管理菜单1702中选择对通知消息606进行删除、取消置顶等操作。如果检测到用户在管理菜单1702中选择对通知消息606取消置顶,则如图17中的(b)所示,通知中心APP可取消本次对通知消息606的置顶显示功能。此时,应用C的通知消息606虽然没有置顶显示在通知栏602中,但操作栏700中的应用C仍处于置顶状态。后续,如图17中的(c)所示,如果接收到应用C的通知消息1703,则通知中心APP仍然可按照上述方法将通知消息1703置顶显示在通知栏602中。
又例如,如图18中的(a)所示,用户通过点击应用A的通知消息605中的置顶按钮1601,可触发通知中心APP将通知消息605置顶显示在通知栏602。后续,如果检测到用户向操作栏700中应用A的标识701输入置顶操作,则如图18中的(b)所示,通知中心 APP仍然可按照上述方法将应用A的所有通知消息(即通知消息603和通知消息605)置顶显示在通知栏602中。
也就是说,用户对某一通知消息执行的置顶操作或取消置顶的操作不会影响对应应用的其他通知消息设置的置顶显示功能。
在一些实施例中,用户也可以预先设置在通知栏602中需要置顶显示通知消息的一个或多个应用(可称为置顶应用)。如图19中的(a)所示,用户可以在手机的设置APP中进入通知中心APP的设置界面705。在设置界面705中用户可以设置需要置顶显示通知消息的置顶应用708。以置顶应用708为应用D举例,当手机接收到来自应用D的通知消息1901后,如图19中的(b)所示,通知中心APP可在操作栏700中显示应用D的标识1902,应用D的标识1902附近可设置置顶图标。同时,通知中心APP可在通知栏602中置顶显示通知消息1901。也就是说,在接收到应用D的通知消息之前,用户便可以预先设置在通知栏602中置顶显示应用D的通知消息。这样,当接收到应用D的通知消息后,手机可直接将应用D的通知消息置顶显示在通知栏602中。
在一些实施例中,用户还可以通过操作操作栏700中一个或多个应用的标识,触发通知中心APP在通知栏602中删除对应的一个或多个应用的通知消息。
示例性的,如图20中的(a)所示,通知中心APP在通知栏602中显示出了当前所有应用接收到的通知消息。如果用户需要删除应用A的所有通知消息,则可向操作栏700中应用A的标识701输入预设的删除操作。例如,如果检测到用户拖动操作栏700中应用A的标识701向上滑动,则通知中心APP可向通知管理器发送第四指令,第四指令用于指示在通知栏602中删除所有应用A的通知消息。
响应于第四指令,通知管理器可在表2所示的数据库1中删除所有应用A的notification对象。此时,如表6所示,更新后的数据库1中仅包括应用B和应用C的notification对象。进而,通知管理器可指示通知中心APP按照表6所示的每个notification对象在通知栏602中绘制对应的通知消息。最终,如图20中的(b)所示,通知中心APP在通知栏602中显示的通知消息不再包括应用A的通知消息,操作栏700中也不再包括应用A的标识701。
表6
notification对象 应用 接收时间 标题 消息内容
notification对象3 应用A的标识 时间3 标题3 内容3
notification对象4 应用C的标识 时间4 标题4 内容4
又例如,如图21中的(a)所示,用户在操作栏700中选中应用A的标识701后,通知中心APP可将应用A的所有通知消息显示在通知栏602中。此时,如果检测到用户拖动操作栏700中应用A的标识701向上滑动,则通知中心APP除了可以按照上述方法删除应用A的所有通知消息外,如图21中的(b)所示,还可以自动将操作栏700中应用A的下一个应用(即应用B)标记为选中状态,并在通知栏602中显示应用B的所有通知消息。
又例如,如图22中的(a)所示,用户在操作栏700中选中应用A的标识701后,通知中心APP可将应用A的所有通知消息显示在通知栏602中。此时,如果检测到用户拖动操作栏700中应用B的标识702向上滑动,则通知中心APP可以按照上述方法删除应用B的所有通知消息,但此时通知栏602中仍然显示的是应用A的所有通知消息。当检测 到用户点击用于显示所有通知消息的按钮801时,如图22中的(b)所示,通知中心APP可在通知栏602中显示应用B的所有通知消息被删除后剩余的其他通知消息。
或者,如图23中的(a)所示,用户在操作栏700中对应用A的标识701输入置顶操作后,通知中心APP可将应用A的所有通知消息置顶显示在通知栏602中。此时,如果检测到用户拖动操作栏700中应用A的标识701向上滑动,则如图23中的(b)所示,通知中心APP可以按照上述方法在通知栏602中删除应用A的所有通知消息。此时,虽然应用A的所有通知消息被删除,但应用A的置顶显示功能没有被取消。那么,如果后续接收到来自应用A的新的通知消息,例如,通知消息2301,则如图23中的(c)所示,通知中心APP可将通知消息2301置顶显示在通知栏602中。
这样,用户通过选中操作栏700中应用A的标识701,可在通知栏602中批量删除一个或多个应用的通知消息,方便用户以应用为粒度对通知栏602中通知消息的进行管理,提高用户的使用体验。
在一些实施例中,如图24中的(a)所示,用户还可以向操作栏700中用于显示所有通知消息的按钮801输入预设的删除操作。例如,如果检测到用户拖动按钮801向上滑动,则如图24中的(b)所示,通知中心APP可删除当前所有应用的通知消息,即清空通知栏602。
或者,如图25所示,通知中心APP还可以在操作栏700中设置删除按钮2501。如果检测到用户点击删除按钮2501,则如图24中的(b)所示,通知中心APP可删除当前所有应用的通知消息,即清空通知栏602。
又或者,仍如图25所示,通知中心APP还可以将上述删除操作设置为将操作栏700中应用的标识拖动至删除按钮2501的操作。此时,如果检测到用户将操作栏700中应用A的标识701拖动至删除按钮2501所在的位置,则通知中心APP可以按照上述方法删除应用A的所有通知消息。或者,如果检测到用户将操作栏700中的按钮801拖动至删除按钮2501所在的位置,则通知中心APP可以按照上述方法删除当前所有应用的通知消息,即清空通知栏602。
可以看出,本申请实施例提供的通知消息的管理方法可将当前存在通知消息的应用的标识显示在操作栏中。用户通过操作操作栏中应用的标识,可以以应用为粒度快速、便捷的筛选、置顶或删除一个或多个应用的通知消息,使得无需用户查找通知栏中的每一条通知消息并对该条通知消息进行管理,从而提高用户对通知栏中通知消息的管理效率和使用体验。
本申请实施例公开了一种电子设备,包括处理器,以及与处理器相连的存储器、输入设备和输出设备。其中,输入设备和输出设备可集成为一个设备,例如,可将触摸传感器作为输入设备,将显示屏作为输出设备,并将触摸传感器和显示屏集成为触摸屏。
此时,如图26所示,上述电子设备可以包括:触摸屏2601,所述触摸屏2601包括触摸传感器2606和显示屏2607;一个或多个处理器2602;存储器2603;一个或多个应用程序(未示出);以及一个或多个计算机程序2604,上述各器件可以通过一个或多个通信总线2605连接。其中该一个或多个计算机程序2604被存储在上述存储器2603中并被配置为被该一个或多个处理器2602执行,该一个或多个计算机程序2604包括指令,上述指令可以用于执行上述实施例中的各个步骤。其中,上述方法实施例涉及的各步骤的所有相关 内容均可以援引到对应实体器件的功能描述,在此不再赘述。
示例性的,上述处理器2602具体可以为图2所示的处理器110,上述存储器2603具体可以为图2所示的内部存储器121,上述显示屏2607具体可以为图2所示的显示屏194,上述触摸传感器2606具体可以为图2所示的传感器模块180中的触摸传感器,本申请实施例对此不做任何限制。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。

Claims (22)

  1. 一种通知消息的管理方法,其特征在于,包括:
    电子设备显示通知界面,所述通知界面包括M个应用的N条通知消息,M为大于等于1的整数,N为大于1的整数;
    其中,所述通知界面中还包括操作栏,所述操作栏内显示有所述M个应用的标识。
  2. 根据权利要求1所述的方法,其特征在于,所述M个应用的标识包括第一应用的标识,在所述电子设备显示通知界面之后,还包括:
    所述电子设备接收用户对所述第一应用的标识输入的第一筛选操作;
    响应于所述第一筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用的通知消息。
  3. 根据权利要求2所述的方法,其特征在于,在所述电子设备接收用户对所述第一应用的标识输入的第一筛选操作之后,还包括:
    响应于所述第一筛选操作,所述电子设备将所述操作栏中所述第一应用的标识标记为选中状态。
  4. 根据权利要求2或3所述的方法,其特征在于,所述M个应用的标识还包括第二应用的标识,在所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用的通知消息之后,还包括:
    所述电子设备接收用户对所述第二应用的标识输入的第二筛选操作;
    响应于所述第二筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息中所述第二应用的通知消息。
  5. 根据权利要求4所述的方法,其特征在于,在所述电子设备在所述通知界面中显示所述N条通知消息中所述第二应用的通知消息之后,还包括:
    所述电子设备接收用户对所述第二应用的标识输入的第一取消筛选操作;
    响应于所述第一取消筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息。
  6. 根据权利要求2或3所述的方法,其特征在于,所述M个应用的标识还包括第二应用的标识,在所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用的通知消息之后,还包括:
    所述电子设备接收用户对所述第二应用的标识输入的第二筛选操作;
    响应于所述第二筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用和所述第二应用的通知消息。
  7. 根据权利要求6所述的方法,其特征在于,在所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用和所述第二应用的通知消息之后,还包括:
    所述电子设备接收用户对所述第二应用的标识输入的第一取消筛选操作;
    响应于所述第一取消筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用的通知消息。
  8. 根据权利要求7所述的方法,其特征在于,在所述电子设备在所述通知界面中显示所述N条通知消息中所述第一应用的通知消息之后,还包括:
    所述电子设备接收用户对所述第一应用的标识输入的第二取消筛选操作;
    响应于所述第二取消筛选操作,所述电子设备在所述通知界面中显示所述N条通知消息。
  9. 根据权利要求1所述的方法,其特征在于,所述M个应用的标识包括第一应用的标识,在所述电子设备显示通知界面之后,还包括:
    所述电子设备接收用户对所述第一应用的标识输入的第一置顶操作;
    响应于所述第一置顶操作,所述电子设备将所述N条通知消息中第一应用的通知消息置顶显示在所述通知界面中。
  10. 根据权利要求9所述的方法,其特征在于,在所述电子设备接收用户对所述第一应用的标识输入的第一置顶操作之后,还包括:
    响应于所述第一置顶操作,所述电子设备在所述第一应用的标识周围显示置顶图标。
  11. 根据权利要求9或10所述的方法,其特征在于,在所述电子设备接收用户对所述第一应用的标识输入的第一置顶操作之后,还包括:
    所述电子设备获取第一通知消息;
    当所述第一通知消息为所述第一应用的通知消息时,所述电子设备将所述第一通知消息置顶显示在所述通知界面中;
    当所述第一通知消息为所述第一应用之外的其他应用的通知消息时,所述电子设备在所述通知界面中将所述第一通知消息显示在所述第一应用的通知消息之后。
  12. 根据权利要求9-11中任一项所述的方法,其特征在于,所述M个应用的标识还包括第二应用的标识,在所述电子设备将所述N条通知消息中第一应用的通知消息置顶显示在所述通知界面中之后,还包括:
    所述电子设备接收用户对所述第二应用的标识输入的第二置顶操作;
    响应于所述第二置顶操作,所述电子设备将所述N条通知消息中第二应用的通知消息置顶显示在所述通知界面中;或者,
    响应于所述第二置顶操作,所述电子设备将所述N条通知消息中第一应用和第二应用的通知消息置顶显示在所述通知界面中。
  13. 根据权利要求9-12中任一项所述的方法,其特征在于,在所述电子设备将所述N条通知消息中第一应用的通知消息置顶显示在所述通知界面中之后,还包括:
    所述电子设备接收用户对所述第一应用的标识输入的取消置顶操作;
    响应于所述取消置顶操作,所述电子设备恢复所述第一应用的通知消息在所述通知界面中的显示位置。
  14. 根据权利要求9-12中任一项所述的方法,其特征在于,在所述电子设备将所述N条通知消息中第一应用的通知消息置顶显示在所述通知界面中之后,还包括:
    所述电子设备接收用户对第二通知消息输入的取消置顶操作,所述第二通知消息为置顶显示的所述第一应用的通知消息;
    响应于所述取消置顶操作,所述电子设备恢复所述第二通知消息在所述通知界面中的显示位置。
  15. 根据权利要求1-14中任一项所述的方法,其特征在于,所述方法还包括:
    当所述电子设备未获取到第三应用的通知消息时,所述电子设备将所述第三应用设置为置顶应用;
    在所述电子设备显示通知界面之后,还包括:
    所述电子设备获取所述第三应用的通知消息;
    所述电子设备将所述第三应用的通知消息置顶显示在所述通知界面,并在所述操作栏中显示所述第三应用的标识。
  16. 根据权利要求1-15中任一项所述的方法,其特征在于,所述M个应用的标识包括第一应用的标识,在所述电子设备显示通知界面之后,还包括:
    所述电子设备接收用户对所述第一应用的标识输入的删除操作;
    响应于所述删除操作,所述电子设备删除所述通知界面中所述第一应用的通知消息。
  17. 根据权利要求1-16中任一项所述的方法,其特征在于,所述操作栏中还包括第一按钮;所述方法还包括:
    响应于用户对所述第一按钮输入的第一操作,所述电子设备在所述通知界面中显示所述N条通知消息。
  18. 根据权利要求1-16中任一项所述的方法,其特征在于,所述操作栏中还包括第二按钮;所述方法还包括:
    响应于用户对所述第二按钮输入的第二操作,所述电子设备删除所述通知界面中的N条通知消息。
  19. 根据权利要求1-18中任一项所述的方法,其特征在于,所述M个应用的标识上设置有角标,所述角标用于指示各应用的通知消息的数目。
  20. 一种电子设备,其特征在于,所述电子设备包括:
    触摸屏,其中,所述触摸屏包括触摸传感器和显示屏;
    一个或多个处理器;
    存储器;
    通信模块;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求1-19中任一项所述的一种通知消息的管理方法。
  21. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-19中任一项所述的一种通知消息的管理方法。
  22. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-19中任一项所述的一种通知消息的管理方法。
PCT/CN2021/129387 2020-11-11 2021-11-08 一种通知消息的管理方法及电子设备 WO2022100556A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/252,427 US20230418444A1 (en) 2020-11-11 2021-11-08 Notification Message Management Method and Electronic Device
EP21891081.8A EP4227784A4 (en) 2020-11-11 2021-11-08 METHOD FOR MANAGING NOTIFICATION MESSAGES AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011257002.0A CN114554005B (zh) 2020-11-11 2020-11-11 一种通知消息的管理方法及电子设备
CN202011257002.0 2020-11-11

Publications (1)

Publication Number Publication Date
WO2022100556A1 true WO2022100556A1 (zh) 2022-05-19

Family

ID=81600757

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/129387 WO2022100556A1 (zh) 2020-11-11 2021-11-08 一种通知消息的管理方法及电子设备

Country Status (4)

Country Link
US (1) US20230418444A1 (zh)
EP (1) EP4227784A4 (zh)
CN (1) CN114554005B (zh)
WO (1) WO2022100556A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048830A (zh) * 2022-07-22 2023-05-02 荣耀终端有限公司 提醒软件版本升级的方法、电子设备及可读存储介质
CN116055505A (zh) * 2022-08-31 2023-05-02 荣耀终端有限公司 一种消息同步方法及终端设备
CN116055617A (zh) * 2022-07-27 2023-05-02 荣耀终端有限公司 一种消息的通知方法及设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543496A (zh) * 2021-06-30 2022-12-30 华为技术有限公司 消息处理方法及相关装置
CN116737036B (zh) * 2022-09-28 2024-04-09 荣耀终端有限公司 通知消息的处理方法和电子设备
CN115291995B (zh) * 2022-10-08 2023-03-31 荣耀终端有限公司 一种消息显示方法及相关电子设备、可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912219A (zh) * 2016-05-11 2016-08-31 青岛海信移动通信技术股份有限公司 通知消息显示方法和终端设备
US20160330313A1 (en) * 2014-01-15 2016-11-10 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Message Prompting Method and Message Prompting Apparatus
CN108334352A (zh) * 2017-08-31 2018-07-27 北京小米移动软件有限公司 通知消息处理方法、装置、电子设备及存储介质
CN110351422A (zh) * 2019-05-27 2019-10-18 华为技术有限公司 一种通知消息的预览方法及电子设备
CN111596982A (zh) * 2020-04-20 2020-08-28 维沃移动通信有限公司 显示方法、显示装置及电子设备

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102023801B1 (ko) * 2011-06-05 2019-09-20 애플 인크. 다수의 애플리케이션들로부터 수신된 통지들을 디스플레이하기 위한 시스템들 및 방법들
US20130290879A1 (en) * 2012-04-30 2013-10-31 Research In Motion Tat Ab Displaying notification messages and messages on a portable electronic device
KR101457632B1 (ko) * 2012-12-20 2014-11-10 주식회사 팬택 프로그램 알림 기능을 갖는 휴대용 전자 기기 및 이를 위한 프로그램 알림 방법
WO2016029417A1 (zh) * 2014-08-29 2016-03-03 华为技术有限公司 消息推送及消息显示的方法和装置
KR102504201B1 (ko) * 2015-08-12 2023-02-27 삼성전자 주식회사 전자 장치 및 이의 알림 출력 제어 방법
KR102137731B1 (ko) * 2015-12-16 2020-07-24 삼성전자주식회사 전자 장치, 전자 장치의 알림 정보 표시 방법
WO2017213467A1 (en) * 2016-06-09 2017-12-14 Samsung Electronics Co., Ltd. Method and electronic device for managing notifications in a notification panel
KR102527896B1 (ko) * 2017-10-24 2023-05-02 삼성전자주식회사 알림을 제어하기 위한 방법 및 그 전자 장치
US11704282B2 (en) * 2018-12-14 2023-07-18 Blackberry Limited Notifications and graphical user interface for applications in folders
CN109976606B (zh) * 2019-02-26 2021-08-13 维沃移动通信有限公司 信息显示方法、移动终端
CN110879737A (zh) * 2019-10-31 2020-03-13 维沃移动通信有限公司 通知消息处理方法、装置、电子设备和存储介质
US11175967B2 (en) * 2019-12-18 2021-11-16 Citrix Systems, Inc. Intelligent contextual grouping of notifications in an activity feed

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160330313A1 (en) * 2014-01-15 2016-11-10 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Message Prompting Method and Message Prompting Apparatus
CN105912219A (zh) * 2016-05-11 2016-08-31 青岛海信移动通信技术股份有限公司 通知消息显示方法和终端设备
CN108334352A (zh) * 2017-08-31 2018-07-27 北京小米移动软件有限公司 通知消息处理方法、装置、电子设备及存储介质
CN110351422A (zh) * 2019-05-27 2019-10-18 华为技术有限公司 一种通知消息的预览方法及电子设备
CN111596982A (zh) * 2020-04-20 2020-08-28 维沃移动通信有限公司 显示方法、显示装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4227784A4

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048830A (zh) * 2022-07-22 2023-05-02 荣耀终端有限公司 提醒软件版本升级的方法、电子设备及可读存储介质
CN116048830B (zh) * 2022-07-22 2023-10-24 荣耀终端有限公司 提醒软件版本升级的方法、电子设备及可读存储介质
CN116055617A (zh) * 2022-07-27 2023-05-02 荣耀终端有限公司 一种消息的通知方法及设备
CN116055617B (zh) * 2022-07-27 2024-03-29 荣耀终端有限公司 消息的通知方法、电子设备、计算机存储介质和芯片系统
CN116055505A (zh) * 2022-08-31 2023-05-02 荣耀终端有限公司 一种消息同步方法及终端设备
CN116055505B (zh) * 2022-08-31 2023-10-20 荣耀终端有限公司 一种消息同步方法及终端设备

Also Published As

Publication number Publication date
EP4227784A1 (en) 2023-08-16
EP4227784A4 (en) 2024-03-27
CN114554005B (zh) 2023-11-10
US20230418444A1 (en) 2023-12-28
CN114554005A (zh) 2022-05-27

Similar Documents

Publication Publication Date Title
US11722449B2 (en) Notification message preview method and electronic device
WO2022100556A1 (zh) 一种通知消息的管理方法及电子设备
WO2020244495A1 (zh) 一种投屏显示方法及电子设备
WO2020244492A1 (zh) 一种投屏显示方法及电子设备
WO2022218053A1 (zh) 一种通知消息的显示方法及电子设备
WO2020108356A1 (zh) 一种应用显示方法及电子设备
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
CN114327666B (zh) 应用启动方法、装置和电子设备
CN110225176B (zh) 一种联系人的推荐方法及电子设备
WO2022089208A1 (zh) 一种文件拖拽方法及电子设备
WO2022078295A1 (zh) 一种设备推荐方法及电子设备
WO2020150894A1 (zh) 一种基于应用的来电显示方法和终端设备
CN116095881A (zh) 一种多设备协同方法、电子设备及相关产品
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2021057699A1 (zh) 具有柔性屏幕的电子设备的控制方法及电子设备
WO2020151408A1 (zh) 一种显示联系人的方法及相关装置
US20240053868A1 (en) Feedback method, apparatus, and system
WO2021042881A1 (zh) 消息通知方法及电子设备
EP4365722A1 (en) Method for displaying dock bar in launcher and electronic device
WO2023005711A1 (zh) 一种服务的推荐方法及电子设备
CN115729427A (zh) 消息提示方法和电子设备
WO2023226922A1 (zh) 卡片管理方法、电子设备及计算机可读存储介质
US12019942B2 (en) Multi-screen collaboration method and system, and electronic device
WO2023045774A1 (zh) 显示方法及电子设备
WO2023207799A1 (zh) 消息处理方法和电子设备

Legal Events

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

Ref document number: 21891081

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18252427

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2021891081

Country of ref document: EP

Effective date: 20230509

NENP Non-entry into the national phase

Ref country code: DE