[go: up one dir, main page]

CN114036954B - Method and device for synchronizing notification messages - Google Patents

Method and device for synchronizing notification messages Download PDF

Info

Publication number
CN114036954B
CN114036954B CN202111166963.5A CN202111166963A CN114036954B CN 114036954 B CN114036954 B CN 114036954B CN 202111166963 A CN202111166963 A CN 202111166963A CN 114036954 B CN114036954 B CN 114036954B
Authority
CN
China
Prior art keywords
notification
notification message
application
text
information
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
Application number
CN202111166963.5A
Other languages
Chinese (zh)
Other versions
CN114036954A (en
Inventor
李成广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111166963.5A priority Critical patent/CN114036954B/en
Publication of CN114036954A publication Critical patent/CN114036954A/en
Application granted granted Critical
Publication of CN114036954B publication Critical patent/CN114036954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/258Heading extraction; Automatic titling; Numbering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method and a device for synchronizing notification messages, wherein the method comprises the following steps: receiving a notification message from a first application; detecting a first operation; displaying the notification message in response to a first operation; detecting a second operation on the notification message; in response to the second operation, displaying a first interface, wherein the first interface comprises identifications of a plurality of application programs; detecting a third operation on the first interface, wherein the third operation is used for indicating a second application program in the plurality of application programs; and responding to the third operation, and displaying synchronous data on the second application program, wherein the synchronous data is obtained by processing the notification message according to a preset data structure, and the preset data structure is a data structure which can be identified by the second application program. Based on the technical scheme, the notification message can be quickly synchronized to other application programs, so that the user experience is improved.

Description

同步通知消息的方法和装置Method and device for synchronizing notification messages

技术领域technical field

本申请涉及终端领域,具体涉及一种通知消息的处理方法和装置。The present application relates to the field of terminals, and in particular to a method and device for processing notification messages.

背景技术Background technique

在终端设备的使用过程中,会遇到应用程序发送的具有预约性、时效性的通知消息;基于终端设备当前的系统架构,在终端设备收到通知消息后若用户需要保存通知消息,则需要用户新建闹钟,根据通知消息的信息内容设定闹钟的提醒时间与提醒主题;或者,用户需要将通知消息中的内容信息拷贝至备忘录中;但是,通过上述方式进行标记通知消息的标记操作较为复杂,导致用户的体验感较差。During the use of the terminal device, you will encounter notification messages with reservation and timeliness sent by the application program; based on the current system architecture of the terminal device, if the user needs to save the notification message after the terminal device receives the notification message, you need to The user creates a new alarm clock, and sets the reminder time and reminder theme of the alarm clock according to the information content of the notification message; or, the user needs to copy the content information in the notification message to the memo; however, the marking operation of marking the notification message through the above method is relatively complicated , leading to poor user experience.

因此,如何快速地将通知消息同步至其他应用程序成为一个亟需解决的问题。Therefore, how to quickly synchronize notification messages to other applications has become an urgent problem to be solved.

发明内容Contents of the invention

本申请提供了一种同步通知消息的方法和装置,能够快速地将通知消息同步至其他应用程序。The present application provides a method and device for synchronizing notification messages, which can quickly synchronize notification messages to other application programs.

第一方面,提供一种同步通知消息的方法,包括:In the first aspect, a method for synchronizing notification messages is provided, including:

接收到来自第一应用程序的通知消息;receiving a notification message from the first application;

检测到第一操作;A first operation is detected;

响应于所述第一操作,显示所述通知消息;displaying the notification message in response to the first operation;

检测到对所述通知消息的第二操作;detecting a second operation on the notification message;

响应于所述第二操作,显示第一界面,所述第一界面包括多个应用程序的标识;In response to the second operation, display a first interface, where the first interface includes identifications of multiple application programs;

检测到对所述第一界面的第三操作,所述第三操作用于选择所述多个应用程序中的第二应用程序;detecting a third operation on the first interface, where the third operation is used to select a second application program among the plurality of application programs;

响应于所述第三操作,在所述第二应用程序中显示同步数据,所述同步数据是指根据预设数据结构对所述通知消息进行处理得到的,所述预设数据结构为所述第二应用程序可识别的数据结构。In response to the third operation, synchronous data is displayed in the second application program, the synchronous data is obtained by processing the notification message according to a preset data structure, and the preset data structure is the A data structure recognized by the second application.

在本申请的实施例,在终端设备获取第一应用程序的通知消息时,用户可以基于简单的操作将通知消息进行同步标记,将通知消息同步标记到第二应用程序从而在第二应用程序中显示通知消息对应的同步数据从而对用户进行提醒;通过本申请实施例的同步通知消息的方法可以快速简单地实现通知消息的同步标记,从而提高用户体验感。In the embodiment of this application, when the terminal device obtains the notification message of the first application program, the user can mark the notification message synchronously based on simple operations, and mark the notification message synchronously to the second application program so that the notification message in the second application program The synchronization data corresponding to the notification message is displayed to remind the user; the synchronization mark of the notification message can be realized quickly and simply through the method for synchronizing the notification message in the embodiment of the present application, thereby improving the user experience.

可选地,第一操作可以包括从上向下的滑动操作;通过从上向下的滑动操作可以显示来自第一应用程序的通知消息。具体地,可以是在收到第一应用程序的通知消息后,通过下拉操作,显示出下拉通知栏,在下拉通知栏中显示有该通知消息,可以参见图3中的(a)所示。Optionally, the first operation may include a sliding operation from top to bottom; a notification message from the first application may be displayed through the sliding operation from top to bottom. Specifically, after receiving the notification message of the first application program, a drop-down notification bar may be displayed through a pull-down operation, and the notification message is displayed in the drop-down notification bar, as shown in (a) in FIG. 3 .

可选地,第二操作可以是指预先配置的用于同步标记通知消息的操作;比如,第二操作可以是指对通知消息进行的滑动操作(比如左滑或右滑),响应于滑动操作可以显示第一界面,第一界面中可以包括菜单栏,菜单栏中包括多个可以用于消息同步的应用程序的标识。Optionally, the second operation may refer to a preconfigured operation for synchronously marking the notification message; for example, the second operation may refer to a sliding operation (such as sliding left or right) on the notification message, and in response to the sliding operation A first interface may be displayed, and the first interface may include a menu bar, and the menu bar includes identifiers of multiple application programs that can be used for message synchronization.

可选地,第三操作可以是指选择同步通知消息的第二应用程序的操作;比如,第三操作可以是指点击操作,或者语音选择操作等。Optionally, the third operation may refer to an operation of selecting the second application for synchronizing the notification message; for example, the third operation may refer to a click operation, or a voice selection operation, and the like.

可选地,通知消息可以是指状态栏通知消息。Optionally, the notification message may refer to a status bar notification message.

在一种实现方式中,所述第一操作为下拉操作;所述响应于所述第一操作,显示通知消息,包括:In an implementation manner, the first operation is a pull-down operation; the displaying a notification message in response to the first operation includes:

响应于所述下拉操作显示出下拉通知栏,在所述下拉通知栏中显示所述通知消息;displaying a pull-down notification bar in response to the pull-down operation, and displaying the notification message in the pull-down notification bar;

在一种实现方式中,所述通知消息为在第一时刻所述第一应用程序接收的通知消息;在第二时刻在所述第二应用程序显示所述同步数据,所述第二时刻晚于所述第一时刻。In an implementation manner, the notification message is a notification message received by the first application program at the first moment; the synchronization data is displayed on the second application program at the second moment, and the second moment is later at said first moment.

在本申请的实施例,用户可以基于简单的操作将通知消息进行同步标记,将通知消息同步标记到第二应用程序从而在后续某时刻对用户进行提醒;通过本申请实施例的同步通知消息的方法可以快速简单地实现通知消息的同步标记,从而提高用户体验感。In the embodiment of this application, the user can mark the notification message for synchronization based on simple operations, and then mark the notification message to the second application program to remind the user at a later time; through the synchronization of the notification message in the embodiment of the application The method can quickly and simply realize the synchronous marking of notification messages, thereby improving user experience.

在一种实现方式中,所述同步数据是指根据所述预设数据结构对全局信息进行语义分割得到的,所述全局信息是指所述通知消息中包括的所有字符串信息。In an implementation manner, the synchronization data is obtained by semantically segmenting global information according to the preset data structure, and the global information refers to all character string information included in the notification message.

在一种实现方式中,所述同步数据中包括时间文本,所述时间文本是根据时间词库对所述全局信息进行所述语义分割得到的。In an implementation manner, the synchronization data includes time text, and the time text is obtained by performing the semantic segmentation on the global information according to a time lexicon.

在本申请的实施例中,考虑到终端设备的存储性能与运算能力的限制提出了一种基于时效场景粒度的自然语言处理的语义分割算法;时效类场景分词算法可将自然语言处理限制在针对“时间”这类场景的语言处理上,不需要对所有场景进行语义识别;从而能够节约终端设备的运算能力,降低终端设备的功耗。In the embodiment of this application, a semantic segmentation algorithm for natural language processing based on time-sensitive scene granularity is proposed considering the limitations of the storage performance and computing power of the terminal device; the time-sensitive scene word segmentation algorithm can limit natural language processing to In the language processing of scenes such as "time", it is not necessary to perform semantic recognition for all scenes; thus, the computing power of the terminal device can be saved, and the power consumption of the terminal device can be reduced.

在一种实现方式中,所述第二时刻是根据所述时间文本确定的。In an implementation manner, the second moment is determined according to the time text.

在一种实现方式中,所述同步数据包括地点文本,所述地点文本是根据地点词库对所述全局信息进行所述语义分割得到的。In an implementation manner, the synchronization data includes a location text, and the location text is obtained by performing the semantic segmentation on the global information according to a location thesaurus.

在本申请的实施例中,考虑到用户体验还可以对全局信息进行针对“地点”这类场景的语义识别;从而能够识别出全局信息中的地点信息,在对通知消息进行同步时在第二应用程序显示的同步数据中显示地点信息。In the embodiment of the present application, considering the user experience, the global information can also be semantically identified for scenes such as "location"; thus, the location information in the global information can be identified, and when the notification message is synchronized, the second Location information is displayed in the synced data displayed by the app.

在一种实现方式中,所述地点词库为分级地点词库,所述地点文本是根据所述分级地点词库的优先级对所述全局信息进行所述语义分割得到的,所述分级地点词库中包括省级地点词库、市级地点词库、区级地点词库,所述省级地点词库的优先级高于所述市级地点词库,所述述市级地点词库的优先级高于所述区级地点词库。In an implementation manner, the location thesaurus is a hierarchical location thesaurus, the location text is obtained by performing the semantic segmentation on the global information according to the priority of the hierarchical location thesaurus, and the hierarchical location Comprise provincial-level location thesaurus, city-level location thesaurus, district-level location thesaurus in the thesaurus, the priority of described provincial-level location thesaurus is higher than described city-level location thesaurus, described city-level location thesaurus has a higher priority than the district-level location thesaurus.

可选地,与时间词库相比,地点词库的数据量较为庞大,无法实现一一对照;因此,在本申请实施例中将地点信息按照省、市、区(县)、其他四级建立分级地点词库,通过从上一级到下一级进行分别匹配;其中,“其他”这一层级作为4级匹配,4级匹配的数据库可以包括模糊地点信息;比如,常见的模糊地点信息包括以下地点关键字:家、公园、楼下、卧室、餐厅等。Optionally, compared with the time thesaurus, the data volume of the location thesaurus is relatively huge, and it is impossible to realize one-to-one comparison; Establish a hierarchical location thesaurus and perform matching from the upper level to the lower level; among them, the "other" level is used as a 4-level matching, and the database of the 4-level matching can include fuzzy location information; for example, common fuzzy location information Include the following location keywords: home, park, downstairs, bedroom, restaurant, etc.

在一种实现方式中,所述同步数据中还包括所述地点文本对应的地图信息。In an implementation manner, the synchronization data further includes map information corresponding to the location text.

在一种实现方式中,所述同步数据还包括主题文本,所述主题文本是根据所述通知消息的通知标题与剩余文本得到的,所述剩余文本是指所述全局信息中除所述时间文本、所述地点文本与介词文本之外的文本。In an implementation manner, the synchronization data further includes subject text, and the subject text is obtained according to the notification title and the remaining text of the notification message, and the remaining text refers to the global information except the time Text other than the text of the place, the text of the place, and the text of the preposition.

可选地,全局信息可以是指“今晚十点在公司开会”,根据时间词库进行语义分割与地点词库进行语义分割可以得到分词后结果今晚\\十点\\在\\公司\\开会;其中,今晚、十点为时间文本;在\\为介词文本;公司为地点文本;开会为剩余文本,剩余文本可以是指全局信息中的非时间文本,非地点文本以及非介词文本的文本信息。Optionally, the global information can refer to "meeting at the company at ten o'clock tonight", and the semantic segmentation based on the time lexicon and the location thesaurus can obtain the word segmentation result \\ten o'clock\\in \\company tonight \\meeting; among them, tonight and ten o'clock are the time text; in \\ is the preposition text; the company is the location text; the meeting is the remaining text, and the remaining text can refer to the non-time text, non-location text and non-location text in the global information Text information of the prepositional text.

在一种实现方式中,在所述通知消息中包括通知标题与通知内容的情况下,所述全局信息是通过在所述通知消息对应的函数信息中增加第一函数与第二函数得到的,所述第一函数用于获取所述通知标题的信息,所述第二函数用于获取所述通知内容的信息。In an implementation manner, when the notification message includes a notification title and a notification content, the global information is obtained by adding a first function and a second function to the function information corresponding to the notification message, The first function is used to obtain the information of the notification title, and the second function is used to obtain the information of the notification content.

在一种实现方式中,在所述通知消息中包括通知标题、通知内容与通知子内容的情况下,所述全局信息是通过在所述通知消息对应的函数信息中增加第一函数、第二函数与第三函数得到的,所述第一函数用于获取所述通知标题的信息,所述第二函数用于获取所述通知内容的信息,所述第三函数用于获取所述通知子内容的信息。In an implementation manner, when the notification message includes the notification title, notification content and notification sub-content, the global information is obtained by adding the first function, the second function information to the function information corresponding to the notification message function and the third function, the first function is used to obtain the information of the notification title, the second function is used to obtain the information of the notification content, and the third function is used to obtain the notification subtitle content information.

在一种实现方式中,所述多个应用程序中包括日程应用程序,或者,备忘录应用程序。In an implementation manner, the multiple application programs include a schedule application program or a memo application program.

第二方面,提供了一种同步通知消息的装置,包括用于执行第一方面中任一种方法的单元。该装置可以是终端设备,也可以是终端设备内的芯片。该装置可以包括输入单元和处理单元。In a second aspect, an apparatus for synchronizing notification messages is provided, including a unit for performing any one of the methods in the first aspect. The device may be a terminal device, or a chip in the terminal device. The device may comprise an input unit and a processing unit.

当该装置是终端设备时,该处理单元可以是处理器,该输入单元可以是通信接口;该终端设备还可以包括存储器,该存储器用于存储计算机程序代码,当该处理器执行该存储器所存储的计算机程序代码时,使得该终端设备执行第一方面中的任一种方法。When the device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory, which is used to store computer program codes, and when the processor executes the When the computer program code is used, the terminal device is made to execute any one of the methods in the first aspect.

当该装置是终端设备内的芯片时,该处理单元可以是芯片内部的处理单元,该输入单元可以是输出接口、管脚或电路等;该芯片还可以包括存储器,该存储器可以是该芯片内的存储器(例如,寄存器、缓存等),也可以是位于该芯片外部的存储器(例如,只读存储器、随机存取存储器等);该存储器用于存储计算机程序代码,当该处理器执行该存储器所存储的计算机程序代码时,使得该芯片执行第一方面的任一种方法。When the device is a chip in the terminal device, the processing unit may be a processing unit inside the chip, and the input unit may be an output interface, a pin or a circuit, etc.; the chip may also include a memory, and the memory may be a memory (for example, registers, cache, etc.), can also be located outside the chip memory (for example, read-only memory, random access memory, etc.); the memory is used to store computer program code, when the processor executes the memory The stored computer program code causes the chip to execute any method of the first aspect.

第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序代码,当所述计算机程序代码被显示光标的装置运行时,使得该装置执行第一方面中的任一种方法。In a third aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores computer program codes, and when the computer program codes are executed by a device displaying a cursor, the device executes the method described in the first aspect. either way.

第四方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被同步通知消息的装置运行时,使得该装置执行第一方面中的任一种方法。In a fourth aspect, a computer program product is provided, the computer program product comprising: computer program code, when the computer program code is run by a device for synchronizing notification messages, the device is made to execute any one of the first aspect method.

附图说明Description of drawings

图1是一种适用于本申请的装置的硬件系统的示意图;Fig. 1 is a schematic diagram of a hardware system applicable to the device of the present application;

图2是一种适用于本申请的装置的软件系统的示意图;Fig. 2 is a schematic diagram of a software system applicable to the device of the present application;

图3是一种适用于本申请的同步通知消息的界面示意图;FIG. 3 is a schematic diagram of an interface of a synchronous notification message applicable to this application;

图4是一种适用于本申请的同步通知消息的界面示意图;FIG. 4 is a schematic diagram of an interface of a synchronous notification message applicable to this application;

图5是一种适用于本申请的基于状态栏通知的通知消息的示意图;FIG. 5 is a schematic diagram of a notification message based on a status bar notification applicable to this application;

图6是一种适用于本申请的基于状态栏通知的通知消息的示意图;FIG. 6 is a schematic diagram of a notification message based on a status bar notification applicable to this application;

图7是一种适用于本申请的同步通知消息的方法的示意图;FIG. 7 is a schematic diagram of a method for synchronizing notification messages applicable to the present application;

图8是一种适用于本申请的获取全局内容信息的示意图;Fig. 8 is a schematic diagram of obtaining global content information applicable to this application;

图9是一种适用于本申请的对全局内容信息进行语义分割处理的示意图;FIG. 9 is a schematic diagram of semantic segmentation processing for global content information applicable to this application;

图10是一种适用于本申请的同步通知消息的装置的示意图。Fig. 10 is a schematic diagram of a device suitable for synchronizing notification messages of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

图1示出了一种适用于本申请的装置的硬件结构。Fig. 1 shows a hardware structure of a device suitable for this application.

装置100可以是手机、智慧屏、平板电脑、可穿戴电子设备、车载电子设备、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、投影仪等等,本申请实施例对装置100的具体类型不作任何限制。The device 100 may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, a vehicle electronic device, an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, a notebook computer, an ultra mobile personal computer (ultra -mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), projector, etc. The embodiment of the present application does not impose any limitation on the specific type of the device 100 .

装置100可以包括处理器110,内部存储器121,传感器模块180,显示屏194等。其中传感器模块180可以包括触摸传感器180K等。The device 100 may include a processor 110, an internal memory 121, a sensor module 180, a display screen 194, and the like. The sensor module 180 may include a touch sensor 180K and the like.

需要说明的是,图1所示的结构并不构成对装置100的具体限定。在本申请另一些实施例中,装置100可以包括比图1所示的部件更多或更少的部件,或者,装置100可以包括图1所示的部件中某些部件的组合,或者,装置100可以包括图1所示的部件中某些部件的子部件。图1示的部件可以以硬件、软件、或软件和硬件的组合实现。It should be noted that the structure shown in FIG. 1 does not constitute a specific limitation on the device 100 . In other embodiments of the present application, the device 100 may include more or fewer components than those shown in FIG. 1 , or the device 100 may include a combination of some of the components shown in FIG. 100 may include subcomponents of some of the components shown in FIG. 1 . The components shown in FIG. 1 can be realized in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元。例如,处理器110可以包括以下处理单元中的至少一个:应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、神经网络处理器(neural-network processing unit,NPU)。其中,不同的处理单元可以是独立的器件,也可以是集成的器件。Processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor) , ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, neural network processor (neural-network processing unit, NPU). Wherein, different processing units may be independent devices or integrated devices.

示例性地,在本申请的实施例中,处理器110用于检测到第一操作;响应于第一操作,显示通知消息,通知消息是指第一应用程序接收的通知消息;检测到对通知消息的第二操作;响应于第二操作,显示第一界面,第一界面包括多个应用程序的标识;检测到对第一界面的第三操作,第三操作用于指示多个应用程序中的第二应用程序;响应于第三操作,在第二应用程序显示同步数据,同步数据是指根据预设数据结构对通知消息进行处理得到的,预设数据结构为所述第二应用程序可识别的数据结构。Exemplarily, in the embodiment of the present application, the processor 110 is configured to detect the first operation; in response to the first operation, display a notification message, the notification message refers to the notification message received by the first application program; The second operation of the message; in response to the second operation, displaying the first interface, where the first interface includes identifications of multiple application programs; detecting a third operation on the first interface, where the third operation is used to indicate that among the multiple application programs the second application program; in response to the third operation, the synchronization data is displayed on the second application program, and the synchronization data refers to processing the notification message according to a preset data structure, and the preset data structure is that the second application program can Recognized data structures.

图1所示的各模块间的连接关系只是示意性说明,并不构成对装置100的各模块间的连接关系的限定。可选地,装置100的各模块也可以采用上述实施例中多种连接方式的组合。The connection relationship between the modules shown in FIG. 1 is only a schematic illustration, and does not constitute a limitation on the connection relationship between the modules of the device 100 . Optionally, each module of the device 100 may also adopt a combination of various connection modes in the foregoing embodiments.

装置100可以通过GPU、显示屏194以及应用处理器实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The device 100 can realize the display function through the GPU, the display screen 194 and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194可以用于显示图像或视频。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体(active-matrix organic light-emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、迷你发光二极管(mini light-emitting diode,Mini LED)、微型发光二极管(micro light-emitting diode,Micro LED)、微型OLED(Micro OLED)或量子点发光二极管(quantum dotlight emitting diodes,QLED)。在一些实施例中,装置100可以包括1个或N个显示屏194,N为大于1的正整数。Display 194 may be used to display images or video. The display screen 194 includes a display panel. The display panel may adopt liquid crystal display (liquid crystal display, LCD), organic light-emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), flexible Light-emitting diode (flex light-emitting diode, FLED), mini light-emitting diode (mini light-emitting diode, Mini LED), micro light-emitting diode (micro light-emitting diode, Micro LED), micro OLED (Micro OLED) or quantum dot light emission Diodes (quantum dotlight emitting diodes, QLEDs). In some embodiments, the device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

示例性地,在本申请的实施例中,处理器110可以接收通知消息与同步指令,通知消息是指在第一时刻接收的第一应用程序的状态栏通知消息,同步指令用于指示将通知消息同步至第二应用程序;获取通知消息的全局信息,全局信息是指通知消息中包括的所有字符串信息;对全局信息进行语义分割,得到语义分割结果;根据语义分割结果与预设数据结构,得到同步数据;在第二时刻通过第二应用程序在显示屏194显示同步数据,其中,第二时刻晚于第一时刻,第二应用程序是指用于向用户进行事件提醒的应用程序。Exemplarily, in the embodiment of the present application, the processor 110 may receive a notification message and a synchronization instruction, the notification message refers to the status bar notification message of the first application program received at the first moment, and the synchronization instruction is used to indicate that the notification message will be notified The message is synchronized to the second application program; the global information of the notification message is obtained, and the global information refers to all the string information included in the notification message; the semantic segmentation is performed on the global information to obtain the semantic segmentation result; according to the semantic segmentation result and the preset data structure , to obtain the synchronization data; at the second moment, the synchronization data is displayed on the display screen 194 through the second application program, wherein the second moment is later than the first moment, and the second application program refers to an application program for reminding the user of an event.

触摸传感器180K,也称为触控器件。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,触摸屏也称为触控屏。触摸传感器180K用于检测作用于其上或其附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于装置100的表面,并且与显示屏194设置于不同的位置。The touch sensor 180K is also referred to as a touch device. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch screen. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor 180K may transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194 . In some other embodiments, the touch sensor 180K may also be disposed on the surface of the device 100 and disposed at a different position from the display screen 194 .

上文详细描述了装置100的硬件系统,下面介绍装置100的软件系统。软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构或云架构,本申请实施例以分层架构为例,示例性地描述装置100的软件系统。The hardware system of the device 100 is described in detail above, and the software system of the device 100 is introduced below. The software system may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application uses a layered architecture as an example to describe the software system of the device 100 as an example.

如图2所示,采用分层架构的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,软件系统可以分为四层,从上至下分别为应用程序层、应用程序框架层、安卓运行时(Android Runtime)和系统库、以及内核层。As shown in Figure 2, a software system adopting a layered architecture is divided into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the software system can be divided into four layers, which are application program layer, application program framework layer, Android Runtime (Android Runtime) and system library, and kernel layer from top to bottom.

应用程序层可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。The application layer can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

应用程序框架层为应用程序层的应用程序提供应用程序编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层可以包括一些预定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer can include some predefined functions.

例如,应用程序框架层包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器和通知管理器。For example, the application framework layer includes window managers, content providers, view systems, telephony managers, resource managers, and notification managers.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏、锁定屏幕和截取屏幕。A window manager is used to manage window programs. The window manager can get the size of the display, determine whether there is a status bar, lock the screen, and capture the screen.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、以及电话簿。Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, and phonebook.

视图系统包括可视控件,例如显示文字的控件和显示图片的控件。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成,例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as those that display text and those that display pictures. The view system can be used to build applications. The display interface may be composed of one or more views, for example, a display interface including an SMS notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供装置100的通信功能,例如通话状态(接通或挂断)的管理。The phone manager is used to provide communication functions of the device 100, such as management of call status (connected or hung up).

资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图片、布局文件和视频文件。The resource manager provides various resources to the application, such as localized strings, icons, pictures, layout files, and video files.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于下载完成告知和消息提醒。通知管理器还可以管理以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知。通知管理器还可以管理以对话窗口形式出现在屏幕上的通知,例如在状态栏提示文本信息、发出提示音、电子设备振动以及指示灯闪烁。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used for download completion notifications and message reminders. The notification manager can also manage notifications that appear in the status bar at the top of the system in the form of charts or scrolling text, such as notifications from applications running in the background. The notification manager can also manage notifications that appear on the screen in the form of dialog windows, such as prompting text messages in the status bar, making alert sounds, vibrating electronic devices, and blinking lights.

应用程序框架层中还可以包括base,base是指Android的基础仓,base中可以包括Android基础组件;比如活动管理器服务(activity manager service,AMS),包管理器服务(package manager service,PMS)等;本申请实施例的同步通知消息的方法可以通过在base中的NotificationManager.java中新增加函数实现。The application framework layer can also include base, which refers to the base warehouse of Android, and the base can include Android basic components; such as activity manager service (activity manager service, AMS), package manager service (package manager service, PMS) etc.; the method for synchronizing notification messages in the embodiment of the present application can be realized by adding a new function in NotificationManager.java in the base.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理、堆栈管理、线程管理、安全和异常的管理、以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

系统库可以包括多个功能模块,例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:针对嵌入式系统的开放图形库(opengraphics library for embedded systems,OpenGL ES)和2D图形引擎(例如:skia图形库(skia graphics library,SGL))。The system library can include multiple functional modules, such as: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: open graphics library for embedded systems (opengraphics library for embedded systems, OpenGL ES) ) and 2D graphics engine (for example: skia graphics library (skia graphics library, SGL)).

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D图层和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D layers and 3D layers for multiple applications.

媒体库支持多种音频格式的回放和录制、多种视频格式回放和录制以及静态图像文件。媒体库可以支持多种音视频编码格式,例如:MPEG4、H.264、动态图像专家组音频层面3(moving picture experts group audio layer III,MP3)、高级音频编码(advancedaudio coding,AAC)、自适应多码率(adaptive multi-rate,AMR)、联合图像专家组(jointphotographic experts group,JPG)和便携式网络图形(portable network graphics,PNG)。The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive Multi-bit rate (adaptive multi-rate, AMR), joint photographic experts group (jointphotographic experts group, JPG) and portable network graphics (portable network graphics, PNG).

三维图形处理库可以用于实现三维图形绘图、图像渲染、合成和图层处理。The 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, compositing and layer processing.

二维图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层可以包括显示驱动、摄像头驱动、音频驱动和传感器驱动等驱动模块。The kernel layer is the layer between hardware and software. The kernel layer may include driver modules such as display driver, camera driver, audio driver and sensor driver.

下面结合显示界面场景,示例性说明装置100的软件系统和硬件系统的工作流程。The workflow of the software system and the hardware system of the device 100 will be illustrated below in combination with the display interface scene.

当用户在触摸传感器180K上进行触摸操作时,相应的硬件中断被发送至内核层,内核层将触摸操作加工成原始输入事件,原始输入事件例如包括触摸坐标和触摸操作的时间戳等信息。原始输入事件被存储在内核层,应用程序框架层从内核层获取原始输入事件,识别出原始输入事件对应的控件,并通知该控件对应的应用程序(application,APP)。例如,上述触摸操作为单击操作,上述控件对应的应用程序为日程应用程序,日程应用程序被单击操作唤醒后,可以通过API调用内核层的显示驱动,通过显示驱动控制显示屏194显示日程应用程序的界面。When the user performs a touch operation on the touch sensor 180K, a corresponding hardware interrupt is sent to the kernel layer, and the kernel layer processes the touch operation into an original input event. The original input event includes information such as touch coordinates and a time stamp of the touch operation. The original input event is stored in the kernel layer, and the application framework layer obtains the original input event from the kernel layer, identifies the control corresponding to the original input event, and notifies the corresponding application (application, APP) of the control. For example, the above-mentioned touch operation is a click operation, and the application program corresponding to the above-mentioned control is a schedule application program. After the schedule application program is awakened by the click operation, it can call the display driver of the kernel layer through the API, and control the display screen 194 to display the schedule through the display driver. The application's interface.

图3是一种本申请实施例提供的同步通知消息的界面示意图。FIG. 3 is a schematic diagram of an interface of a synchronization notification message provided by an embodiment of the present application.

应理解,同步通知消息可以是指终端设备获取第一应用程序的通知消息,将第一应用程序的通知消息同步标记至第二应用程序中;其中,第二应用程序能够根据通知消息中的信息向用户进行消息提醒。It should be understood that the synchronous notification message may mean that the terminal device obtains the notification message of the first application program, and marks the notification message of the first application program into the second application program synchronously; wherein, the second application program can Alert the user with a message.

如图3中的(a)所示,以装置是终端设备为例,终端设备中的微信应用程序接收到通知消息,该通知消息可以是指基于状态栏通知(Notification)的消息;该通知消息是用户A向终端设备发送的微信消息“晚上十点在公司开会”;用户接收到该通知消息后,为了便于在后续某时刻提醒自己通知消息中的信息,可以对该通知消息进行同步标记处理,如图3中的(b)所示;例如,用户在接收到通知消息后,可以向左滑动该通知消息;响应于用户的向左滑动操作,终端设备的显示如图3中的(b)所示的显示界面,在该显示界面中用户可以选择该通知消息的同步应用程序;例如,用户选择将该通知消息“同步至日程”;在终端设备检测到用户点击“同步到日程”的选项后,显示界面跳转至编辑日程的显示界面,如图3中的(c)所示。As shown in (a) in Figure 3, taking the device as a terminal device as an example, the WeChat application program in the terminal device receives a notification message, which can refer to a message based on a status bar notification (Notification); the notification message It is the WeChat message "meeting at the company at ten o'clock in the evening" sent by user A to the terminal device; after the user receives the notification message, in order to remind himself of the information in the notification message at a later time, the notification message can be synchronously marked , as shown in (b) in Figure 3; for example, after receiving the notification message, the user can slide the notification message to the left; in response to the user's slide operation to the left, the display of the terminal device is as shown in (b) in Figure 3 ) shown in the display interface, in which the user can select the synchronization application of the notification message; for example, the user chooses to "synchronize the notification message to the schedule"; After the option is selected, the display interface jumps to the display interface for editing the schedule, as shown in (c) in FIG. 3 .

在本申请的实施例中,在用户点击“同步到日程”的选项后,终端设备可以自动解析通知消息,并根据该通知消息中的信息同步生成对应的日程提醒;该日程提醒中可以包括提醒主题“来自微信A十点开会”;地点信息“公司”;以及生成对应的闹钟提示。In the embodiment of the present application, after the user clicks the option of "synchronize to the schedule", the terminal device can automatically parse the notification message, and synchronously generate a corresponding schedule reminder according to the information in the notification message; the schedule reminder can include a reminder The subject is "meeting at ten o'clock from WeChat A"; the location information is "company"; and a corresponding alarm clock prompt is generated.

可选地,用户对通知消息进行同步的操作可以是向左滑动通知消息;或者,向右滑动该通知消息;或者,还可以是其他预先配置的终端设备可以识别的操作;本申请对此不作任何限定。Optionally, the operation for the user to synchronize the notification message may be to slide the notification message to the left; or, to slide the notification message to the right; or, it may also be an operation that can be recognized by other pre-configured terminal devices; this application does not make any Any restrictions.

可选地,图3中的(b)与图3中的(c)是以将微信通知消息同步至日程中为例进行说明;也可以将通知消息同步至备忘录,或者将通知消息同步至其他用于提醒用户的应用程序中;本申请对此不作任何限定。Optionally, (b) in Figure 3 and (c) in Figure 3 are illustrated by synchronizing WeChat notification messages to the schedule as an example; it is also possible to synchronize notification messages to memos, or to synchronize notification messages to other In the application program used to remind the user; this application does not make any limitation on this.

可选地,图3中的(c)所示的显示界面中还可以包括地址信息对应的地图信息。Optionally, the display interface shown in (c) in FIG. 3 may also include map information corresponding to the address information.

在一个示例中,通知消息的内容为“晚上十点在陕西省西安市雁塔区科技五路20号靠近丈八开会”;对通知消息进行语义分割处理后可以得到分词结果:晚上十点\\在\\陕西省\\西安市\\雁塔区\\科技五路20号\\开会;用户通过如图3中的(b)所示选择“同步到日程”的选项后可以显示如图4所示的显示界面;通过地址信息与地图信息可以使得用户更加详细与清楚的获取该通知消息中的信息。In one example, the content of the notification message is "A meeting at No. 20, Keji 5th Road, Yanta District, Xi'an City, Shaanxi Province, near Zhangba at ten o'clock in the evening"; after performing semantic segmentation on the notification message, the word segmentation result can be obtained: at ten o'clock in the evening\ \\Have a meeting in \\Shaanxi Province\\Xi'an City\\Yanta District\\No. 20, Keji 5th Road\\; after the user selects the option of "synchronize to schedule" as shown in Figure 3 (b), the following can be displayed The display interface shown in FIG. 4 ; through address information and map information, the user can obtain the information in the notification message in more detail and clearly.

在本申请的实施例,终端设备获取第一应用程序的通知消息时,用户可以基于一键式操作将通知消息进行同步标记,将通知消息同步标记到第二应用程序从而在后续某时刻对用户进行提醒;通过本申请实施例的同步通知消息的方法,可以快速简单地实现通知消息的同步标记,从而提高用户体验感。In the embodiment of this application, when the terminal device obtains the notification message of the first application program, the user can mark the notification message synchronously based on a one-click operation, and mark the notification message synchronously to the second application program, so that the user can be notified at a later time. Reminding; through the method for synchronizing notification messages in the embodiment of the present application, the synchronization mark of notification messages can be realized quickly and simply, thereby improving user experience.

下面结合图5至图9对本申请实施例提供的同步通知消息的方法进行详细描述。The method for synchronizing notification messages provided by the embodiment of the present application will be described in detail below with reference to FIG. 5 to FIG. 9 .

图5是一种本申请实施例提供的基于状态栏通知(Notification)的通知消息的示意图。FIG. 5 is a schematic diagram of a notification message based on a status bar notification (Notification) provided by an embodiment of the present application.

在安卓架构中基于状态栏通知的通知消息是一个全局的系统通知,实现关键为状态栏通知的管理类(NotificationManager);Notification Manager负责发通知、清除通知等。The notification message based on the status bar notification in the Android architecture is a global system notification, and the key to realizing it is the management class (NotificationManager) of the status bar notification; the Notification Manager is responsible for sending notifications, clearing notifications, etc.

示例性地,一个通知消息的构造结构可以如下:Exemplarily, the construction structure of a notification message can be as follows:

Figure BDA0003291702740000071
Figure BDA0003291702740000071

示例性地,图5所示的210可以是指一个通知消息;该通知消息中的通知小图标可以是指如图5所示的240;该通知消息中的通知标题可以是指如图5所示的220;该通知消息中的通知内容可以是指如图5所示的230;通知消息中的目标Intent可以是指250。Exemplarily, 210 shown in FIG. 5 may refer to a notification message; the small notification icon in the notification message may refer to 240 as shown in FIG. 5 ; the notification title in the notification message may refer to The notification content in the notification message may refer to 230 shown in FIG. 5 ; the target Intent in the notification message may refer to 250.

可选地,在一个示例中通知消息中还可以包括子内容;即上述通知消息的还可以包括“.setSubText”。Optionally, in an example, the notification message may also include sub-content; that is, the above notification message may also include ".setSubText".

示例性地,一个包括子内容的通知消息可以包括以下内容:Exemplarily, a notification message including sub-content may include the following content:

Figure BDA0003291702740000072
Figure BDA0003291702740000072

例如,通知消息中的子内容可以是指如图6所示的260。For example, the sub-content in the notification message may refer to 260 as shown in FIG. 6 .

图7是本申请实施例提供的同步通知消息的方法的示意性流程图。图7所示的方法300包括步骤S310至步骤S350,下面分别对这些步骤进行详细的描述。Fig. 7 is a schematic flowchart of a method for synchronizing notification messages provided by an embodiment of the present application. The method 300 shown in FIG. 7 includes step S310 to step S350, and these steps will be described in detail below.

步骤S310、检测到同步标记操作。Step S310 , detecting a synchronization flag operation.

示例性地,同步标记操作可以是指用户选择将第一应用程序的通知消息同步至第二应用程序的操作。Exemplarily, the synchronization mark operation may refer to an operation in which the user chooses to synchronize the notification message of the first application program to the second application program.

在一个示例中,第一应用程序可以是指微信应用程序;第二应用程序可以是指日程应用程序或者备忘录应用程序;如图3中的(b)所示,同步标记操作可以是指检测到用户点击“同步到日程”的操作;或者,同步标记操作可以是指检测到用户点击“同步到备忘录”的操作。In one example, the first application program can refer to the WeChat application program; the second application program can refer to the calendar application program or the memo application program; as shown in (b) in Figure 3, the synchronization mark operation can refer to the detected An operation in which the user clicks "Synchronize to Agenda"; or, the operation of a synchronization flag may refer to an operation in which a user clicks "Synchronize to Notes".

步骤S320、获取通知消息的全局内容信息(全局信息的一个示例)。Step S320, acquiring global content information (an example of global information) of the notification message.

应理解,在本申请的实施例中获取全局内容信息是为了任意应用程序弹出状态栏通知时,均可以获取完整的通知字符串信息;获取通知消息的全局内容信息的具体流程参见后续图8所示。It should be understood that the purpose of obtaining the global content information in the embodiment of the present application is to obtain the complete notification string information when any application pops up a status bar notification; for the specific process of obtaining the global content information of the notification message, refer to the following figure 8 Show.

示例性地,全局内容信息可以包括以下内容:Exemplarily, the global content information may include the following content:

(1)通知标题(ContentTitle/NotificationTitle);(1) Notification Title (ContentTitle/NotificationTitle);

(2)通知内容(ContentText);(2) Notification content (ContentText);

(3)通知子内容(SubText);(3) Notify sub-content (SubText);

其中,获取通知标题是为了在对通知消息进行同步时,建立同步消息的主题(主题文本的一个示例);例如,日程主题、备忘录主题或者通知主题等;获取通知内容与通知子内容是为了将通知消息的内容信息同步至同步应用程序。Among them, the purpose of obtaining the notification title is to establish the topic of the synchronization message (an example of the topic text) when synchronizing the notification message; for example, the topic of the schedule, the topic of the memo, or the topic of the notification; The content information of the notification message is synchronized to the synchronization application.

需要说明的是,若通知消息中包括通知内容且不包括通知子内容时,可以获取通知消息中的通知内容;若通知消息中包括通知内容与通知子内容时,可以获取通知消息中的通知内容与通知子内容。It should be noted that if the notification message includes the notification content and does not include the notification sub-content, the notification content in the notification message can be obtained; if the notification message includes the notification content and the notification sub-content, the notification content in the notification message can be obtained with notification child content.

步骤S330、对全局内容信息进行语义分割处理得到分词信息。Step S330, performing semantic segmentation processing on the global content information to obtain word segmentation information.

在本申请的实施例中,考虑到终端设备的存储性能与运算能力的限制提出了一种基于时效场景粒度的自然语言处理的语义分割算法;时效类场景分词算法可将自然语言处理限制在针对“时间”这类场景的语言处理上,不需要对所有场景进行语义识别;从而能够节约终端设备的运算能力,降低终端设备的功耗;具体流程参见后续图9所示。In the embodiment of this application, a semantic segmentation algorithm for natural language processing based on time-sensitive scene granularity is proposed considering the limitations of the storage performance and computing power of the terminal device; the time-sensitive scene word segmentation algorithm can limit natural language processing to In the language processing of scenes such as "time", it is not necessary to perform semantic recognition for all scenes; thus, the computing power of the terminal device can be saved, and the power consumption of the terminal device can be reduced; the specific process is shown in Figure 9 below.

进一步地,考虑到用户体验还可以对全局内容信息进行针对“地点”这类场景的语义识别;从而能够识别出全局内容信息中的地点信息,在对通知消息进行同步时在同步应用程序中显示地点信息。Furthermore, taking into account the user experience, the global content information can also be semantically identified for scenes such as "location"; thus, the location information in the global content information can be identified and displayed in the synchronization application when synchronizing notification messages location information.

在一个示例中,可以对全局内容信息进行针对时间场景的语义识别,得到时间分词(时间文本的一个示例);在同步应用程序中根据时间分词设置闹钟提醒时间。In one example, the global content information can be semantically identified for the time scene to obtain the time participle (an example of time text); in the synchronization application program, the alarm clock reminder time can be set according to the time participle.

在一个示例中,可以对全局内容信息进行针对时间场景的语义识别与针对地点场景的语义识别,得到时间分词与地点分词(地点文本的一个示例);在同步应用程序中根据时间分词设置闹钟提醒时间,根据地点分词设置地点提醒信息。In one example, the semantic recognition for the time scene and the semantic recognition for the location scene can be carried out on the global content information, and the time participle and the place participle (an example of the place text) can be obtained; the alarm clock reminder can be set according to the time participle in the synchronization application Time, set the location reminder information according to the location participle.

可选地,根据地点分词还可以在同步应用程序中显示地点信息对应的地图信息,便于用户更加直观的获取地点信息。Optionally, the map information corresponding to the location information can also be displayed in the synchronization application program according to the word segmentation of the location, so that the user can obtain the location information more intuitively.

步骤S340、根据分词信息与预设数据结构得到同步数据。Step S340, obtaining synchronization data according to the word segmentation information and the preset data structure.

应理解,预设数据结构可以是指一个或者多个应用程序可以识别的数据结构;该一个或者多个应用程序可以用于进行用户提醒;例如,该一个或者多个应用程序可以是指日程应用程序、备忘录应用程序或者其他事件提醒应用程序。It should be understood that the preset data structure may refer to a data structure that can be identified by one or more applications; the one or more applications may be used for user reminders; for example, the one or more applications may refer to a schedule application program, memo application, or other event reminder application.

还应理解,同步数据是指将分词信息按照预设数据结构构造的数据;预设数据结构是指一个或者应用程序可以识别的数据结构;同步数据可以是将分词信息按照预设数据结构构造的完整的通知信息;换而言之,预设数据结构可以是指对应函数;同步数据可以包括函数以及每个函数对应的字符串信息。It should also be understood that the synchronous data refers to the data that the word segmentation information is constructed according to the preset data structure; the preset data structure refers to a data structure that can be recognized by the application program; the synchronization data can be constructed by the word segmentation information according to the preset data structure Complete notification information; in other words, the preset data structure may refer to the corresponding function; the synchronization data may include functions and string information corresponding to each function.

步骤S350、将同步数据发送至同步标记应用程序。Step S350, sending the synchronization data to the synchronization mark application program.

示例性地,同步标记应用程序可以是指同步标记操作对应的应用程序;即同步标记应用程序是指用户将通知消息跨应用程序同步的目标应用程序。Exemplarily, the synchronization mark application program may refer to the application program corresponding to the synchronization mark operation; that is, the synchronization mark application program refers to the target application program for the user to synchronize notification messages across applications.

例如,若用户选择“同步至日程”,则日程应用程序是指同步标记应用程序。For example, if the user selects "Sync to Agenda," the Agenda application is the SyncMark application.

例如,若用户选择“同步至备忘录”,则备忘录应用程序是指备忘录应用程序。For example, if the user selects "synchronize to memo", the memo application refers to the memo application.

在本申请的实施例,终端设备获取第一应用程序的通知消息时,用户可以基于一键式操作将通知消息进行同步标记,将通知消息同步标记到第二应用程序从而在后续某时刻对用户进行提醒;通过本申请实施例的同步通知消息的方法可以快速简单地实现通知消息的同步标记,从而提高用户体验感;此外,在对通知消息进行同步时,本申请实施例中采用针对“时间”这类场景的语义分割处理,不需要对所有场景进行语义识别;从而能够节约终端设备的运算能力,降低终端设备的功耗。In the embodiment of this application, when the terminal device obtains the notification message of the first application program, the user can mark the notification message synchronously based on a one-click operation, and mark the notification message synchronously to the second application program, so that the user can be notified at a later time. Reminder; through the method for synchronizing notification messages in the embodiment of the present application, the synchronization mark of the notification message can be realized quickly and easily, thereby improving the user experience; "Semantic segmentation processing of this type of scene does not require semantic recognition for all scenes; thus, it can save the computing power of the terminal device and reduce the power consumption of the terminal device.

图8是本申请实施例提供的获取通知消息中全局内容信息的方法的示意图。图8所示的方法400包括步骤S410至步骤S440,下面分别对这些步骤进行详细的描述。Fig. 8 is a schematic diagram of a method for obtaining global content information in a notification message provided by an embodiment of the present application. The method 400 shown in FIG. 8 includes step S410 to step S440, and these steps will be described in detail below.

步骤S410、获取通知消息。Step S410, acquiring a notification message.

步骤S420、获取通知消息对于的状态栏通知的管理类。Step S420, acquiring the management class of the status bar notification of the notification message.

应理解,一个基于状态栏通知(Notification)的通知消息是通过状态栏通知的管理类(NotificationManager)实现的;NotificationManager用于负责发通知、清除通知等;因此,通过NotificationManager中的字符串信息可以获取通信消息中的全局内容信息。It should be understood that a notification message based on the status bar notification (Notification) is implemented through the management class (NotificationManager) of the status bar notification; the NotificationManager is used to send notifications, clear notifications, etc.; therefore, the string information in the NotificationManager can be obtained Global content information in communication messages.

示例性地,通知消息中的内容传入是在:Exemplarily, the content in the notification message is passed in:

frameworks/base/core/java/android/app/NotificationManager.java中实现;因此,通知消息中的通知主题信息与内容信息均可以在通知消息对应的NotificationManager.java中获取。Implemented in frameworks/base/core/java/android/app/NotificationManager.java; therefore, the notification subject information and content information in the notification message can be obtained in the NotificationManager.java corresponding to the notification message.

步骤S430、对通知状态栏的管理类(NotificationManager)进行解析。Step S430, analyzing the management class (NotificationManager) of the notification status bar.

示例性地,ContentTitle、ContentText、SubText均为独立传入的字符串值,可以在NotificationManager.java的对应函数中打桩获取对应的传入值;即在NotificationManager.java中新增加函数,新增函数可以分别是:getContentTitle()、getContetText()、getSubText();getContentTitle()用于获取通知主题信息;getContetText()用于获取通知内容信息;getSubText()用于获取通知子内容信息。For example, ContentTitle, ContentText, and SubText are all independently passed in string values, and the corresponding passed values can be obtained by piling in the corresponding function of NotificationManager.java; that is, a new function can be added in NotificationManager.java They are: getContentTitle(), getContetText(), getSubText(); getContentTitle() is used to obtain notification subject information; getContetText() is used to obtain notification content information; getSubText() is used to obtain notification sub-content information.

应理解,打桩是指在框架代码中新增原始代码中不存在的功能,进而为上层应用提供服务;例如,可以在NotificationManager.java中增加函数getContentTitle()、getContetText()、getSubText();从而获取通知消息主题信息、通知内容信息与通知子内容信息。It should be understood that piling refers to adding functions that do not exist in the original code to the framework code, thereby providing services for upper-layer applications; for example, functions getContentTitle(), getContetText(), and getSubText() can be added to NotificationManager.java; thus Get notification message subject information, notification content information and notification sub-content information.

步骤S440、获取通知消息的全局内容信息。Step S440, acquiring the global content information of the notification message.

其中,全局内容信息包括通知主题信息、通知内容信息。Wherein, the global content information includes notification subject information and notification content information.

可选地,在通知消息中包括子内容时,全局内容信息还包括通知子内容信息。Optionally, when the notification message includes sub-content, the global content information also includes notification sub-content information.

需要说明的是,上述方法400可以是在终端设备的应用框架层执行的;在本申请的实施例中,可以直接获取Notification通知消息的各类字段信息,实现系统层级的适配;系统层级的适配是指本申请实施例中的同步通知消息的方法可以通过终端设备的系统来实现,不需要第三方应用程序做任何适配。It should be noted that the above-mentioned method 400 can be executed at the application framework layer of the terminal device; in the embodiment of the present application, various field information of the Notification notification message can be obtained directly to realize system-level adaptation; system-level Adaptation means that the method for synchronizing notification messages in the embodiment of the present application can be implemented by the system of the terminal device, without any adaptation by a third-party application program.

图9是本申请实施例提供的语义分割方法的示意图。图9所示的方法500包括步骤S510至步骤S580,下面分别对这些步骤进行详细的描述。FIG. 9 is a schematic diagram of a semantic segmentation method provided by an embodiment of the present application. The method 500 shown in FIG. 9 includes step S510 to step S580, and these steps will be described in detail below.

步骤S510、获取通知消息的全局内容信息。Step S510, acquiring the global content information of the notification message.

示例性地,通知消息的全局内容信息可以通过如图8所示的方法获取;此处不再赘述。Exemplarily, the global content information of the notification message may be acquired through the method shown in FIG. 8 ; details will not be repeated here.

步骤S520、获取通知消息的通知标题信息。Step S520, acquiring notification title information of the notification message.

示例性地,可以从通知消息的通知状态栏的管理类中直接获取通知标题(ContentTitle/NotificationTitle)对应的字符串信息即通知标题信息。Exemplarily, the string information corresponding to the notification title (ContentTitle/NotificationTitle), that is, the notification title information, can be directly acquired from the management class of the notification status bar of the notification message.

例如,可以通过新增函数getContentTitle()从NotificationManager.java中获取通知标题信息。For example, the notification title information can be obtained from NotificationManager.java through the new function getContentTitle().

步骤S530、将通知标题信息作为同步应用程序的标题,得到同步应用程序的标题。Step S530, using the notification title information as the title of the synchronization application to obtain the title of the synchronization application.

例如,在同步应用程序为日程应用程序时,获取的通知标题信息作为日程标题。For example, when the synchronization application is a schedule application, the acquired notification title information is used as the schedule title.

可选地,在一种实现方式中,可以将通知消息的通知标题与剩余分词(剩余文本的一个示例)作为日程标题;剩余分词是指全局内容信息中除通知标题、时间分词、地点分词与介词分词之外的字符串信息。Optionally, in an implementation manner, the notification title and remaining participle (an example of remaining text) of the notification message can be used as the schedule title; the remaining participle refers to the global content information except the notification title, time participle, location participle and String information other than prepositional participle.

例如,通知消息为“早上十点去公园跑步”进行语义分割后对应的结果为:早上十点\\去\\公园\\跑步;其中,早上十点为时间分词;去为介词分词;公园为地点分词;跑步则为剩余分词。For example, the semantic segmentation result of the notification message "go to the park for a run at ten o'clock in the morning" is: \\go to\\park\\run at ten o'clock in the morning; among them, ten o'clock in the morning is the time participle; go is the preposition participle; park is a participle for place; running is a participle for remainder.

例如,通知消息为“中午十二点去餐厅与客户吃饭”进行语义分割后对应的结果为:中午十二点\\去\\餐厅\\和\\客户吃饭;其中,中午十二点为时间分词;去为介词分词;餐厅为地点分词;和为介词分词;客户吃饭则为剩余分词。For example, the semantic segmentation result of the notification message "go to the restaurant to eat with customers at 12:00 noon" is: \\go to \\restaurant\\ and \\customers to eat at 12:00 noon; among them, 12:00 noon is Time participle; go is participle for preposition; restaurant is participle for location; and is participle for preposition; customer is participle for meal.

应理解,上述为举例说明,本申请对通知消息不做任何限定。It should be understood that the foregoing is an example, and the present application does not impose any limitation on the notification message.

步骤S540、根据时间词库对全局内容信息进行针对时间场景的语义识别得到时间分词。Step S540 , performing semantic recognition on the global content information for the time scene according to the time lexicon to obtain the time participle.

示例性地,时间词库是指建立时间的粗粒度词典库;时间词库中可以包括时间中文分词、时间英文分词以及其组合对应的映射表;通过时间词库可以建立初始化的事件特征关键字。Exemplarily, the time lexicon refers to a coarse-grained lexicon for establishing time; the time lexicon can include time Chinese word segmentation, time English word segmentation, and mapping tables corresponding to their combinations; the initial event feature keywords can be established through the time lexicon .

示例性地,时间词库可以包括以下映射关系:Exemplarily, the temporal thesaurus may include the following mapping relationships:

上午→am;am → am;

今晚→pm;Tonight → pm;

十点→10:00;Ten o'clock → 10:00;

今晚十点→22:00等。Ten o'clock → 22:00 tonight and so on.

示例性地,根据时间词库可以对全局内容信息进行时间分词匹配,得到全局内容信息中的时间分词。Exemplarily, time segment word matching can be performed on the global content information according to the time lexicon to obtain the time segment word in the global content information.

在本申请的实施例中,可以通过基于时效场景粒度的语义分割算法对全局内容信息进行处理,由于时效类场景分词算法可将自然语言处理限制在针对“时间”这类场景的语言处理上;因此,能够节约终端设备的运算能力,降低终端设备的功耗。In the embodiment of this application, the global content information can be processed through the semantic segmentation algorithm based on time-sensitive scene granularity, because the time-sensitive scene word segmentation algorithm can limit the natural language processing to the language processing of scenes such as "time"; Therefore, the computing capability of the terminal device can be saved, and the power consumption of the terminal device can be reduced.

步骤S550、将时间分词作为同步应用程序的提醒时间。Step S550, use the time participle as the reminder time of the synchronization application.

在一个示例中,同步应用程序为日程应用程序,则时间分词可以作为日程应用程序的闹钟提醒时间,如图3中的(c)所示。In one example, the synchronization application program is a calendar application program, and the time participle can be used as an alarm clock reminder time of the schedule application program, as shown in (c) in FIG. 3 .

步骤S560、根据地点词库对全局内容信息进行针对地点场景的语义识别得到地点分词。Step S560, perform semantic recognition for the location scene on the global content information according to the location thesaurus to obtain the location participle.

示例性地,通过地点词库可以建立初始化的地点特征关键字。与时间词库相比,地点词库的数据量较为庞大,无法实现一一对照;因此,在本申请实施例中将地点信息按照省、市、区(县)、其他四级建立分级地点词库,通过从上一级到下一级进行分别匹配;其中,“其他”这一层级作为4级匹配,4级匹配的数据库可以包括模糊地点信息;比如,常见的模糊地点信息包括以下地点关键字:家、公园、楼下、卧室、餐厅等。Exemplarily, an initialized location feature keyword can be established through the location thesaurus. Compared with the time lexicon, the data volume of the place lexicon is relatively huge, and it is impossible to realize one-to-one comparison; Database, through matching from the upper level to the next level; among them, the level of "other" is used as level 4 matching, and the database of level 4 matching can include fuzzy location information; for example, common fuzzy location information includes the following location key Words: home, park, downstairs, bedroom, restaurant, etc.

步骤S570、将地点分词作为同步应用程序的日程地点,得到同步应用程序的地点。Step S570, using the location participle as the schedule location of the synchronization application to obtain the location of the synchronization application.

在一个示例中,如图3中的(c)所示,地点分词可以是指“公司”。In one example, as shown in (c) in FIG. 3 , the location participle may refer to "company".

在一个示例中,如图4所示,地点分词可以是指“陕西省西安市雁塔区科技五路20号”其中,陕西省对应1级匹配;西安市对应2级匹配;雁塔区对应3级匹配;科技五路20号对应4级匹配。In one example, as shown in Figure 4, the location participle can refer to "No. 20, Keji 5th Road, Yanta District, Xi'an City, Shaanxi Province", where Shaanxi Province corresponds to Level 1 matching; Xi'an City corresponds to Level 2 matching; Yanta District corresponds to Level 3 matching; No. 20, Keji 5th Road corresponds to level 4 matching.

可选地,可以根据正则表达式匹配切割全局内容信息中的剩余分词;剩余分词可以在同步应用程序的标题中显示。Optionally, the remaining participle in the global content information can be cut according to regular expression matching; the remaining participle can be displayed in the title of the synchronization application.

示例性地,全局内容信息可以是指“今晚十点在公司开会”,根据时间词库进行语义分割与地点词库进行语义分割可以得到分词后结果今晚\\十点\\在\\公司\\开会;其中,今晚、十点为时间分词;在\\为介词分词;公司为地点分词;开会为剩余分词,其他分词可以是指全局内容信息中的非时间分词,非地点分词的其他信息。For example, the global content information can refer to "meeting at the company at ten o'clock tonight", and the semantic segmentation can be performed according to the time thesaurus and the location thesaurus to obtain the word segmentation result \\ten o'clock\\tonight\\ The company\\has a meeting; among them, tonight and ten o'clock are time participle; at\\ is a preposition participle; additional information for .

示例性地,全局内容信息可以是指“早上8点去机场赶飞机出差”,根据时间词库进行语义分割与地点词库进行语义分割可以得到分词后结果早上\\8点\\去\\机场\\赶飞机出差;其中,早上、8点为时间分词;去为介词分词;机场为地点分词;赶飞机出差为剩余分词。For example, the global content information can refer to "Go to the airport at 8 am to catch a flight on a business trip", perform semantic segmentation based on the time thesaurus and the location thesaurus to obtain the word segmentation result \\8 am\\go\\ Airport\\ catch a plane for a business trip; among them, morning and 8 o'clock are time participle; go is a preposition participle; airport is a place participle; catching a plane for a business trip is a remaining participle.

步骤S580、根据日程标题、提醒时间、日程地点与预设数据结构得到同步数据。Step S580, obtaining synchronization data according to the schedule title, reminder time, schedule location and preset data structure.

示例性地,同步数据是指根据预设数据结构对全局内容信息进行处理后得到的数据;同步应用程序可以识别同步数据,从而实现通知消息的跨应用程序的同步。Exemplarily, the synchronization data refers to the data obtained by processing the global content information according to the preset data structure; the synchronization application program can identify the synchronization data, so as to realize the synchronization of notification messages across applications.

在一个示例中,以同步应用程序是日程应用程序为例,在完成上述语义分割处理后,根据语义分割处理后的文本信息与预设数据结构得到日程应用程序可以识别的同步数据;同步数据的数据结构可以如下:In one example, taking the synchronization application program as a schedule application program as an example, after the above semantic segmentation processing is completed, the synchronization data that can be recognized by the schedule application program is obtained according to the text information after semantic segmentation processing and the preset data structure; The data structure can be as follows:

Figure BDA0003291702740000111
Figure BDA0003291702740000111

基于预设的数据结构,日程应用程序可以识别通知消息的信息,并且自动化完成日程的创建;如图4所示。Based on the preset data structure, the schedule application program can identify the information of the notification message, and automatically complete the creation of the schedule; as shown in Figure 4 .

可选地,在一种实现方式中,可以在终端设备预设设置地址关键词“家”、“公司”、“学校”、“医院”、“超市”等符合用户需要的常用地址对应的详细地址信息;在进行同步通知消息时,可以根据地址关键词索引到地址关键词对应的详细地址信息。Optionally, in an implementation manner, detailed address keywords corresponding to commonly used addresses such as "home", "company", "school", "hospital" and "supermarket" can be preset on the terminal device. Address information: when performing a synchronous notification message, the detailed address information corresponding to the address keyword can be indexed according to the address keyword.

例如,将关键词“公司”的详细地址信息设置为“陕西省西安市雁塔区科技五路20号”。For example, the detailed address information of the keyword "company" is set as "No. 20, Keji 5th Road, Yanta District, Xi'an City, Shaanxi Province".

可选地,在一种可能的实现方式中,可以对全局内容信息进行针对时间场景的语义识别,得到时间分词;根据通知标题与时间分词得到同步数据,在这种情况下可以不执行步骤S560与步骤S570。Optionally, in a possible implementation, the global content information can be semantically identified for the time scene to obtain the time participle; the synchronization data can be obtained according to the notification title and the time participle, and in this case step S560 may not be executed and step S570.

可选地,在一种可能的实现方式中,同步应用程序可以是指不具备提醒功能的应用程序;比如,同步应用程序可以是指备忘录应用程序,则在获取通知消息的全局内容信息后无需对全局内容信息进行语义分割处理,可以直接拷贝全局内容信息至备忘录应用程序。Optionally, in a possible implementation manner, the synchronization application may refer to an application that does not have a reminder function; Semantic segmentation processing is performed on the global content information, and the global content information can be directly copied to the memo application.

在本申请的实施例,终端设备获取第一应用程序的通知消息时,用户可以基于一键式操作将通知消息进行同步标记,将通知消息同步标记到第二应用程序从而在后续某时刻对用户进行提醒;通过本申请实施例的同步通知消息的方法可以快速简单地实现通知消息的同步标记,从而提高用户体验感;此外,在对通知消息进行同步时,本申请实施例中采用针对“时间”这类场景的语义分割处理,不需要对所有场景进行语义识别;从而能够节约终端设备的运算能力,降低终端设备的功耗。In the embodiment of this application, when the terminal device obtains the notification message of the first application program, the user can mark the notification message synchronously based on a one-click operation, and mark the notification message synchronously to the second application program, so that the user can be notified at a later time. Reminder; through the method for synchronizing notification messages in the embodiment of the present application, the synchronization mark of the notification message can be realized quickly and easily, thereby improving the user experience; "Semantic segmentation processing of this type of scene does not require semantic recognition for all scenes; thus, it can save the computing power of the terminal device and reduce the power consumption of the terminal device.

上文结合图1至图9详细描述了本申请实施例提供的同步通知消息的方法;下面将结合图10详细描述本申请的装置实施例。应理解,本申请实施例中的装置可以执行前述本申请实施例的各种方法,即以下各种产品的具体工作过程,可以参考前述方法实施例中的对应过程。The method for synchronizing notification messages provided by the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 9 ; the device embodiment of the present application will be described in detail below in conjunction with FIG. 10 . It should be understood that the devices in the embodiments of the present application can execute the various methods in the foregoing embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the foregoing method embodiments.

图10是一种适用于本申请的同步通知消息的装置的示意图。该装置600包括检测模块610与处理模块620。Fig. 10 is a schematic diagram of a device suitable for synchronizing notification messages of the present application. The device 600 includes a detection module 610 and a processing module 620 .

其中,检测模块610用于检测到第一操作;处理模块620用于响应于所述第一操作,显示通知消息,所述通知消息是指第一应用程序接收的通知消息;检测模块610用于检测到对所述通知消息的第二操作;处理模块620用于响应于所述第二操作,显示第一界面,所述第一界面包括多个应用程序的标识;检测模块610用于检测到对所述第一界面的第三操作,所述第三操作用于指示所述多个应用程序中的第二应用程序;处理模块620用于响应于第三操作,在所述第二应用程序显示同步数据,所述同步数据是指根据预设数据结构对所述通知消息进行处理得到的,所述预设数据结构为所述第二应用程序可识别的数据结构。Wherein, the detection module 610 is configured to detect the first operation; the processing module 620 is configured to display a notification message in response to the first operation, and the notification message refers to a notification message received by the first application program; the detection module 610 is configured to A second operation on the notification message is detected; the processing module 620 is configured to display a first interface in response to the second operation, and the first interface includes identifiers of multiple application programs; the detection module 610 is configured to detect A third operation on the first interface, where the third operation is used to indicate a second application program among the plurality of application programs; the processing module 620 is configured to, in response to the third operation, Displaying synchronous data, where the synchronous data is obtained by processing the notification message according to a preset data structure, where the preset data structure is a data structure recognizable by the second application program.

可选地,作为一个实施例,所述通知消息为在第一时刻所述第一应用程序接收的通知消息;在第二时刻在所述第二应用程序显示所述同步数据,所述第二时刻晚于所述第一时刻。Optionally, as an embodiment, the notification message is a notification message received by the first application at the first moment; the synchronization data is displayed on the second application at the second moment, and the second The time is later than the first time.

可选地,作为一个实施例,所述第一操作为下拉操作;所述处理模块620用于:Optionally, as an embodiment, the first operation is a pull-down operation; the processing module 620 is configured to:

响应于所述下拉操作显示出下拉通知栏,在所述下拉通知栏中显示所述通知消息。A drop-down notification bar is displayed in response to the pull-down operation, and the notification message is displayed in the drop-down notification bar.

可选地,作为一个实施例,所述同步数据是指根据所述预设数据结构对全局信息进行语义分割得到的,所述全局信息是指所述通知消息中包括的所有字符串信息。Optionally, as an embodiment, the synchronization data is obtained by semantically segmenting global information according to the preset data structure, and the global information refers to all character string information included in the notification message.

可选地,作为一个实施例,所述同步数据中包括时间文本,所述时间文本是根据时间词库对所述全局信息进行所述语义分割得到的。Optionally, as an embodiment, the synchronization data includes time text, and the time text is obtained by performing the semantic segmentation on the global information according to a time lexicon.

可选地,作为一个实施例,所述第二时刻是根据所述时间文本确定的。Optionally, as an embodiment, the second moment is determined according to the time text.

可选地,作为一个实施例,所述同步数据包括地点文本,所述地点文本是根据地点词库对所述全局信息进行所述语义分割得到的。Optionally, as an embodiment, the synchronization data includes a location text, and the location text is obtained by performing the semantic segmentation on the global information according to a location thesaurus.

可选地,作为一个实施例,所述地点词库为分级地点词库,所述地点文本是根据所述分级地点词库的优先级对所述全局信息进行所述语义分割得到的,所述分级地点词库中包括省级地点词库、市级地点词库、区级地点词库,所述省级地点词库的优先级高于所述市级地点词库,所述述市级地点词库的优先级高于所述区级地点词库。Optionally, as an embodiment, the location thesaurus is a hierarchical location thesaurus, and the location text is obtained by performing the semantic segmentation on the global information according to the priority of the hierarchical location thesaurus, the Comprise provincial location thesaurus, city-level location thesaurus, and district-level location thesaurus in the hierarchical location thesaurus, the priority of the provincial-level location thesaurus is higher than the city-level location thesaurus, and the city-level location thesaurus The priority of the thesaurus is higher than that of the district-level location thesaurus.

可选地,作为一个实施例,所述同步数据中还包括所述地点文本对应的地图信息。Optionally, as an embodiment, the synchronization data further includes map information corresponding to the location text.

可选地,作为一个实施例,所述同步数据还包括主题文本,所述主题文本是根据所述通知消息的通知标题与剩余文本得到的,所述剩余文本是指所述全局信息中除所述时间文本、所述地点文本与介词文本之外的文本。Optionally, as an embodiment, the synchronization data further includes subject text, the subject text is obtained according to the notification title and the remaining text of the notification message, and the remaining text refers to the global information except all Text other than the time text, the place text, and the preposition text.

可选地,作为一个实施例,在所述通知消息中包括通知标题与通知内容的情况下,所述全局信息是通过在所述通知消息对应的函数信息中增加第一函数与第二函数得到的,所述第一函数用于获取所述通知标题的信息,所述第二函数用于获取所述通知内容的信息。Optionally, as an embodiment, in the case that the notification message includes the notification title and the notification content, the global information is obtained by adding the first function and the second function to the function information corresponding to the notification message The first function is used to obtain the information of the notification title, and the second function is used to obtain the information of the notification content.

可选地,作为一个实施例,在所述通知消息中包括通知标题、通知内容与通知子内容的情况下,所述全局信息是通过在所述通知消息对应的函数信息中增加第一函数、第二函数与第三函数得到的,所述第一函数用于获取所述通知标题的信息,所述第二函数用于获取所述通知内容的信息,所述第三函数用于获取所述通知子内容的信息。Optionally, as an embodiment, in the case that the notification message includes the notification title, notification content and notification sub-content, the global information is obtained by adding the first function, obtained by the second function and the third function, the first function is used to obtain the information of the notification title, the second function is used to obtain the information of the notification content, and the third function is used to obtain the Notifies information of child content.

可选地,作为一个实施例,所述多个应用程序中包括日程应用程序,或者,备忘录应用程序。Optionally, as an embodiment, the multiple application programs include a schedule application program or a memo application program.

需要说明的是,上述电子设备700以功能单元的形式体现。这里的术语“单元”可以通过软件和/或硬件形式实现,对此不作具体限定。It should be noted that the above-mentioned electronic device 700 is embodied in the form of functional units. The term "unit" here may be implemented in the form of software and/or hardware, which is not specifically limited.

例如,“单元”可以是实现上述功能的软件程序、硬件电路或二者结合。所述硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。For example, a "unit" may be a software program, a hardware circuit or a combination of both to realize the above functions. The hardware circuits may include application specific integrated circuits (ASICs), electronic circuits, processors (such as shared processors, dedicated processors, or group processors) for executing one or more software or firmware programs. etc.) and memory, incorporating logic, and/or other suitable components to support the described functionality.

因此,在本申请的实施例中描述的各示例的单元,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Therefore, the units of each example described in the embodiments of the present application can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请还提供了一种计算机程序产品,该计算机程序产品被处理器执行时实现本申请中任一方法实施例所述的方法。The present application also provides a computer program product, which implements the method described in any method embodiment in the present application when the computer program product is executed by a processor.

该计算机程序产品可以存储在存储器中,例如是程序,程序经过预处理、编译、汇编和链接等处理过程最终被转换为能够被处理器执行的可执行目标文件。The computer program product may be stored in a memory, such as a program, and the program is finally converted into an executable object file that can be executed by a processor after processes such as preprocessing, compiling, assembling, and linking.

本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机执行时实现本申请中任一方法实施例所述的方法。该计算机程序可以是高级语言程序,也可以是可执行目标程序。The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment in the present application is implemented. The computer program may be a high-level language program or an executable object program.

本领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和设备的具体工作过程以及产生的技术效果,可以参考前述方法实施例中对应的过程和技术效果,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process and technical effects of the devices and equipment described above can refer to the corresponding processes and technical effects in the foregoing method embodiments, here No longer.

在本申请所提供的几个实施例中,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的方法实施例的一些特征可以忽略,或不执行。以上所描述的装置实施例仅仅是示意性的,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,多个单元或组件可以结合或者可以集成到另一个系统。另外,各单元之间的耦合或各个组件之间的耦合可以是直接耦合,也可以是间接耦合,上述耦合包括电的、机械的或其它形式的连接。In several embodiments provided in this application, the disclosed systems, devices and methods may be implemented in other ways. For example, some features of the method embodiments described above may be omitted, or not implemented. The device embodiments described above are only illustrative, and the division of units is only a logical function division. In actual implementation, there may be other division methods, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the various units or the coupling between the various components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.

应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present application, the sequence numbers of the processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than by the embodiments of the present application. The implementation process constitutes any limitation.

另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are often used herein interchangeably. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and A and B exist alone. There are three cases of B. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

总之,以上所述仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In a word, the above descriptions are only preferred embodiments of the technical solutions of the present application, and are not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (12)

1. A method of synchronizing notification messages, comprising:
receiving a notification message from a first application;
detecting a first operation;
displaying the notification message in response to the first operation;
detecting a second operation on the notification message;
in response to the second operation, displaying a first interface, the first interface including an identification of a plurality of applications;
detecting a third operation on the first interface, wherein the third operation is used for selecting a second application program in the plurality of application programs;
responding to the third operation, displaying synchronous data in the second application program, wherein the synchronous data refers to data obtained by performing semantic segmentation on global information according to a preset data structure, the preset data structure is a data structure which can be identified by the second application program, and the global information refers to all character string information included in the notification message;
wherein the first operation comprises a sliding operation, and the second operation is a pre-configured operation for synchronously marking the notification message.
2. The method of claim 1, wherein the method comprises one or more of:
the displaying a notification message in response to the first operation comprises:
displaying a drop-down notification bar in response to the first operation, the notification message being displayed in the drop-down notification bar;
the notification message is a notification message received by the first application at a first time; displaying the synchronization data at the second application at a second time, the second time being later than the first time.
3. The method of claim 2, wherein the synchronization data includes temporal text, and the temporal text is obtained by performing the semantic segmentation on the global information according to a temporal thesaurus.
4. The method of claim 3, wherein the second time is determined from the temporal text.
5. The method of claim 3 or 4, wherein the synchronization data comprises locality text, the locality text resulting from the semantic segmentation of the global information from a repository of locality words.
6. The method according to claim 5, wherein said locality thesaurus is a hierarchical locality thesaurus, said locality text is obtained by said semantic segmentation of said global information according to a priority of said hierarchical locality thesaurus, said hierarchical locality thesaurus comprises a provincial locality thesaurus, a city locality thesaurus, and a district locality thesaurus, said provincial locality thesaurus having a higher priority than said city locality thesaurus, said city locality thesaurus having a higher priority than said district locality thesaurus.
7. The method of claim 6, wherein the synchronization data further comprises map information corresponding to the location text.
8. The method according to claim 6 or 7, wherein the synchronization data further comprises a subject text obtained from a notification title and a remaining text of the notification message, the remaining text being a text of the global information other than the time text, the place text, and the preposition text.
9. The method according to any one of claims 1 to 4, 6, or 7, wherein in a case where a notification title and notification content are included in the notification message, the global information is obtained by adding a first function for acquiring information of the notification title and a second function for acquiring information of the notification content to function information corresponding to the notification message.
10. The method according to any one of claims 1 to 4, 6, or 7, wherein in a case where a notification title, a notification content, and a notification sub-content are included in the notification message, the global information is obtained by adding a first function for acquiring information of the notification title, a second function for acquiring information of the notification content, and a third function for acquiring information of the notification sub-content to function information corresponding to the notification message.
11. The method of any one of claims 1 to 4, 6 or 7, wherein the plurality of applications includes a calendar application or a memo application.
12. An apparatus for synchronizing notification messages, comprising a processor and a memory, the processor and the memory being coupled, the memory for storing a computer program that, when executed by the processor, causes the apparatus to perform the method of any of claims 1 to 11.
CN202111166963.5A 2021-09-30 2021-09-30 Method and device for synchronizing notification messages Active CN114036954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111166963.5A CN114036954B (en) 2021-09-30 2021-09-30 Method and device for synchronizing notification messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111166963.5A CN114036954B (en) 2021-09-30 2021-09-30 Method and device for synchronizing notification messages

Publications (2)

Publication Number Publication Date
CN114036954A CN114036954A (en) 2022-02-11
CN114036954B true CN114036954B (en) 2022-11-01

Family

ID=80134716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111166963.5A Active CN114036954B (en) 2021-09-30 2021-09-30 Method and device for synchronizing notification messages

Country Status (1)

Country Link
CN (1) CN114036954B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975317A (en) * 2016-05-24 2016-09-28 维沃移动通信有限公司 Notification message processing method and mobile terminal
CN108206890A (en) * 2017-12-15 2018-06-26 中兴通讯股份有限公司 A kind of applicative notifications management-control method, device and terminal
CN111787493A (en) * 2020-06-29 2020-10-16 维沃移动通信有限公司 Message sending method, message sending device and electronic device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6971096B1 (en) * 2000-05-19 2005-11-29 Sun Microsystems, Inc. Transaction data structure for process communications among network-distributed applications
US8316386B2 (en) * 2006-02-17 2012-11-20 Microsoft Corporation Multiple application integration
US7734828B2 (en) * 2007-06-12 2010-06-08 Palm, Inc. Data synchronization transparent to application
US9659260B2 (en) * 2011-03-15 2017-05-23 Dan Caligor Calendar based task and time management systems and methods
US9396043B2 (en) * 2013-04-10 2016-07-19 Microsoft Technology Licensing, Llc Synchronization across applications
US10200824B2 (en) * 2015-05-27 2019-02-05 Apple Inc. Systems and methods for proactively identifying and surfacing relevant content on a touch-sensitive device
US20180095938A1 (en) * 2016-09-30 2018-04-05 Sap Se Synchronized calendar and timeline adaptive user interface
CN110120909B (en) * 2018-02-07 2021-12-07 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
EP4070183A4 (en) * 2019-12-02 2023-12-20 Curtail, Inc. Behavior-based comparison of software
CN113422863A (en) * 2021-06-17 2021-09-21 深圳传音控股股份有限公司 Information display method, mobile terminal and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975317A (en) * 2016-05-24 2016-09-28 维沃移动通信有限公司 Notification message processing method and mobile terminal
CN108206890A (en) * 2017-12-15 2018-06-26 中兴通讯股份有限公司 A kind of applicative notifications management-control method, device and terminal
CN111787493A (en) * 2020-06-29 2020-10-16 维沃移动通信有限公司 Message sending method, message sending device and electronic device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
DATA SYNCHRONIZATION PATTERNS IN MOBILE;ZACH MCCORMICK等;《Data Synchronization Patterns in Mobile Application Design, proceedings of the Pattern Languages of》;20121021;全文 *
Reliable, Consistent, and Efficient;Younghwan Go等;《This paper is included in the Proceedings of the》;20150219;全文 *
基于DDS的跨域数据同步研究;王品德;《通信技术》;20150410(第04期);全文 *
基于MSMQ和XML实现数据同步策略;田正军;《河南工程学院学报(自然科学版)》;20080620(第02期);全文 *
基于SaaS模式的快递投递业务系统设计;范文兵等;《计算机应用》;20170615;全文 *

Also Published As

Publication number Publication date
CN114036954A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US10620920B2 (en) Automatic graphical user interface generation from notification data
CN114020197B (en) Cross-application message processing method, electronic device and readable storage medium
KR102547894B1 (en) Dynamic Context Media Filter
US11134051B2 (en) Apparatus and method for managing notification
US12105930B2 (en) Interactive messaging stickers
CN118276722A (en) Window display method and electronic device
CN113779427A (en) Schedule address recognition method, schedule address recognition apparatus, storage medium, and software program product
CN116320141A (en) Method for recommending card punching, electronic equipment and computer readable storage medium
CN114095610B (en) A notification message processing method and computer-readable storage medium
US20230030397A1 (en) Context based interface options
CN114036954B (en) Method and device for synchronizing notification messages
CN116048317B (en) Display method and device
CN113269510A (en) Schedule management method and electronic equipment
CN117354416A (en) A message processing method, device, storage medium and electronic equipment
CN115016705B (en) Express prompting method and electronic device
CN113612886B (en) Strange number processing method and computer-readable storage medium
CN113805746B (en) Method and device for displaying cursor
US20240273104A1 (en) Generating and using a semantic index
CN117724780B (en) Information acquisition method
CN116056019B (en) A short message parsing method and electronic device for card recommendation
US20230161755A1 (en) Cross row consistent data accessing
CN119577132A (en) A method and device for managing memory information
WO2025167129A1 (en) Application recommendation method and communication apparatus
WO2025039717A1 (en) Display method, electronic device, and readable storage medium
WO2025050868A1 (en) Method for dragging and dropping picture, and related apparatus

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

CP03 Change of name, title or address