CN116048326B - Message display method and electronic equipment - Google Patents
Message display method and electronic equipment Download PDFInfo
- Publication number
- CN116048326B CN116048326B CN202210787048.6A CN202210787048A CN116048326B CN 116048326 B CN116048326 B CN 116048326B CN 202210787048 A CN202210787048 A CN 202210787048A CN 116048326 B CN116048326 B CN 116048326B
- Authority
- CN
- China
- Prior art keywords
- application
- notification
- notification message
- window
- icon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 118
- 230000008569 process Effects 0.000 claims abstract description 78
- 230000006870 function Effects 0.000 claims description 57
- 230000004044 response Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 19
- 238000004891 communication Methods 0.000 description 14
- 238000010295 mobile communication Methods 0.000 description 11
- 238000007726 management method Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000009434 installation Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04817—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种消息显示方法及电子设备。The present application relates to the field of terminal technology, and in particular, to a message display method and electronic device.
背景技术Background technique
电子设备中的软件系统中安装有各种用于实现各类软件功能的应用程序。每个应用程序会通过对应的应用通知消息实现人机交互,例如购物应用发送的物流通知消息,软件更新应用发送的新版本通知消息以及聊天应用发送的对话通知消息等。当电子设备接收到相应的应用通知消息时,电子设备可以采用在消息通知栏中显示、在主屏幕界面上的应用图标处显示以及在应用程序内特定位置显示等方式来提示用户查看。Various application programs for realizing various software functions are installed in the software system in the electronic device. Each application will realize human-computer interaction through corresponding application notification messages, such as logistics notification messages sent by shopping applications, new version notification messages sent by software update applications, and conversation notification messages sent by chat applications. When the electronic device receives the corresponding application notification message, the electronic device can prompt the user to view it by displaying it in the message notification bar, displaying it at the application icon on the home screen interface, or displaying it at a specific location within the application program.
然而,部分应用程序在主屏幕界面上不设有应用图标,例如,软件更新应用。由于软件更新应用的入口位于设置应用中。因此,当用户想要查看软件更新应用对应的新版本通知消息时,则需先进入设置应用对应的应用界面,并在应用界面中点击软件更新控件后触发进入软件更新应用。这样,才能在软件更新应用中查看新版本通知消息。降低了新版本通知消息的提醒强度,同时使用户操作繁琐,降低了用户使用体验。However, some applications do not have an application icon on the home screen interface, for example, software update applications. Because the entrance to the software update application is in the Settings application. Therefore, when the user wants to view the new version notification message corresponding to the software update application, he must first enter the application interface corresponding to the settings application, and click the software update control in the application interface to trigger entry to the software update application. In this way, you can view the new version notification message in the software update application. The reminder intensity of the new version notification message is reduced, while making the user's operation cumbersome and reducing the user experience.
发明内容Contents of the invention
本申请提供了一种消息显示方法及电子设备,以解决如果某个应用在主屏幕界面上不设有应用图标且用户想要查看该应用对应的通知消息时,需多次手动操作其他应用才能查看该通知消息,导致降低用户体验的问题。This application provides a message display method and electronic device to solve the problem that if an application does not have an application icon on the home screen interface and the user wants to view the notification message corresponding to the application, he or she needs to manually operate other applications multiple times. Viewing this notification message may cause problems that degrade the user experience.
第一方面,本申请实施例提供了一种消息显示方法,方法包括:响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表;其中,所述第一图标是第一应用的图标,所述第一图标位于主屏幕界面中;判断所述第一通知列表中是否包括第一通知消息,所述第一通知消息是第二应用存在新版本时发送给所述第一进程的;如果所述第一通知列表中包括所述第一通知消息,在所述主屏幕界面中显示所述第一应用的第一窗口,所述第一窗口包括所述第一通知消息。In a first aspect, embodiments of the present application provide a message display method. The method includes: in response to a first gesture operation performed by a user on a first icon, obtaining a first notification list from a first process; wherein, the first The icon is an icon of the first application, and the first icon is located in the home screen interface; it is determined whether the first notification list includes a first notification message, and the first notification message is sent to the second application when there is a new version. of the first process; if the first notification message is included in the first notification list, a first window of the first application is displayed in the home screen interface, and the first window includes the first A notification message.
根据上述方法,主屏幕应用响应于用户对第一图标输入的第一手势操作,从第一进程中获取第一通知列表。并判断第一通知列表中是否包括第一通知消息,其中,第一通知消息是第二应用存在新版本时发送给第一进程的。如果第一通知列表中包括第一通知消息,主屏幕应用则在第一应用的第一窗口中显示第一通知消息。这样,在主屏幕界面上无第二应用的图标的场景下,用户通过输入对第一图标的手势操作后,即可查看第二应用对应的第一通知消息。无需多次手动操作第一应用才能查看到第一通知消息,简化了操作步骤,提升用户的使用体验。According to the above method, the home screen application acquires the first notification list from the first process in response to the first gesture operation input by the user on the first icon. And determine whether the first notification list includes the first notification message, where the first notification message is sent to the first process when a new version of the second application exists. If the first notification list includes the first notification message, the home screen application displays the first notification message in the first window of the first application. In this way, in a scenario where there is no icon of the second application on the home screen interface, the user can view the first notification message corresponding to the second application by inputting a gesture operation on the first icon. There is no need to manually operate the first application multiple times to view the first notification message, which simplifies the operation steps and improves the user experience.
在一种可选择的实现方式中,判断所述第一通知列表中是否包括第一通知消息,包括:获取所述第二应用的应用标识以及更新标识;根据所述应用标识判断所述第一通知列表中是否包括第一类通知消息,所述第一类通知消息包括所述第二应用发送给所述第一进程的通知消息;如果所述第一通知列表中包括第一类通知消息,根据所述更新标识判断所述第一类通知消息中是否存在第一通知消息。由于第一通知列表中会存在多个应用推送的通知消息,因此,可以预先在第一通知列表中筛选与第二应用的应用标识对应的第一类通知消息。并在第一类通知消息中筛选与更新标识对应的第一通知消息。提高筛选第一通知消息的精准度,同时以便于主屏幕应用将第一通知消息显示在第一窗口中。In an optional implementation manner, determining whether the first notification message includes the first notification message includes: obtaining the application identification and update identification of the second application; and determining the first notification message according to the application identification. Whether the first type of notification message is included in the notification list, and the first type of notification message includes the notification message sent by the second application to the first process; if the first type of notification message is included in the first notification list, Determine whether there is a first notification message in the first type of notification message according to the update identifier. Since there may be notification messages pushed by multiple applications in the first notification list, the first notification messages corresponding to the application identifier of the second application may be filtered in the first notification list in advance. And filter the first notification message corresponding to the update identifier from the first type of notification message. Improve the accuracy of filtering the first notification message, and at the same time make it easier for the home screen application to display the first notification message in the first window.
在一种可选择的实现方式中,在所述主屏幕界面中显示所述第一应用的第一窗口,所述第一窗口包括所述第一通知消息,包括:获取第二通知列表,所述第二通知列表包括所述第一应用的通知消息;将所述第一通知消息添加至所述第二通知列表中,得到第三通知列表;在所述主屏幕界面中显示所述第一窗口,所述第一窗口包括所述第三通知列表。由此,主屏幕应用可以将第一应用的通知消息和第一通知消息同时显示所述第一窗口中。这样,既可以展示给用户第一应用的通知消息,还可以展示给用户第二应用的第一通知消息,以提升用户的使用体验。In an optional implementation, displaying a first window of the first application in the home screen interface, the first window including the first notification message includes: obtaining a second notification list, The second notification list includes a notification message of the first application; the first notification message is added to the second notification list to obtain a third notification list; and the first notification message is displayed in the home screen interface. A window, the first window including the third notification list. Therefore, the home screen application can display the notification message of the first application and the first notification message in the first window at the same time. In this way, not only the notification message of the first application can be displayed to the user, but also the first notification message of the second application can be displayed to the user, so as to improve the user's usage experience.
在一种可选择的实现方式中,响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表,包括:响应于所述第一手势操作,向所述第一进程发送调用请求;接收所述第一进程响应于所述调用请求发送的所述第一通知列表。In an optional implementation, in response to a first gesture operation performed by the user on the first icon, obtaining the first notification list from the first process includes: in response to the first gesture operation, sending the first notification list to the first icon. A process sends a calling request; and receives the first notification list sent by the first process in response to the calling request.
在一种可选择的实现方式中,将所述第一通知消息添加至所述第二通知列表中,得到第三通知列表,包括:获取所述第二通知列表的第一参数集合,以及所述第一通知消息的目标属性参数,所述第一参数集合包括所述第一应用中的每个通知消息的属性参数;将所述目标属性参数添加至所述第一参数集合,得到第二参数集合;根据所述第二参数集合,得到所述第三通知列表。In an optional implementation, adding the first notification message to the second notification list to obtain a third notification list includes: obtaining a first parameter set of the second notification list, and the The target attribute parameters of the first notification message, the first parameter set includes the attribute parameters of each notification message in the first application; the target attribute parameters are added to the first parameter set to obtain the second Parameter set; according to the second parameter set, the third notification list is obtained.
在一种可选择的实现方式中,还包括:响应于所述第一手势操作,获取所述第一应用的至少一个快捷功能;如果所述第一通知列表中不包括所述第一通知消息,在所述主屏幕界面中显示所述第一应用的第二窗口,所述第二窗口包括所述至少一个快捷功能的功能标识。由此,主屏幕应用通过在主屏幕界面中显示第二窗口,用户可以操作第二窗口中的功能标识触发进入对应的快捷功能,提升用户的使用体验。In an optional implementation, the method further includes: in response to the first gesture operation, obtaining at least one shortcut function of the first application; if the first notification message is not included in the first notification list , display a second window of the first application in the home screen interface, where the second window includes a function identifier of the at least one shortcut function. Therefore, by displaying the second window in the home screen interface of the home screen application, the user can operate the function identifier in the second window to trigger the corresponding shortcut function, thereby improving the user experience.
在一种可选择的实现方式中,如果所述第一通知列表包括所述第一通知消息,在所述主屏幕界面中显示所述第一应用的第一窗口,包括:如果所述第一通知列表包括所述第一通知消息,在所述主屏幕界面中显示所述第一窗口和所述第二窗口。由此,当第一通知列表包括所述第一通知消息时,主屏幕应用在主屏幕界面中同时显示第一窗口和第二窗口。这样,既可以提供给用户第一应用中的功能标识,又可以便于用户查看第二应用的第一消息通知,提升用户的使用体验。In an optional implementation, if the first notification list includes the first notification message, displaying the first window of the first application in the home screen interface includes: if the first The notification list includes the first notification message, and the first window and the second window are displayed in the home screen interface. Therefore, when the first notification list includes the first notification message, the home screen application simultaneously displays the first window and the second window in the home screen interface. In this way, the function identifier in the first application can be provided to the user, and the user can conveniently view the first message notification of the second application, thereby improving the user experience.
在一种可选择的实现方式中,第一手势操作包括用户对所述第一图标执行的长按操作。In an optional implementation, the first gesture operation includes a long press operation performed by the user on the first icon.
在一种可选择的实现方式中,所述第一应用为设置应用;所述第二应用为软件更新应用;所述第一进程为系统服务system_server进程。In an optional implementation manner, the first application is a setting application; the second application is a software update application; and the first process is a system service system_server process.
第二方面,本申请实施例提供了一种电子设备,包括:存储器和处理器,处理器和存储器耦合;其中,存储器包括有程序指令,程序指令被处理器运行时,使得电子设备执行如上述第一方面的方法。In a second aspect, embodiments of the present application provide an electronic device, including: a memory and a processor, and the processor is coupled to the memory; wherein the memory includes program instructions, and when the program instructions are run by the processor, the electronic device executes the above steps The first approach.
第三方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序指令,当计算机程序指令被运行时,实现如上述第一方面的方法。In a third aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores computer program instructions. When the computer program instructions are executed, the method of the first aspect is implemented.
附图说明Description of the drawings
图1为本申请实施例提供的触发进入软件更新应用的应用界面的流程图;Figure 1 is a flow chart for triggering entry into an application interface of a software update application provided by an embodiment of the present application;
图2为本申请实施例提供的电子设备的硬件结构示意图;Figure 2 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种消息显示方法的流程图;Figure 3 is a flow chart of a message display method provided by an embodiment of the present application;
图4为本申请实施例提供的判断第一通知消息的流程图;Figure 4 is a flow chart for judging the first notification message provided by the embodiment of the present application;
图5为本申请实施例提供的显示第一通知列表的示意图;Figure 5 is a schematic diagram of displaying a first notification list provided by an embodiment of the present application;
图6为本申请实施例提供的一种第一窗口和第二窗口的示意图;Figure 6 is a schematic diagram of a first window and a second window provided by an embodiment of the present application;
图7是本申请实施例示出的另一种第一窗口和第二窗口的示意图;Figure 7 is a schematic diagram of another first window and a second window according to an embodiment of the present application;
图8为本申请实施例提供的另一种第一窗口和第二窗口的示意图;Figure 8 is a schematic diagram of another first window and a second window provided by an embodiment of the present application;
图9为本申请实施例提供的另一种第一窗口和第二窗口的示意图;Figure 9 is a schematic diagram of another first window and a second window provided by an embodiment of the present application;
图10为本申请实施例提供的另一种第一窗口和第二窗口的示意图;Figure 10 is a schematic diagram of another first window and a second window provided by an embodiment of the present application;
图11为本申请实施例提供的得到第三通知列表的流程图;Figure 11 is a flow chart for obtaining the third notification list provided by the embodiment of the present application;
图12为本申请实施例提供的一种消息显示装置的结构示意图;Figure 12 is a schematic structural diagram of a message display device provided by an embodiment of the present application;
图13是本申请实施例提供的另一种消息显示装置的结构示意图。Figure 13 is a schematic structural diagram of another message display device provided by an embodiment of the present application.
具体实施方式Detailed ways
随着终端技术的发展,手机、平板电脑等电子设备已经成为人们生活、工作、学习和娱乐中不可缺少的工具,正因为如此,电子设备中的操作系统中安装有各种用于实现各类软件功能的应用程序。每个应用程序会在主屏幕应用的通知消息页面中显示应用通知消息。进而,应用程序通过对应的应用通知消息实现人机交互,例如购物应用发送的物流通知消息,软件更新应用发送的新版本通知消息以及聊天应用发送的对话通知消息等。With the development of terminal technology, electronic devices such as mobile phones and tablet computers have become indispensable tools in people's life, work, study and entertainment. Because of this, the operating systems in electronic devices are equipped with various functions to implement various Software functional applications. Each app displays app notification messages on the Home screen App Notifications page. Furthermore, the application implements human-computer interaction through corresponding application notification messages, such as logistics notification messages sent by shopping applications, new version notification messages sent by software update applications, and conversation notification messages sent by chat applications.
目前,部分应用程序在主屏幕界面上无应用图标,例如,操作系统的软件更新应用。软件更新应用的入口位于操作系统的设置应用中。用户在使用软件更新应用之前,需要进入设置应用对应的应用界面。图1是电子设备上触发进入软件更新应用的应用界面的示意图。参见图1,当用户需要使用软件更新应用时,用户可以操作电子设备100以进入到主屏幕界面10,然后在主屏幕界面10中找到设置应用的图标11;用户点击设置应用的图标11时,电子设备触发进入到“设置”应用的应用界面20。用户在应用界面20中点击“系统和更新”选项21时,电子设备进入到“系统和更新”界面30。接下来,用户可以在“系统和更新”界面30点击“软件更新”选项31,用户点击“软件更新”选项31时,电子设备进入软件更新应用对应的应用界面,并且按照电子设备100的提示进行软件更新应用的新版本升级。可见,虽然电子设备在设置应用中提供了软件更新应用对应的触发入口,但是用户需要通过在设置应用中执行一系列繁琐的操作才能够进入到软件更新应用,十分不便。Currently, some applications do not have application icons on the home screen interface, such as operating system software update applications. The entrance to the software update application is in the Settings application of the operating system. Before using the software to update the application, the user needs to enter the application interface corresponding to the settings application. Figure 1 is a schematic diagram of an application interface that triggers entry into a software update application on an electronic device. Referring to Figure 1, when the user needs to use software to update the application, the user can operate the electronic device 100 to enter the home screen interface 10, and then find the icon 11 of the settings application in the home screen interface 10; when the user clicks the icon 11 of the settings application, The electronic device triggers entry into the application interface 20 of the "Settings" application. When the user clicks the "System and Updates" option 21 in the application interface 20, the electronic device enters the "System and Updates" interface 30. Next, the user can click the "Software Update" option 31 on the "System and Update" interface 30. When the user clicks the "Software Update" option 31, the electronic device enters the application interface corresponding to the software update application and follows the prompts of the electronic device 100. Software updates apply new version upgrades. It can be seen that although the electronic device provides a trigger entry corresponding to the software update application in the settings application, the user needs to perform a series of cumbersome operations in the settings application to enter the software update application, which is very inconvenient.
并且,电子设备100虽然可以在设置应用中设置有软件更新应用的入口,但是当软件更新应用存在通知消息时,用户需进入设置应用中查看。这使得软件更新应用的通知消息可见性差,同时针对软件更新应用的新版本升级提醒强度弱,进而导致电子设备100的操作系统的升级率降低。Furthermore, although the electronic device 100 can be provided with an entrance to the software update application in the settings application, when there is a notification message in the software update application, the user needs to enter the settings application to view it. This results in poor visibility of the notification message of the software update application and weak strength of the new version upgrade reminder for the software update application, which in turn leads to a reduction in the upgrade rate of the operating system of the electronic device 100 .
为了解决用户查看在主屏幕界面上无应用图标的应用的通知消息时,需要执行多次手动操作,导致过程繁琐的问题。本申请实施例提供了一种消息显示方法。其中,本申请实施例提供的电子设备包括但不限于:手机、笔记本电脑、平板电脑、个人台式电脑、电脑一体机、大屏显示设备、虚拟/混合/增强现实设备等。需要说明的是,为便于后续描述,将在主屏幕界面10上设有应用图标的应用称为第一应用,例如:操作系统的设置应用。以及将在主屏幕界面10上不设有应用图标的应用称为第二应用,例如:操作系统的软件更新应用。In order to solve the problem that when users view notification messages for applications that do not have application icons on the home screen interface, they need to perform multiple manual operations, resulting in a cumbersome process. The embodiment of the present application provides a message display method. Among them, the electronic devices provided by the embodiments of this application include but are not limited to: mobile phones, notebook computers, tablet computers, personal desktop computers, all-in-one computers, large-screen display devices, virtual/mixed/augmented reality devices, etc. It should be noted that, for the convenience of subsequent description, the application with an application icon on the home screen interface 10 is called a first application, for example: a setting application of the operating system. And applications that do not have an application icon on the home screen interface 10 are called second applications, such as software update applications of the operating system.
图2是本申请实施例示出的电子设备的硬件结构示意图。如图2所示,电子设备100可以包括处理器110,存储器120,通用串行总线(universal serial bus,USB)接口130,射频电路140,移动通信模块150,无线通信模块160,摄像头170,显示屏180,触摸传感器190,气压传感器210和按键220等。FIG. 2 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. As shown in Figure 2, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a radio frequency circuit 140, a mobile communication module 150, a wireless communication module 160, a camera 170, a display Screen 180, touch sensor 190, air pressure sensor 210 and buttons 220, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-networkprocessing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中,例如集成在系统芯片(system on a chip,SoC)中。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。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 processing unit (GPU), an image signal processor ( image signal processor (ISP), video codec, digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc. Different processing units may be independent devices, or may be integrated into one or more processors, such as a system on a chip (SoC). The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 .
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, 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 circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.
存储器120可以用于存储计算机可执行程序代码,可执行程序代码包括指令。存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,存储器120可以包括一个或者多个存储单元,例如可以包括易失性存储器(volatile memory),如:动态随机存取存储器(dynamic random access memory,DRAM)、静态随机存取存储器(static randomaccess memory,SRAM)等;还可以包括非易失性存储器(non-volatile memory,NVM),如:只读存储器(read-only memory,ROM)、闪存(flash memory)等。处理器110通过运行存储在存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Memory 120 may be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the memory 120 may include one or more storage units, for example, may include volatile memory (volatile memory), such as: dynamic random access memory (DRAM), static random access memory (static random access memory). , SRAM), etc.; it can also include non-volatile memory (non-volatile memory, NVM), such as read-only memory (read-only memory, ROM), flash memory (flash memory), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the memory 120 and/or instructions stored in the memory provided in the processor.
电子设备100的无线通信功能可以通过射频电路140、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the radio frequency circuit 140, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor, etc.
射频电路140可以包括至少一个天线141,用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。在一些实施例中,天线可以和调谐开关结合使用。The radio frequency circuit 140 may include at least one antenna 141 for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. In some embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线141接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线141转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 141, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 141 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(包括但不限于扬声器,受话器等)输出声音信号,或通过显示屏180显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (including but not limited to speakers, receivers, etc.), or displays images or videos through the display screen 180 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, 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.
无线通信模块160可以包括无线保真(wireless fidelity,Wi-Fi)模块,蓝牙(bluetooth,BT)模块、GNSS模块、近距离无线通信技术(near field communication,NFC)模块、红外(infrared,IR)模块等。无线通信模块160可以是集成上述至少一个模块的一个或多个器件。无线通信模块160经由天线141接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线141转为电磁波辐射出去。The wireless communication module 160 may include a wireless fidelity (Wi-Fi) module, a Bluetooth (BT) module, a GNSS module, a near field communication (NFC) module, and an infrared (IR) module. Modules etc. The wireless communication module 160 may be one or more devices integrating at least one of the above modules. The wireless communication module 160 receives electromagnetic waves through the antenna 141, 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, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 141 for radiation.
本申请实施例中,电子设备100的无线通信功能例如可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packetradio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-divisioncode division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),第五代移动通信技术新空口(5th generation mobile networks new radio,5G NR),BT,GNSS,WLAN,NFC,FM,和/或IR等功能。GNSS可以包括全球卫星定位系统(globalpositioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite basedaugmentation systems,SBAS)。In the embodiment of the present application, the wireless communication function of the electronic device 100 may include, for example, global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access). division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), The fifth generation mobile communication technology new radio (5G NR), BT, GNSS, WLAN, NFC, FM, and/or IR and other functions. GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
摄像头170用于捕获静态图像或视频。摄像头170包括镜头和感光元件,物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupleddevice,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV,RYYB等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头170,N为大于1的正整数。Camera 170 is used to capture still images or video. The camera 170 includes a lens and a photosensitive element. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV, RYYB and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 170, where N is a positive integer greater than 1.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
显示屏180用于显示图像,视频等。显示屏180包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),MiniLED,MicroLED,Micro-OLED,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏180,N为大于1的正整数。The display screen 180 is used to display images, videos, etc. Display 180 includes a display panel. The display panel can use 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 emitting diode). (AMOLED), flexible light-emitting diodes (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 180, where N is a positive integer greater than 1.
触摸传感器190,也称“触控器件”。触摸传感器190可以设置于显示屏180,由触摸传感器190与显示屏180组成触摸屏,也称“触控屏”。触摸传感器190用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏180提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器190也可以设置于电子设备100的表面,与显示屏180所处的位置不同。Touch sensor 190 is also called a "touch device". The touch sensor 190 can be disposed on the display screen 180. The touch sensor 190 and the display screen 180 form a touch screen, which is also called a "touch screen". The touch sensor 190 is used to detect touch operations on or near the touch sensor 190 . The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen 180 . In other embodiments, the touch sensor 190 may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 180 .
气压传感器210用于测量气压。在一些实施例中,电子设备100通过气压传感器210测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 210 is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 210 to assist positioning and navigation.
按键220包括开机键,音量键等。按键220可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 220 include a power button, a volume button, etc. The key 220 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
在一种实施例中,电子设备100中安装有操作系统,该操作系统能够保障电子设备正常运行。在操作系统中,进程与进程之间、进程与应用之间均可以通过进程间通信(Inter-Process Communication,IPC)相互调用,以实现业务功能。其中,操作系统中可以包括多个进程和应用,每个进程和应用用于实现操作系统中的一项或者多项基本功能。通常情况下,多个进程之间以及进程和应用之间均可以相互调用以实现对应的业务功能。In one embodiment, an operating system is installed in the electronic device 100, and the operating system can ensure the normal operation of the electronic device. In the operating system, processes and processes and processes and applications can call each other through inter-process communication (IPC) to realize business functions. The operating system may include multiple processes and applications, and each process and application is used to implement one or more basic functions in the operating system. Normally, multiple processes and processes and applications can call each other to implement corresponding business functions.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以硬件,软件或软件和硬件组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
图3是本申请实施例提供的一种消息显示方法的流程图。参见图3,该方法可以包括以下步骤:Figure 3 is a flow chart of a message display method provided by an embodiment of the present application. Referring to Figure 3, the method may include the following steps:
步骤S301,主屏幕应用响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表;其中,第一图标是第一应用的图标,第一图标位于主屏幕界面中。Step S301: The home screen application acquires the first notification list from the first process in response to the first gesture operation performed by the user on the first icon; wherein the first icon is an icon of the first application, and the first icon is located on the home screen interface. middle.
本申请实施例中,参见图1,第一应用可以是操作系统的设置应用,第一图标可以为设置应用的图标11。第一手势操作可以包括用户对设置应用的图标11执行的长按操作、单指多击操作、多指多击操作中的一种或者多种。本申请实施例对比不做具体限定,只要能够被电子设备响应而获取第一通知列表的操作,都可以为第一手势操作。其中,用户的多指多击操作例如可以是用户单手多指多击操作,也可以是用户双手多指多击操作,本申请实施例对此亦不做具体限定。In this embodiment of the present application, referring to FIG. 1 , the first application may be a setting application of the operating system, and the first icon may be the icon 11 of the setting application. The first gesture operation may include one or more of a long press operation, a single-finger multi-click operation, and a multi-finger multi-click operation performed by the user on the icon 11 of the setting application. There is no specific limitation in the embodiments of this application. As long as the electronic device can respond to the operation to obtain the first notification list, it can be the first gesture operation. The user's multi-finger multi-click operation may be, for example, the user's multi-finger multi-click operation with one hand, or the user's multi-finger multi-click operation with both hands, which is not specifically limited in the embodiments of the present application.
通常,电子设备100的主屏幕界面10中设有应用程序对应的应用图标。用户在对主屏幕界面10中的应用图标操作时,电子设备100中的主屏幕应用负责处理和响应用户对应用图标的所有操作。例如:Launcher(桌面启动器)应用响应于点击主屏幕界面10上的应用图标而启动应用程序、卸载和拖拽的功能等。Usually, the home screen interface 10 of the electronic device 100 is provided with application icons corresponding to the application programs. When the user operates the application icon in the home screen interface 10, the home screen application in the electronic device 100 is responsible for processing and responding to all the user's operations on the application icon. For example: a Launcher (desktop launcher) application has functions of launching applications, uninstalling, dragging, etc. in response to clicking the application icon on the home screen interface 10 .
在一种可实现方式中,电子设备100的主屏幕界面10中还设有文件夹对应的文件夹图标。文件夹图标是指用于管理文件或应用程序的文件夹的图标。这样,应用程序对应的应用图标还可以设置在主屏幕界面10中的文件夹中。用户可以在对文件夹图标操作后,触发进入文件夹图标对应的文件夹界面,然后在文件夹界面中对应用图标进行后续操作。需要说明的是,文件夹的表现形式包括但不限于在文件夹图标的周围设置的边框、在文件夹图标上设置的角标或者符号等。In an implementation manner, the home screen interface 10 of the electronic device 100 is also provided with a folder icon corresponding to the folder. Folder icons are icons used to manage folders of files or applications. In this way, the application icon corresponding to the application program can also be set in the folder in the home screen interface 10 . After operating on the folder icon, the user can trigger entry to the folder interface corresponding to the folder icon, and then perform subsequent operations on the application icon in the folder interface. It should be noted that the presentation form of the folder includes but is not limited to a border set around the folder icon, a corner mark or symbol set on the folder icon, etc.
在本申请实施例中,主屏幕应用在响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表的过程中,具体实现为:主屏幕应用响应于第一手势操作,向第一进程发送调用请求;然后接收第一进程响应于调用请求发送的第一通知列表。In this embodiment of the present application, in the process of obtaining the first notification list from the first process in response to the first gesture operation performed by the user on the first icon, the home screen application is specifically implemented as follows: the home screen application responds to the first gesture operation on the first icon. Gesture operation, sending a calling request to the first process; and then receiving the first notification list sent by the first process in response to the calling request.
在一种可实现方式中,主屏幕应用在调用第一进程时,可以采用管理接口,例如用于进程间通信的binder接口,向第一进程发送调用请求,以获取第一通知列表。并且,在第一进程接收到来自主屏幕应用的调用请求后,第一进程还可以通过调用管理接口,向主屏幕应用发送调用响应消息,以指示第一进程已经接收到该调用请求。这样,当主屏幕应用接收到来自第一进程的调用响应消息后,电子设备100则可以确定主屏幕应用已经完成与第一进程之间的相互调用。In one implementation manner, when calling the first process, the home screen application may use a management interface, such as a binder interface for inter-process communication, to send a calling request to the first process to obtain the first notification list. Moreover, after the first process receives the call request from the home screen application, the first process can also send a call response message to the home screen application by calling the management interface to indicate that the first process has received the call request. In this way, when the home screen application receives the call response message from the first process, the electronic device 100 can determine that the home screen application has completed the mutual call with the first process.
在本申请实施例中,主屏幕应用通过调用接口向第一进程发送调用请求后,接收第一进程返回的第一通知列表,电子设备100则确定主屏幕应用已经调用完成第一进程。需要说明的是,主屏幕应用可以在发送调用请求后的预设时长内或实时接收第一通知列表。In this embodiment of the present application, after the home screen application sends a calling request to the first process through the calling interface, and receives the first notification list returned by the first process, the electronic device 100 determines that the home screen application has completed calling the first process. It should be noted that the home screen application can receive the first notification list within a preset time period or in real time after sending the calling request.
在一些实施例中,第一通知列表中包括通知栏的所有通知消息,第一进程为系统服务system_server进程。具体的,系统服务进程中包括通知管理服务(NotificationManagerService,NMS)。这样,通过通知管理服务与主屏幕应用之间的通信接口进行数据交互,以实现本申请实施例提供的消息显示方法。需要说明的是,本申请实施例仅以上述通知管理服务进行示例,本领域技术人员可以针对消息显示过程来使用其他不同的服务来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In some embodiments, the first notification list includes all notification messages in the notification bar, and the first process is the system service system_server process. Specifically, the system service process includes notification management service (NotificationManagerService, NMS). In this way, data is exchanged through the communication interface between the notification management service and the home screen application to implement the message display method provided by the embodiment of the present application. It should be noted that the embodiment of this application only uses the above notification management service as an example. Those skilled in the art can use other different services to implement the described functions for the message display process, but such implementation should not be considered to be beyond the scope of this application. range.
通常,通知栏中的通知消息可以为文本信息、图片或者网络链接等。通知栏中的通知消息可以由电子设备中所安装的各种应用程序推送,以触发用户点击自己感兴趣的通知消息,需要说明的是,该通知消息可以是电子设备中应用程序推送的相关通知消息,也可以是电子设备中集成的SDK推送的相关通知消息。Usually, the notification message in the notification bar can be text information, pictures, or network links. The notification message in the notification bar can be pushed by various applications installed in the electronic device to trigger the user to click on the notification message that he is interested in. It should be noted that the notification message can be a relevant notification pushed by the application in the electronic device. The message can also be a relevant notification message pushed by the SDK integrated in the electronic device.
步骤S302,主屏幕应用判断第一通知列表中是否包括第一通知消息,第一通知消息是第二应用存在新版本时发送给第一进程的。Step S302: The home screen application determines whether the first notification list includes a first notification message. The first notification message is sent to the first process when a new version of the second application exists.
图4是本申请实施例提供的消息显示方法的步骤S302的流程图。参见图4,在一种实现方式中,步骤S302具体可以通过以下步骤S401-步骤S403实现。Figure 4 is a flow chart of step S302 of the message display method provided by the embodiment of the present application. Referring to Figure 4, in one implementation, step S302 can be specifically implemented through the following steps S401 to S403.
步骤S401,主屏幕应用获取第二应用的应用标识以及更新标识。Step S401: The home screen application obtains the application identification and update identification of the second application.
示例性的,第二应用的应用标识可以为第二应用的应用包名(Package Name)。For example, the application identifier of the second application may be the application package name (Package Name) of the second application.
一般来说,每个应用程序(App,Application)都有一个唯一的系统用户名(LinuxUser ID,简称UID),通过该UID可以标识该应用程序的文件并只对该应用程序自身可见。一个UID对应一个应用包名Package Name。因此,主屏幕应用通过UID获取到第二应用对应的应用包名Package Name。进而,主屏幕应用可以利用第二应用对应的应用包名PackageName获取得到第二应用的相关信息,例如:通知消息、指纹信息、应用名称、应用图标、版本号、版本名、最小SDK版本、启动项或权限等。以实现对第二应用的应用图标显示、通知消息显示以及应用的跳转等。在本申请实施例中,主屏幕应用利用第二应用对应的应用包名Package Name获取得到第二应用的通知消息。Generally speaking, each application (App, Application) has a unique system user name (LinuxUser ID, UID for short), through which the UID can identify the application's files and is only visible to the application itself. A UID corresponds to an application package name. Therefore, the main screen application obtains the application package name corresponding to the second application through the UID. Furthermore, the home screen application can use the application package name PackageName corresponding to the second application to obtain relevant information of the second application, such as: notification message, fingerprint information, application name, application icon, version number, version name, minimum SDK version, startup items or permissions, etc. To realize application icon display, notification message display, application jump, etc. of the second application. In this embodiment of the present application, the home screen application uses the application package name corresponding to the second application to obtain the notification message of the second application.
示例性的,第二应用的更新标识可以为用于表征新版本通知消息的Channel ID。For example, the update identification of the second application may be a Channel ID used to characterize the new version notification message.
在一些实施例中,通知栏中的通知消息包括第二应用推送的全部通知消息。其中,第二应用推送的全部通知消息可以是多个不同类型的通知消息。例如,新版本通知消息、软件推广通知消息以及版本提醒通知消息等。不同类型的通知消息对应有不同的ChannelID。例如,新版本通知消息的Channel ID为字段1,软件推广通知消息的Channel ID为字段2,版本提醒通知消息的Channel ID为字段3。由于Channel ID不同,主屏幕应用可以利用预设的Channel ID来获取某一类型的通知消息。在本申请实施例中,主屏幕应用后续可以利用Channel ID在第一类通知消息中判断是否存在第二应用的新版本通知消息。In some embodiments, the notification messages in the notification bar include all notification messages pushed by the second application. All notification messages pushed by the second application may be multiple different types of notification messages. For example, new version notification messages, software promotion notification messages, version reminder notification messages, etc. Different types of notification messages correspond to different ChannelIDs. For example, the Channel ID of the new version notification message is field 1, the Channel ID of the software promotion notification message is field 2, and the Channel ID of the version reminder notification message is field 3. Since the Channel IDs are different, the home screen application can use the preset Channel ID to obtain a certain type of notification message. In this embodiment of the present application, the home screen application can subsequently use the Channel ID to determine whether there is a new version notification message for the second application in the first type of notification message.
示例性的,第二应用的更新标识可以为新版本通知消息的题目TITLE和文本TEXT。对于第二应用来说,新版本通知消息的题目TITLE和文本TEXT对应的内容和格式是固定的。例如,新版本通知消息的TITLE为“发现新版本”,新版本通知消息的TEXT为“版本号:XXXX”。这样,主屏幕应用后续可以利用TITLE和TEXT在第一类通知消息中判断是否存在第二应用的新版本通知消息。For example, the update identifier of the second application may be the title TITLE and text TEXT of the new version notification message. For the second application, the content and format corresponding to the title TITLE and text TEXT of the new version notification message are fixed. For example, the TITLE of the new version notification message is "New version found", and the TEXT of the new version notification message is "Version number: XXXX". In this way, the home screen application can subsequently use TITLE and TEXT to determine whether there is a new version notification message for the second application in the first type of notification message.
需要说明的是,本申请并不对应用标识以及更新标识进行具体限定,仅以应用包名Package Name、Channel ID、TITLE和TEXT进行示例。本领域技术人员可以对每个标识来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It should be noted that this application does not specifically limit the application identifier and update identifier, and only uses the application package name Package Name, Channel ID, TITLE, and TEXT as an example. Those skilled in the art can use different methods for each identification to implement the described functions, but such implementation should not be considered to be beyond the scope of this application.
步骤S402,主屏幕应用根据应用标识判断第一通知列表中是否包括第一类通知消息,第一类通知消息包括第二应用发送给第一进程的通知消息。Step S402: The home screen application determines whether the first notification list includes a first type of notification message based on the application identifier. The first type of notification message includes a notification message sent by the second application to the first process.
在本申请实施例中,主屏幕应用根据第二应用的应用包名Package Name判断第一通知列表中是否包括第一类通知消息。例如,在Android系统中,操作系统的软件更新应用的应用包名为com.android.updater。这样,当第二应用为操作系统的软件更新应用时,主屏幕应用可以将应用包名com.android.updater对应的通知消息确定为第一类通知消息。进而,如果第一通知列表中包括第一类通知消息,主屏幕应用则在第一通知列表中筛选出关于第二应用的所有通知消息,以便于后续筛选第一通知消息。In this embodiment of the present application, the home screen application determines whether the first notification list includes the first type of notification message based on the application package name of the second application. For example, in the Android system, the application package name of the operating system's software update application is com.android.updater. In this way, when the second application is a software update application of the operating system, the home screen application can determine the notification message corresponding to the application package name com.android.updater as the first type of notification message. Furthermore, if the first notification list includes the first type of notification messages, the home screen application filters out all notification messages about the second application in the first notification list to facilitate subsequent screening of the first notification messages.
图5是本申请实施例示出的显示第一通知列表的示意图。参见图5,第一通知列表可以在电子设备的通知栏中显示。FIG. 5 is a schematic diagram showing a first notification list according to an embodiment of the present application. Referring to FIG. 5, the first notification list may be displayed in the notification bar of the electronic device.
示例性的,主屏幕应用可以在用户输入对通知栏的下拉操作时,通过第一进程获取第一通知列表,并在通知栏页面40中显示所有通知消息。在第一进程获取第一通知列表的过程中,第一进程可以按照预设的轮询周期对第一通知列表进行获取。第一通知列表可以包括电子设备中多个应用推送的通知消息,例如:浏览器应用推送的浏览器通知消息41、软件更新应用推送的软件更新通知消息42、购物应用推送的购物通知消息43以及视频应用推送的视频通知消息44。这样,如果第二应用将对应的通知消息发送至第一进程,那么主屏幕应用从第一进程中获取到的第一通知列表中包括第一类通知消息。如果第二应用没有将对应的通知消息发送至第一进程,那么主屏幕应用从第一进程中获取到的第一通知列表中不包括第一类通知消息。For example, when the user inputs a pull-down operation on the notification bar, the home screen application may obtain the first notification list through the first process, and display all notification messages in the notification bar page 40 . In the process of the first process obtaining the first notification list, the first process may obtain the first notification list according to a preset polling cycle. The first notification list may include notification messages pushed by multiple applications in the electronic device, for example: a browser notification message 41 pushed by a browser application, a software update notification message 42 pushed by a software update application, a shopping notification message 43 pushed by a shopping application, and Video notification message pushed by video application 44. In this way, if the second application sends the corresponding notification message to the first process, the first notification list obtained by the home screen application from the first process includes the first type of notification message. If the second application does not send the corresponding notification message to the first process, then the first notification list obtained by the home screen application from the first process does not include the first type of notification message.
步骤S403,如果第一通知列表中包括第一类通知消息,主屏幕应用根据更新标识判断第一类通知消息中是否存在第一通知消息。Step S403: If the first notification list includes the first type of notification message, the home screen application determines whether there is a first notification message in the first type of notification message based on the update identifier.
在本申请实施例中,由于第一类通知消息包括第二应用的不同类型的通知消息,因此主屏幕应用可以根据预设的Channel ID、TITLE和TEXT获取到某一类型的通知消息。例如:第一类通知消息包括第二应用的新版本通知消息、下载进度通知消息以及安装成功通知消息等。其中,新版本通知消息的Channel ID为字段1,TITLE为“发现新版本”,TEXT为“版本号:XXXX”。下载进度通知消息的Channel ID为字段100,TITLE为“下载进度”,TEXT为“下载进度:XXXX”。安装成功通知消息的Channel ID为字段200,TITLE为“安装成功”,TEXT为“安装成功:XXXX”。这样,主屏幕应用可以利用字段1和/或“发现新版本”和/或“版本号:XXXX”确定第一类通知消息中是否存在新版本通知消息。In this embodiment of the present application, since the first type of notification message includes different types of notification messages of the second application, the home screen application can obtain a certain type of notification message based on the preset Channel ID, TITLE, and TEXT. For example, the first type of notification message includes a new version notification message of the second application, a download progress notification message, and an installation success notification message, etc. Among them, the Channel ID of the new version notification message is field 1, TITLE is "New version found", and TEXT is "Version number: XXXX". The Channel ID of the download progress notification message is field 100, TITLE is "Download Progress", and TEXT is "Download Progress: XXXX". The Channel ID of the successful installation notification message is field 200, the TITLE is "Installation successful", and the TEXT is "Installation successful: XXXX". In this way, the home screen application can utilize field 1 and/or "New version found" and/or "Version number: XXXX" to determine whether there is a new version notification message in the first type of notification message.
步骤S303,如果第一通知列表中包括第一通知消息,主屏幕应用在主屏幕界面中显示第一应用的第一窗口,第一窗口包括第一通知消息。Step S303: If the first notification message is included in the first notification list, the home screen application displays the first window of the first application in the home screen interface, and the first window includes the first notification message.
图6是本申请实施例示出的一种第一窗口和第二窗口的示意图。Figure 6 is a schematic diagram of a first window and a second window according to an embodiment of the present application.
参见图6,在一种实现方式中,第一窗口51可以位于设置应用的图标11的一侧,并且与设置应用的图标11相邻显示。Referring to FIG. 6 , in one implementation, the first window 51 may be located on one side of the icon 11 of the settings application and displayed adjacent to the icon 11 of the settings application.
例如,设置应用的图标11的顶部区域显示第一窗口51,设置应用的图标11的底部区域显示第一窗口51。第一窗口51中包括第二应用的新版本通知消息,例如:发现新版本(版本号:6.0.0.9M)。For example, the first window 51 is displayed in the top area of the icon 11 of the setting application, and the first window 51 is displayed in the bottom area of the icon 11 of the setting application. The first window 51 includes a new version notification message of the second application, for example: a new version is found (version number: 6.0.0.9M).
在本申请实施例中,如果第一通知列表中包括第一通知消息,主屏幕应用可以在第一窗口中显示第一通知消息。因此,用户通过输入对第一图标的第一手势操作后,即可在主屏幕界面10的第一窗口中查看第二应用的新版本通知消息。无需用户多次手动操作第一应用,大幅简化了用户的操作步骤,提高新版本通知消息的可见性以及用户的使用体验感。In this embodiment of the present application, if the first notification message is included in the first notification list, the home screen application may display the first notification message in the first window. Therefore, after the user inputs the first gesture operation on the first icon, the user can view the new version notification message of the second application in the first window of the home screen interface 10 . There is no need for users to manually operate the first application multiple times, which greatly simplifies the user's operation steps, improves the visibility of new version notification messages and improves the user's experience.
在一种实现方式中,如果第一通知列表包括第一通知消息,主屏幕应用在主屏幕界面10中同时显示第一窗口51和第二窗口52。In one implementation, if the first notification list includes the first notification message, the home screen application simultaneously displays the first window 51 and the second window 52 in the home screen interface 10 .
在主屏幕应用显示第二窗口的过程中,主屏幕应用响应于第一手势操作,获取第一应用的至少一个快捷功能。如果第一通知列表中包括第一通知消息,在主屏幕界面中显示第一应用的第二窗口,第二窗口包括至少一个快捷功能的功能标识。While the home screen application displays the second window, the home screen application acquires at least one shortcut function of the first application in response to the first gesture operation. If the first notification message is included in the first notification list, a second window of the first application is displayed in the home screen interface, and the second window includes a function identifier of at least one shortcut function.
可以理解的是,快捷功能对应的功能标识是指在用户输入对应用图标第一手势操作后出现的快捷方式,属于为应用程序的关键功能添加更快速的入口,无需用户打开应用程序后再触发关键功能。示例性的,第二窗口52中显示有WIFI、蓝牙以及无线热点等功能标识,WIFI、蓝牙以及热点等功能为第一应用中的关键功能。It is understandable that the function identifier corresponding to the shortcut function refers to the shortcut that appears after the user inputs the first gesture operation on the application icon. It is a way to add a faster entrance to the key functions of the application and does not require the user to open the application before triggering it. Key features. For example, the second window 52 displays function identifiers such as WIFI, Bluetooth, and wireless hotspots. Functions such as WIFI, Bluetooth, and wireless hotspots are key functions in the first application.
继续参见图6,第一窗口51和第二窗口52可以显示在设置应用的图标11的上方,并且第一窗口51和第二窗口52可以上下相邻设置。例如,第一窗口51可以显示在第二窗口52的下方。又例如,第一窗口51可以显示在第二窗口52的上方。同理,第一窗口51和第二窗口52还可以显示在设置应用的图标11的下方,并且第一窗口51和第二窗口52上下相邻设置。Continuing to refer to FIG. 6 , the first window 51 and the second window 52 may be displayed above the icon 11 of the setting application, and the first window 51 and the second window 52 may be arranged adjacently one above the other. For example, the first window 51 may be displayed below the second window 52. For another example, the first window 51 may be displayed above the second window 52 . Similarly, the first window 51 and the second window 52 can also be displayed below the icon 11 of the setting application, and the first window 51 and the second window 52 are arranged adjacent to each other one above the other.
图7是本申请实施例示出的另一种第一窗口和第二窗口的示意图。Figure 7 is a schematic diagram of another first window and a second window according to an embodiment of the present application.
参见图7,在一种实现方式中,第一窗口51和第二窗口52可以显示在设置应用的图标11的上方,第一窗口51和第二窗口52可以左右相邻设置。例如,第一窗口51可以显示在第二窗口52的右侧。又例如,第一窗口51显示在第二窗口52的左侧。同理,第一窗口51和第二窗口52还可以显示在设置应用的图标11的下方,并且第一窗口51和第二窗口52左右相邻设置。需要说明的是,第一窗口51与第二窗口52的宽度可以相同也可以不同,本申请实施例对此不做限定。Referring to FIG. 7 , in one implementation, the first window 51 and the second window 52 may be displayed above the icon 11 of the setting application, and the first window 51 and the second window 52 may be arranged adjacent to each other on the left and right. For example, the first window 51 may be displayed on the right side of the second window 52. For another example, the first window 51 is displayed on the left side of the second window 52 . Similarly, the first window 51 and the second window 52 can also be displayed below the icon 11 of the setting application, and the first window 51 and the second window 52 are arranged adjacent to each other on the left and right. It should be noted that the widths of the first window 51 and the second window 52 may be the same or different, and this is not limited in the embodiment of the present application.
为了满足用户同时查看第一应用和第二应用的通知消息的需求,在一种实现方式中,如果第一通知列表中包括第一通知消息,在主屏幕应用显示第一窗口的过程中,主屏幕应用还可以获取第二通知列表,第二通知列表包括第一应用的通知消息。并将第一通知消息添加至第二通知列表中,得到第三通知列表。最终,主屏幕应用在主屏幕界面中显示第一窗口,第一窗口包括第三通知列表。In order to meet the user's need to view notification messages of the first application and the second application at the same time, in one implementation, if the first notification message includes the first notification message, during the process of the main screen application displaying the first window, the main screen application displays the first window. The screen application may also obtain a second notification list, and the second notification list includes notification messages of the first application. The first notification message is added to the second notification list to obtain a third notification list. Finally, the home screen application displays a first window in the home screen interface, and the first window includes a third notification list.
图8是本申请实施例示出的另一种第一窗口和第二窗口的示意图。参见图8,示例性的,第一窗口51中显示有第三通知列表,第三通知列表中包括第一应用的通知消息和第二应用的新版本通知消息。如:WIFI已连接和发现新版本(版本号:6.0.0.9M)。需要说明的是,主屏幕应用在获取第二通知列表的过程中,主屏幕应用可以在第一应用的本地缓存中获取第一应用需要显示的通知消息。Figure 8 is a schematic diagram of another first window and a second window according to an embodiment of the present application. Referring to FIG. 8 , as an example, a third notification list is displayed in the first window 51 , and the third notification list includes notification messages of the first application and new version notification messages of the second application. For example: WIFI is connected and a new version is found (version number: 6.0.0.9M). It should be noted that when the home screen application obtains the second notification list, the home screen application may obtain the notification message that the first application needs to display from the local cache of the first application.
图11是本申请实施例提供的得到第三通知列表的流程图。参见图11,在一种实现方式中,在主屏幕应用可以将第一通知消息添加至第二通知列表,得到第三通知列表的过程中,可以采用以下步骤S501-步骤S502进行得到。Figure 11 is a flow chart for obtaining the third notification list provided by the embodiment of the present application. Referring to Figure 11, in one implementation, when the home screen application can add the first notification message to the second notification list and obtain the third notification list, the following steps S501 to S502 can be used to obtain the third notification list.
步骤S501,主屏幕应用获取第二通知列表的第一参数集合,以及第一通知消息的目标属性参数,第一参数集合包括第一应用中的每个通知消息的属性参数。Step S501: The home screen application obtains a first parameter set of the second notification list and the target attribute parameters of the first notification message. The first parameter set includes the attribute parameters of each notification message in the first application.
步骤S502,主屏幕应用将目标属性参数添加至第一参数集合,得到第二参数集合;并根据第二参数集合,得到第三通知列表。Step S502: The home screen application adds the target attribute parameters to the first parameter set to obtain a second parameter set; and obtains a third notification list based on the second parameter set.
示例性的,属性参数可以为每个通知消息对应的notificationKeys值。主屏幕应用可以获取第一应用中每个通知消息的notificationKeys值,并将其构成第一参数集合。然后,主屏幕应用获取第一通知消息的notificationKeys值,并将第一通知消息的notificationKeys值添加至第一参数集合,得到第二参数集合。最后,主屏幕应用可以根据第二参数集合中的所有notificationKeys值获取第三通知列表,以及在第一窗口51中显示第三通知列表。For example, the attribute parameter may be the notificationKeys value corresponding to each notification message. The home screen application can obtain the notificationKeys value of each notification message in the first application and form the first parameter set. Then, the home screen application obtains the notificationKeys value of the first notification message, and adds the notificationKeys value of the first notification message to the first parameter set to obtain a second parameter set. Finally, the home screen application can obtain the third notification list according to all notificationKeys values in the second parameter set, and display the third notification list in the first window 51 .
由此,主屏幕应用在第一窗口51中显示第三通知列表后,即可以满足用户查看第一应用的通知消息,又可以满足用户查看第二应用的新版本通知消息。增强了关于第二应用的新版本提醒强度,提升用户升级率。同时,增强了第一应用和第二应用通知消息的可见性。Therefore, after the home screen application displays the third notification list in the first window 51, the user can view the notification message of the first application and the user can view the new version notification message of the second application. The strength of the new version reminder for the second application has been enhanced to increase the user upgrade rate. At the same time, the visibility of notification messages of the first application and the second application is enhanced.
在另一种实现方式中,如果第一通知列表中不包括第一通知消息,主屏幕应用则在主屏幕界面中显示第一窗口和第二窗口。其中,第一窗口包括第二通知列表,第二窗口包括至少一个快捷功能的功能标识。In another implementation manner, if the first notification message is not included in the first notification list, the home screen application displays the first window and the second window in the home screen interface. The first window includes a second notification list, and the second window includes a function identifier of at least one shortcut function.
图9是本申请实施例示出的另一种第一窗口和第二窗口的示意图。参见图9,示例性的,如果第一通知列表中不包括第一通知消息,主屏幕应用可以在主屏幕界面10中显示第一窗口51和第二窗口52。其中,第一窗口51中显示有第二通知列表,即第一应用的通知消息。如:WIFI已连接。第二窗口52中显示有如WIFI、蓝牙以及无线热点等功能标识。Figure 9 is a schematic diagram of another first window and a second window according to an embodiment of the present application. Referring to FIG. 9 , for example, if the first notification message is not included in the first notification list, the home screen application may display the first window 51 and the second window 52 in the home screen interface 10 . Among them, the second notification list, that is, the notification messages of the first application, is displayed in the first window 51 . For example: WIFI is connected. The second window 52 displays functional identifiers such as WIFI, Bluetooth, and wireless hotspot.
在另一种实现方式中,如果第一通知列表中包括第一通知消息,主屏幕应用则在主屏幕界面中显示第一窗口和第二窗口。其中,第一窗口包括第三通知列表,第二窗口包括至少一个快捷功能的功能标识和第二应用的名称标识。In another implementation, if the first notification list includes the first notification message, the home screen application displays the first window and the second window in the home screen interface. The first window includes a third notification list, and the second window includes a function identifier of at least one shortcut function and a name identifier of the second application.
示例性的,图10为是本申请实施例示出的另一种第一窗口和第二窗口的示意图。参见图10,如果第一通知列表中包括第一通知消息,主屏幕应用则在主屏幕界面10中显示第一窗口51和第二窗口52。其中,第一窗口51中显示有第三通知列表,即第一应用的通知消息和第二应用的新版本通知消息。如:WIFI已连接和发现新版本(版本号:6.0.0.9M)。第二窗口52中显示有如WIFI、蓝牙以及无线热点等功能标识,同时还显示有第二应用的名称标识如软件更新。For example, FIG. 10 is a schematic diagram of another first window and a second window according to an embodiment of the present application. Referring to FIG. 10 , if the first notification message is included in the first notification list, the home screen application displays the first window 51 and the second window 52 in the home screen interface 10 . Among them, the first window 51 displays a third notification list, that is, the notification message of the first application and the new version notification message of the second application. For example: WIFI is connected and a new version is found (version number: 6.0.0.9M). The second window 52 displays function identifiers such as WIFI, Bluetooth and wireless hotspot, and also displays the name identifier of the second application such as software update.
由此,在上述实现方式的场景下,主屏幕应用通过响应于用户对第一图标执行的第一手势操作,在主屏幕界面10中显示出第一窗口51和第二窗口52,并在第一窗口51中显示第二应用的新版本通知消息,以及在第二窗口52中显示第二应用的名称标识。从而避免了用户需对第一应用的频繁操作,使用户可以更方便地找到第二应用的新版本通知消息。同时,用户还可以点击第二应用的名称标识,主屏幕应用触发进入到第二应用的应用界面。提升了用户使用第一应用和第二应用的体验。Therefore, in the scenario of the above implementation, the home screen application displays the first window 51 and the second window 52 in the home screen interface 10 in response to the first gesture operation performed by the user on the first icon, and displays the first window 51 and the second window 52 in the home screen interface 10 in response to the first gesture operation performed by the user on the first icon. A new version notification message of the second application is displayed in a window 51, and a name identification of the second application is displayed in the second window 52. This avoids the need for the user to frequently operate the first application, allowing the user to more conveniently find the new version notification message of the second application. At the same time, the user can also click on the name logo of the second application, and the home screen application is triggered to enter the application interface of the second application. The user experience of using the first application and the second application is improved.
这里需要补充说明的是,以上结合图6至图10以主屏幕响应于用户对第一图标执行的第一手势操作为例,对本申请实施例提供的消息显示过程的实现方式进行了示例性地说明,上述实现方式同样适用于任意应用对应的应用图标,此处不再赘述。It should be supplemented here that the implementation of the message display process provided by the embodiment of the present application is exemplified by taking the home screen in response to the first gesture operation performed by the user on the first icon as an example in conjunction with FIGS. 6 to 10 . Note that the above implementation method is also applicable to the application icon corresponding to any application, and will not be described again here.
并且,在图6至图10示出的技术方案中,电子设备允许用户通过简单的拖拽或选择操作第一应用所需要常驻显示的通知消息、功能标识和名称标识,以便于将通知消息、功能标识和名称标识同时显示在第一窗口51和第二窗口52中。提升了用户在查看通知消息和使用快捷功能场景下的使用体验。Moreover, in the technical solutions shown in FIGS. 6 to 10 , the electronic device allows the user to operate the notification messages, function identifiers and name identifiers required to be permanently displayed by the first application through simple dragging or selection, so as to facilitate the notification message. , function identification and name identification are displayed in the first window 51 and the second window 52 at the same time. Improved user experience when viewing notification messages and using shortcut functions.
可以理解的是,在不同的操作系统、同一操作的不同定制版本或者不同的桌面主题中,上述用于引导用户输入身份信息的各元素的布局方式、图形样式、文字内容等可能有所不同,具体可以由系统开发人员自行设置,本申请实施例对此不做限定。It is understandable that in different operating systems, different customized versions of the same operation, or different desktop themes, the layout, graphic style, text content, etc. of each element used to guide users to enter identity information may be different. The details can be set by the system developer themselves, and the embodiments of this application do not limit this.
上述本申请提供的实施例从电子设备本身、以及电子设备与用户交互的角度对本申请提供的消息显示方法的各方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above embodiments provided by this application introduce various solutions of the message display method provided by this application from the perspective of the electronic device itself and the interaction between the electronic device and the user. It can be understood that, in order to implement the above functions, the electronic device includes corresponding hardware structures and/or software modules that perform each function. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
图12是本申请实施例提供的一种消息显示装置的结构示意图。在一个实施例中,电子设备可以通过图12所示的硬件装置实现相应的功能。如图12所示,该消息显示装置包括:触控屏1201、存储器1202和处理器1203。Figure 12 is a schematic structural diagram of a message display device provided by an embodiment of the present application. In one embodiment, the electronic device can implement corresponding functions through the hardware device shown in FIG. 12 . As shown in FIG. 12 , the message display device includes: a touch screen 1201 , a memory 1202 and a processor 1203 .
在一个实施例中,触控屏1201可以包括显示屏和触摸传感器,其中,显示屏用于显示图像,触摸传感器可以将检测到的用户手势操作传递给应用处理器,以确定手势操作类型,通过显示屏提供与手势操作相关的视觉输出。处理器1203可以包括一个或多个处理单元,例如:处理器1203可以包括应用处理器,调制解调处理器,图形处理器,图像信号处理器,控制器,视频编解码器,数字信号处理器,基带处理器,和/或神经网络处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。存储器1202与处理器1203耦合,用于存储各种软件程序和/或多组计算机程序指令,存储器1202可包括易失性存储器和/或非易失性存储器。In one embodiment, the touch screen 1201 may include a display screen and a touch sensor, wherein the display screen is used to display images, and the touch sensor may pass the detected user gesture operation to the application processor to determine the gesture operation type, by The display provides visual output related to gesture operations. The processor 1203 may include one or more processing units, for example: the processor 1203 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor , baseband processor, and/or neural network processor, etc. Among them, different processing units can be independent devices or integrated in one or more processors. Memory 1202 is coupled to processor 1203 for storing various software programs and/or sets of computer program instructions, and memory 1202 may include volatile memory and/or non-volatile memory.
当存储器1202中的软件程序和/或多组计算机程序指令被处理器1203执行时,使得电子设备实现如下方法步骤:响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表;其中,第一图标是第一应用的图标,第一图标位于主屏幕界面中;判断第一通知列表中是否包括第一通知消息,第一通知消息是第二应用存在新版本时发送给第一进程的;如果第一通知列表中包括第一通知消息,在主屏幕界面中显示第一应用的第一窗口,第一窗口包括第一通知消息。When the software program and/or multiple sets of computer program instructions in the memory 1202 are executed by the processor 1203, the electronic device is caused to implement the following method steps: in response to the first gesture operation performed by the user on the first icon, obtain from the first process The first notification list; wherein, the first icon is the icon of the first application, and the first icon is located in the home screen interface; it is determined whether the first notification list includes the first notification message, and the first notification message is that a new version of the second application exists is sent to the first process; if the first notification list includes the first notification message, the first window of the first application is displayed in the home screen interface, and the first window includes the first notification message.
本申请实施例提供的技术方案,在主屏幕界面上无第二应用的图标的场景下,电子设备响应于用户输入对第一图标的手势操作后,即可显示第二应用对应的第一通知消息。无需用户多次手动操作第一应用才能查看到第一通知消息,简化了操作步骤,提升用户的使用体验。According to the technical solution provided by the embodiment of the present application, in a scenario where there is no icon of the second application on the home screen interface, the electronic device can display the first notification corresponding to the second application in response to the user inputting a gesture operation on the first icon. information. There is no need for the user to manually operate the first application multiple times to view the first notification message, which simplifies the operation steps and improves the user experience.
在一种实现方式中,判断第一通知列表中是否包括第一通知消息,包括:获取第二应用的应用标识以及更新标识;根据应用标识判断第一通知列表中是否包括第一类通知消息,第一类通知消息包括第二应用发送给第一进程的通知消息;如果第一通知列表中包括第一类通知消息,根据更新标识判断第一类通知消息中是否存在第一通知消息。In one implementation, determining whether the first notification message includes the first notification message includes: obtaining the application identifier and update identifier of the second application; determining whether the first notification list includes the first type of notification message based on the application identifier, The first type of notification message includes the notification message sent by the second application to the first process; if the first notification list includes the first type of notification message, it is determined according to the update identifier whether the first type of notification message contains the first notification message.
在一种实现方式中,在主屏幕界面中显示第一应用的第一窗口,第一窗口包括第一通知消息,包括:获取第二通知列表,第二通知列表包括第一应用的通知消息;将第一通知消息添加至第二通知列表中,得到第三通知列表;在主屏幕界面中显示第一窗口,第一窗口包括第三通知列表。In one implementation, displaying the first window of the first application in the home screen interface, and the first window including the first notification message includes: obtaining a second notification list, and the second notification list includes the notification message of the first application; The first notification message is added to the second notification list to obtain a third notification list; a first window is displayed in the home screen interface, and the first window includes the third notification list.
在一种实现方式中,当存储器1202中的软件程序和/或多组计算机程序指令被处理器1203执行时,还使得电子设备具体实现如下方法步骤:响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表,包括:响应于第一手势操作,向第一进程发送调用请求;接收第一进程响应于调用请求发送的第一通知列表。In one implementation, when the software program and/or multiple sets of computer program instructions in the memory 1202 are executed by the processor 1203, the electronic device is also caused to specifically implement the following method steps: in response to the first execution of the first icon by the user. The gesture operation is to obtain the first notification list from the first process, including: in response to the first gesture operation, sending a calling request to the first process; and receiving the first notification list sent by the first process in response to the calling request.
在一种实现方式中,将第一通知消息添加至第二通知列表中,得到第三通知列表,包括:获取第二通知列表的第一参数集合,以及第一通知消息的目标属性参数,第一参数集合包括第一应用中的每个通知消息的属性参数;将目标属性参数添加至第一参数集合,得到第二参数集合;根据第二参数集合,得到第三通知列表。In one implementation, adding the first notification message to the second notification list to obtain the third notification list includes: obtaining the first parameter set of the second notification list, and the target attribute parameters of the first notification message, and A parameter set includes attribute parameters of each notification message in the first application; the target attribute parameters are added to the first parameter set to obtain a second parameter set; and a third notification list is obtained based on the second parameter set.
在一种实现方式中,当存储器1202中的软件程序和/或多组计算机程序指令被处理器1203执行时,还使得电子设备具体实现如下方法步骤:响应于第一手势操作,获取第一应用的至少一个快捷功能;如果第一通知列表中不包括第一通知消息,在主屏幕界面中显示第一应用的第二窗口,第二窗口包括至少一个快捷功能的功能标识。In one implementation, when the software program and/or multiple sets of computer program instructions in the memory 1202 are executed by the processor 1203, the electronic device is also caused to specifically implement the following method steps: in response to the first gesture operation, obtain the first application at least one shortcut function; if the first notification message does not include the first notification message, display a second window of the first application in the home screen interface, and the second window includes a function identifier of at least one shortcut function.
在一种实现方式中,如果第一通知列表包括第一通知消息,在主屏幕界面中显示第一应用的第一窗口,包括:如果第一通知列表包括第一通知消息,在主屏幕界面中显示第一窗口和第二窗口。In one implementation, if the first notification list includes the first notification message, displaying the first window of the first application in the home screen interface includes: if the first notification list includes the first notification message, displaying in the home screen interface Display the first window and the second window.
在一种实现方式中,第一手势操作包括用户对第一图标执行的长按操作。In one implementation, the first gesture operation includes a long press operation performed by the user on the first icon.
在一种实现方式中,第一应用为设置应用;第二应用为软件更新应用;第一进程为系统服务system_server进程。In an implementation manner, the first application is a setting application; the second application is a software update application; and the first process is a system service system_server process.
图13是本申请实施例提供的另一种消息显示装置的结构示意图。在一个实施例中,电子设备可以通过图13所示的软件装置实现相应的功能。如图13所示,该消息显示装置包括:消息显示模块1301和消息处理模块1302。Figure 13 is a schematic structural diagram of another message display device provided by an embodiment of the present application. In one embodiment, the electronic device can implement corresponding functions through the software device shown in FIG. 13 . As shown in Figure 13, the message display device includes: a message display module 1301 and a message processing module 1302.
消息处理模块1302,用于响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表;其中,第一图标是第一应用的图标,第一图标位于主屏幕界面中;判断第一通知列表中是否包括第一通知消息,第一通知消息是第二应用存在新版本时发送给第一进程的;如果第一通知列表中包括第一通知消息。消息显示模块1301,用于在主屏幕界面中显示第一应用的第一窗口,第一窗口包括第一通知消息。这样,在主屏幕界面上无第二应用的图标的场景下,电子设备响应于用户输入对第一图标的手势操作后,即可显示第二应用对应的第一通知消息。无需用户多次手动操作第一应用才能查看到第一通知消息,简化了操作步骤,提升用户的使用体验。The message processing module 1302 is configured to obtain the first notification list from the first process in response to the first gesture operation performed by the user on the first icon; wherein the first icon is an icon of the first application, and the first icon is located on the home screen In the interface, determine whether the first notification message is included in the first notification list. The first notification message is sent to the first process when a new version of the second application exists; if the first notification message is included in the first notification list. The message display module 1301 is configured to display a first window of the first application in the home screen interface, where the first window includes a first notification message. In this way, in a scenario where there is no icon of the second application on the home screen interface, the electronic device can display the first notification message corresponding to the second application in response to the user inputting a gesture operation on the first icon. There is no need for the user to manually operate the first application multiple times to view the first notification message, which simplifies the operation steps and improves the user experience.
在一种实现方式中,判断第一通知列表中是否包括第一通知消息,消息处理模块1302用于获取第二应用的应用标识以及更新标识;根据应用标识判断第一通知列表中是否包括第一类通知消息,第一类通知消息包括第二应用发送给第一进程的通知消息;如果第一通知列表中包括第一类通知消息,根据更新标识判断第一类通知消息中是否存在第一通知消息。In one implementation, to determine whether the first notification message is included in the first notification list, the message processing module 1302 is used to obtain the application identification and update identification of the second application; and to determine whether the first notification list includes the first notification message according to the application identification. Class notification message, the first class notification message includes the notification message sent by the second application to the first process; if the first notification list includes the first class notification message, determine whether there is a first notification in the first class notification message according to the update identifier information.
在一种实现方式中,消息显示模块1301用于在主屏幕界面中显示第一应用的第一窗口时,消息处理模块1302用于获取第二通知列表,第二通知列表包括第一应用的通知消息;将第一通知消息添加至第二通知列表中,得到第三通知列表;在主屏幕界面中显示第一窗口,第一窗口包括第三通知列表。In one implementation, when the message display module 1301 is used to display the first window of the first application in the home screen interface, the message processing module 1302 is used to obtain a second notification list, and the second notification list includes notifications of the first application. message; add the first notification message to the second notification list to obtain a third notification list; display the first window in the home screen interface, and the first window includes the third notification list.
在一种实现方式中,消息处理模块1302用于响应于用户对第一图标执行的第一手势操作,从第一进程中获取第一通知列表,具体用于响应于第一手势操作,向第一进程发送调用请求;接收第一进程响应于调用请求发送的第一通知列表。In one implementation, the message processing module 1302 is configured to obtain the first notification list from the first process in response to the first gesture operation performed by the user on the first icon. Specifically, in response to the first gesture operation, the message processing module 1302 sends the first notification list to the first gesture operation. A process sends a calling request; and a first notification list sent by the first process in response to the calling request is received.
在一种实现方式中,消息处理模块1302用于将第一通知消息添加至第二通知列表中,得到第三通知列表时,具体用于获取第二通知列表的第一参数集合,以及第一通知消息的目标属性参数,第一参数集合包括第一应用中的每个通知消息的属性参数;将目标属性参数添加至第一参数集合,得到第二参数集合;根据第二参数集合,得到第三通知列表。In one implementation, the message processing module 1302 is used to add the first notification message to the second notification list, and when obtaining the third notification list, is specifically used to obtain the first parameter set of the second notification list, and the first The target attribute parameters of the notification message, the first parameter set includes the attribute parameters of each notification message in the first application; the target attribute parameters are added to the first parameter set to obtain the second parameter set; according to the second parameter set, the third parameter set is obtained Three notification lists.
在一种实现方式中,消息处理模块1302还用于响应于第一手势操作,获取第一应用的至少一个快捷功能。如果第一通知列表中不包括第一通知消息,消息显示模块1301还用于在主屏幕界面中显示第一应用的第二窗口,第二窗口包括至少一个快捷功能的功能标识。In one implementation, the message processing module 1302 is further configured to obtain at least one shortcut function of the first application in response to the first gesture operation. If the first notification message is not included in the first notification list, the message display module 1301 is further configured to display a second window of the first application in the home screen interface, where the second window includes a function identifier of at least one shortcut function.
在一种实现方式中,如果第一通知列表包括第一通知消息,消息显示模块1301用于在主屏幕界面中显示第一窗口和第二窗口。In one implementation, if the first notification list includes a first notification message, the message display module 1301 is configured to display the first window and the second window in the home screen interface.
在一种实现方式中,第一手势操作包括用户对第一图标执行的长按操作。In one implementation, the first gesture operation includes a long press operation performed by the user on the first icon.
在一种实现方式中,第一应用为设置应用;第二应用为软件更新应用;第一进程为系统服务system_server进程。In an implementation manner, the first application is a setting application; the second application is a software update application; and the first process is a system service system_server process.
本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持上述装置实现上述方面中所涉及的功能,例如,生成或处理上述方法中所涉及的信息。在一种可能的设计中,芯片系统还包括存储器,用于保存隐私信息生成装置必要的计算机指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Embodiments of the present application also provide a chip system. The chip system includes a processor and is used to support the above device in implementing the functions involved in the above aspects, for example, generating or processing information involved in the above methods. In a possible design, the chip system also includes a memory for storing necessary computer instructions and data for the private information generation device. The chip system may be composed of chips, or may include chips and other discrete devices.
本申请实施例还提供了一种电子设备,包括:存储器和处理器,处理器和存储器耦合;其中,存储器包括有程序指令,程序指令被处理器运行时,使得电子设备执行如上述各方面执行的方法。Embodiments of the present application also provide an electronic device, including: a memory and a processor, and the processor and the memory are coupled; wherein, the memory includes program instructions, and when the program instructions are run by the processor, the electronic device performs the above-mentioned aspects. Methods.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序指令,当计算机程序指令被运行时,实现如上述各方面执行的方法。Embodiments of the present application also provide a computer-readable storage medium. Computer program instructions are stored in the computer-readable storage medium. When the computer program instructions are run, the methods performed in the above aspects are implemented.
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。The term "plurality" as used herein means two or more. The term "and/or" in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations. In addition, the character "/" in this article generally indicates that the related objects before and after are an "or" relationship; in the formula, the character "/" indicates that the related objects before and after are a "division" relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that the various numerical numbers involved in the embodiments of the present application are only for convenience of description and are not used to limit the scope of the embodiments of the present application. It can be understood that in the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the implementation of the present application. The implementation of the examples does not constitute any limitations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210787048.6A CN116048326B (en) | 2022-07-04 | 2022-07-04 | Message display method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210787048.6A CN116048326B (en) | 2022-07-04 | 2022-07-04 | Message display method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116048326A CN116048326A (en) | 2023-05-02 |
CN116048326B true CN116048326B (en) | 2023-10-20 |
Family
ID=86126082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210787048.6A Active CN116048326B (en) | 2022-07-04 | 2022-07-04 | Message display method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116048326B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021088422A1 (en) * | 2019-11-07 | 2021-05-14 | 支付宝(杭州)信息技术有限公司 | Application message notification method and device |
CN113114845A (en) * | 2021-04-09 | 2021-07-13 | 维沃移动通信有限公司 | Notification message display method and device |
CN113360222A (en) * | 2020-03-06 | 2021-09-07 | 华为技术有限公司 | Application information display method and related equipment |
CN114116085A (en) * | 2020-08-29 | 2022-03-01 | 华为技术有限公司 | Notification message management method and electronic equipment |
CN114690985A (en) * | 2020-12-30 | 2022-07-01 | 华为技术有限公司 | Display method and electronic equipment |
-
2022
- 2022-07-04 CN CN202210787048.6A patent/CN116048326B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021088422A1 (en) * | 2019-11-07 | 2021-05-14 | 支付宝(杭州)信息技术有限公司 | Application message notification method and device |
CN113360222A (en) * | 2020-03-06 | 2021-09-07 | 华为技术有限公司 | Application information display method and related equipment |
CN114116085A (en) * | 2020-08-29 | 2022-03-01 | 华为技术有限公司 | Notification message management method and electronic equipment |
CN114690985A (en) * | 2020-12-30 | 2022-07-01 | 华为技术有限公司 | Display method and electronic equipment |
CN113114845A (en) * | 2021-04-09 | 2021-07-13 | 维沃移动通信有限公司 | Notification message display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN116048326A (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112703478B (en) | Data sharing method, graphical user interface, electronic device and system | |
WO2020238774A1 (en) | Notification message preview method and electronic device | |
US11385857B2 (en) | Method for displaying UI component and electronic device | |
WO2021013158A1 (en) | Display method and related apparatus | |
WO2021063074A1 (en) | Method for split-screen display and electronic apparatus | |
WO2021121052A1 (en) | Multi-screen cooperation method and system, and electronic device | |
WO2022068483A9 (en) | Application startup method and apparatus, and electronic device | |
CN114647350B (en) | Application sharing method, electronic device and storage medium | |
WO2024016559A1 (en) | Multi-device cooperation method, electronic device and related product | |
WO2022078295A1 (en) | Device recommendation method and electronic device | |
US20230244507A1 (en) | Method and Apparatus for Processing Interaction Event | |
WO2021057699A1 (en) | Method for controlling electronic device with flexible screen, and electronic device | |
WO2020228735A1 (en) | Method for displaying application, and electronic device | |
CN116431044A (en) | Method and device for starting application program and terminal equipment | |
CN116048326B (en) | Message display method and electronic equipment | |
CN116700477B (en) | Display method and electronic equipment | |
WO2022206848A1 (en) | Method and device for displaying application widget | |
CN117785340A (en) | Card sharing method and device | |
CN117784991A (en) | Display method of latest task list and electronic equipment | |
CN114489535A (en) | External screen display method and electronic equipment | |
CN116069226A (en) | Window content dragging method and electronic equipment | |
CN117707662B (en) | Interface display method and electronic device | |
US11637800B2 (en) | Method and device for information processing of cross-devices, and storage medium | |
US20240176480A1 (en) | Screenshot method, electronic device, and storage medium | |
EP4468814A1 (en) | Multi-device cooperation method, electronic device and related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |