CN109460304B - Cross-application notification display and notification content packaging method and device - Google Patents

Cross-application notification display and notification content packaging method and device Download PDF

Info

Publication number
CN109460304B
CN109460304B CN201710797865.9A CN201710797865A CN109460304B CN 109460304 B CN109460304 B CN 109460304B CN 201710797865 A CN201710797865 A CN 201710797865A CN 109460304 B CN109460304 B CN 109460304B
Authority
CN
China
Prior art keywords
notification
content
application
notification content
sequence
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
CN201710797865.9A
Other languages
Chinese (zh)
Other versions
CN109460304A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710797865.9A priority Critical patent/CN109460304B/en
Publication of CN109460304A publication Critical patent/CN109460304A/en
Application granted granted Critical
Publication of CN109460304B publication Critical patent/CN109460304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a cross-application notification display method and device, wherein the method comprises the following steps: obtaining an application notification from at least one application; generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition; serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and when a notification display request is received, displaying the application notification according to the second content sequence. According to the embodiment of the application, the application notification can be completely reproduced to the user.

Description

Cross-application notification display and notification content packaging method and device
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for displaying a notification across applications, a method and an apparatus for encapsulating notification content, a method and an apparatus for displaying a notification, a method and an apparatus for recovering data, a computer device, and a computer-readable storage medium.
Background
More and more users are currently acquiring information through application notifications. However, the application may push some advertising notifications or nuisance notifications to the user. The notification management application can intercept the advertisement notification or the harassment notification, when a user requests, the notification management application reappears the intercepted application notification to the user, and the user selects to delete, recover or not intercept the notification and other operations according to the content of the application notification.
For terminals such as mobile phones and tablet computers using the android system, the notification management application reproduces application notifications based on the IPC (Inter-Process Communication) of the android system. Specifically, when an application notification is pushed to a user by a certain application of the terminal, the notification management application can acquire the application notification, call a sequence processing function in the android system, serialize the application notification into a notification content sequence, and then store the notification content sequence locally at the terminal. When a notification display request of a user for the notification management application is received, the notification management application reads the notification content sequence from the terminal locally, restores the notification content sequence into an application notification and displays the application notification to the user.
However, the applicant has found through research that an application notification is serialized into a notification content sequence, and an application notification that is reproduced based on the notification content sequence may lose important information in an original application notification, for example, after a mobile phone is restarted, when the application notification needs to be displayed in a notification management application, an original background picture and an icon of a skip button in the application notification are lost, and the skip button is disabled, so that a user cannot acquire a complete application notification, and the user cannot judge whether to perform operations such as deleting, recovering, or no longer intercepting the notification according to the complete notification content.
Therefore, in the notification display method based on cross-application in the prior art, the problem that the application notification cannot be completely displayed exists.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide an xx method and an xx device.
In order to solve the above problem, the present application provides a cross-application notification display method, including:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
and when a notification display request is received, displaying the application notification according to the second content sequence.
Optionally, before the generating a first content sequence according to the first notification content of the application notification, the method further includes:
extracting original notification content corresponding to the application notification;
and extracting at least one set type of notification content from the original notification content as the second notification content.
Optionally, the method further comprises:
and taking the part of the original notification content except the second notification content as the first notification content.
Optionally, the extracting at least one set type of notification content from the original notification content as the second notification content includes:
extracting a calling instruction corresponding to the at least one set type of notification content from the original notification content;
and acquiring the notification content of the at least one set type according to the calling instruction.
Optionally, before the extracting at least one set type of notification content from the original notification content as the second notification content, the method further includes:
removing non-presentation notification content from the original notification content.
Optionally, the generating a first content sequence according to the first notification content of the application notification includes:
and calling a sequence processing function to serialize the first notification content and package the serialized first notification content to obtain the first content sequence.
Optionally, before the calling a sequence processing function to serialize the first notification content and encapsulate the serialized first notification content, the generating a first content sequence according to the first notification content of the application notification further includes:
inserting the replacement content of the second notification content into the set position of the first notification content; the replacement content is empty content.
Optionally, the serializing the second notification content of the application notification includes:
processing the second notification content into a content sequence that conforms to cross-application transmission requirements.
Optionally, the presenting the application notification according to the second content sequence includes:
parsing the second content sequence into a second sequence of serialized notification content and the first content sequence;
analyzing a first notification content from the first content sequence, and obtaining a notification content to be displayed of the application notification according to the first notification content and the second notification content;
and displaying the application notification according to the notification content to be displayed.
Optionally, the obtaining, by the first notification content and the second notification content, notification content to be displayed of the application notification according to the first notification content and the second notification content includes:
searching the first notification content for replacement content of the second notification content;
and replacing the replacement content of the second notification content with the second notification content to obtain notification content to be displayed of the application notification.
Optionally, before the displaying the application notification according to the notification content to be displayed, the method further includes:
and modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
Optionally, the serialization condition includes a data volume range, and the second notification content is a skip button, a skip button icon, and a background picture that are beyond the data volume range.
In order to solve the above problem, the present application provides a notification content encapsulation method, including:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
In order to solve the above problem, the present application provides a notification display method, including:
acquiring an application notification;
generating a first packaging file according to the non-target notification content of the application notification;
adding the target notification content of the application notification to the first packaged file to obtain a second packaged file;
and displaying the application notification according to the second packaging file.
In order to solve the above problem, the present application provides a data recovery method, including:
acquiring at least one application data tag according to user selection;
restoring application data corresponding to the application data label, wherein the application data comprises content data and interface data, and the interface data comprises a visual element;
and displaying the interface data and the content data of the application data.
Optionally, the application data tag includes an application notification.
Optionally, the recovering the application data corresponding to the application data tag includes:
acquiring a data content sequence corresponding to the application data label;
and performing deserialization processing on the data content sequence to obtain the content data and the interface data.
In order to solve the above problem, the present application further provides a cross-application notification display apparatus, including:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
and the notification display module is used for displaying the application notification according to the second content sequence when a notification display request is received.
Optionally, the apparatus further comprises:
and the original notification content extraction module is used for extracting the original notification content corresponding to the application notification.
And the setting type content extraction module is used for extracting at least one setting type of notification content from the original notification content as the second notification content.
Optionally, the apparatus further comprises:
and the notification content removing module is used for taking the part of the original notification content, from which the second notification content is removed, as the first notification content.
Optionally, the setting-type content extracting module may specifically include:
the calling instruction extracting submodule is used for extracting a calling instruction corresponding to the notification content of the at least one set type from the original notification content;
and the notification content acquisition submodule is used for acquiring the notification content of at least one set type according to the calling instruction.
Optionally, the apparatus may further comprise:
and the non-display content removing module is used for removing the notification content for non-display from the original notification content.
Optionally, the first content sequence generating module may specifically include:
and the packaging submodule is used for calling a sequence processing function to serialize the first notification content and packaging the serialized first notification content to obtain the first content sequence.
Optionally, the first content sequence generation module may further include:
a substitute content insertion sub-module for inserting substitute content of the second notification content at a set position of the first notification content; the replacement content is empty content.
Optionally, the second content sequence generating module may specifically include:
and the sequence processing submodule is used for processing the second notification content into a content sequence which meets the cross-application transmission requirement.
Optionally, the notification display module may specifically include:
the analysis submodule is used for analyzing the serialized second notification content and the first content sequence from the second content sequence;
the to-be-displayed content generation submodule is used for analyzing first notification content from the first content sequence and obtaining the notification content to be displayed of the application notification according to the first notification content and the second notification content;
and the notification display submodule is used for displaying the application notification according to the notification content to be displayed.
Optionally, the first notification content includes a substitute content of the second notification content, and the content to be presented generation sub-module may specifically include:
a substitute content search unit configured to search for substitute content of the second notification content in the first notification content;
and the content replacing unit is used for replacing the replacing content of the second notification content with the second notification content to obtain the notification content to be displayed of the application notification.
Optionally, the apparatus may further comprise:
and the identifier modification module is used for modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
Optionally, the serialization condition includes a data volume range, and the second notification content is a skip button, a skip button icon, and a background picture that are beyond the data volume range.
In order to solve the above problem, the present application also provides a notification content packaging apparatus, including:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
In order to solve the above problem, the present application also provides a notification display apparatus, including:
the notification acquisition module is used for acquiring application notifications;
the first encapsulated file generating module is used for generating a first encapsulated file according to the non-target notification content of the application notification;
the second encapsulated file generation module is used for adding the target notification content of the application notification to the first encapsulated file to obtain a second encapsulated file;
and the notification display module is used for displaying the application notification according to the second packaging file.
In order to solve the above problem, the present application also provides a data recovery apparatus, including:
the tag acquisition module is used for acquiring at least one application data tag according to user selection;
the data recovery module is used for recovering application data corresponding to the application data label, wherein the application data comprises content data and interface data, and the interface data comprises visual elements;
and the data display module is used for displaying the interface data and the content data of the application data.
Optionally, the application data tag includes an application notification.
Optionally, the data recovery module may specifically include:
the data content sequence submodule is used for acquiring a data content sequence corresponding to the application data label;
and the deserializing sub-module is used for deserializing the data content sequence to obtain the content data and the interface data.
In order to solve the above problem, the present application further provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements one or more of the methods as described above when executing the computer program.
To solve the above problem, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements one or more of the methods as described above.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the embodiment of the application, the first content sequence is generated by the first notification content meeting the serialization condition in the application notification, and the second notification content not meeting the serialization condition is serialized into the first content sequence to form the second content sequence, so that the application notification can be completely reproduced to a user based on the second content sequence display application notification containing the complete notification content, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
When the cross-application-based notification display method is applied to the application scene of the android system, according to the embodiment of the application, aiming at an IPC mechanism for automatically converting data with large data volume into the address mark of the virtual memory space in the android system, the original background picture and the icon of the jump button in the application notification can be completely reproduced, the jump button is ensured to take effect, and the problems that the original background picture and the icon of the jump button in the application notification are lost and the jump button is invalid are avoided.
Moreover, since all the notification contents of the application notification are stored in the second content sequence, all the notification contents can be directly obtained from the application notification when the notification is reproduced, and the notification contents do not need to be searched according to the address mark of the virtual memory space, even if the notification is reproduced after a long time and the virtual memory interval is changed within the period of time, the notification can be reproduced according to the second content sequence which is stored persistently without being influenced by the change of the virtual memory interval, so that the persistent storage of the notification contents is realized.
According to the embodiment of the application data display method and device, the application data label is obtained according to the selection of the user, the content data corresponding to the application data label and the interface data comprising the visual elements are recovered, and the interface data and the content data of the application data are displayed to the user, so that the user can browse the application data conveniently.
Drawings
FIG. 1 is a flowchart illustrating steps of a cross-application notification presentation method according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of a cross-application notification presentation method according to a second embodiment of the present application;
FIG. 3 is a diagram illustrating the effect of a notification reproduced by a notification presentation method in the prior art;
FIG. 4 is a flow diagram illustrating a notification serialization of the present application;
FIG. 5 is a flow diagram of a notification presentation of the present application;
FIG. 6 is a schematic diagram illustrating the effect of a notification reproduced by the notification display method of the present application;
fig. 7 is a flowchart illustrating steps of a notification content packaging method according to a third embodiment of the present application;
FIG. 8 is a flowchart illustrating steps of a notification presentation method according to a fourth embodiment of the present application;
FIG. 9 is a flowchart illustrating steps of a data recovery method according to a fifth embodiment of the present application;
FIG. 10 is a block diagram of a cross-application notification display apparatus according to a sixth embodiment of the present application;
FIG. 11 is a block diagram of a cross-application notification display apparatus according to a seventh embodiment of the present application;
fig. 12 is a block diagram of a notification content packaging apparatus according to an eighth embodiment of the present application;
FIG. 13 is a block diagram of a notification display apparatus according to the ninth embodiment of the present application;
fig. 14 is a block diagram of a data recovery apparatus according to a tenth embodiment of the present application;
fig. 15 is an exemplary system of embodiment eleven of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
To facilitate a thorough understanding of the present application by those skilled in the art, the definitions of the terms referred to in the present application will be first described below.
The application comprises an application program installed on a mobile phone and a tablet personal computer. The application may push the application notification. For example, a courier application for prompting a user for a current shipping status of a package.
Application notifications, including notifications generated by an application. For example, the courier application may push a notification message to the user of the current shipping status of the package.
And the notification content comprises notification structure data and metadata. The notification structure data may be remoteView, which includes data of View (presentation interface) generating the application notification, for example, the View data includes Bitmap data for generating a background picture in the notification, Pendingintent data for generating a jump button and an icon thereof, and the like. The metadata may include document data of the application notification, a packet name of the sending end, a packet name of the receiving end, a notification ID, a notification tag (identifier), a default Intent (default delivery object), default notification content, notification sending time, and the like.
And a content sequence which is data obtained by serializing the notification content notified by the application. For example, a Parcel file (a serialization file) obtained by serializing the notification content through a Parcelable interface (a serialization service interface) of the android system.
The notification presentation request comprises a request initiated by a user for viewing the application notification.
First, it should be noted that a plurality of applications may be installed on a terminal such as a mobile phone or a tablet computer, and a process is a running activity of an application with respect to a certain data set. Different application programs can have corresponding different processes, and the processes are relatively independent and cannot mutually access data of each other. Therefore, if data interaction between processes is required, data transmission methods of an IPC mechanism (Inter-Process Communication) may be adopted, the data to be interacted is stored into a shared memory space of the terminal according to a serialized data format, and another Process reads the serialized data format from the shared memory space, thereby implementing data interaction. The IPC mechanism of the android system is realized through Parcel.
More specifically, in the android system, if data transmission is required between processes, a pareble interface provided by the android system is called, and data is serialized into a parel container, so that a parel file is formed. The so-called Parcel container is a memory space preset by the terminal, and the memory space can be used for storing the serialized files. And then storing the Parcel file locally in a Byte format file. When a process needs to acquire data of another process, the Parcel file can be written into a shared memory of the terminal, and the other process reads the Parcel file from the shared memory and carries out deserialization on the Parcel file to obtain data, so that data transmission among the processes is realized. The data are serialized into a Parcel file, so that the data in different formats are packaged into data which have a uniform data format, can be stored persistently and is used for interprocess transmission.
In the notification display method in the prior art, a notification management application can call a paretable interface of an android system, serialize all notification contents of characters, pictures, skip buttons, icons of the skip buttons and the like in an application notification into a parel file, convert the parel file into a byte file, and store the byte file locally. And when the application notification needs to be displayed, reading the byte file from the local and analyzing the byte file, and reproducing the application notification according to the analyzed content. Thus, the notification management application can realize notification reproduction based on IPC.
Because the IPC mechanism of the android system is designed for file transmission between processes, if the data volume of the transmitted file is too large, the transmission speed is affected, so when the notification content is serialized into a Parcel file, the notification content such as a background picture, a jump button and an icon thereof with a large data volume in the notification content is automatically stored in a certain physical memory interval of the terminal, and in the Parcel file, an address tag (for example, a file descriptor of shared content) mapped to a certain virtual memory interval of the physical memory interval is adopted to replace the original background picture, the jump button and the icon thereof, so that when the notification is reproduced, the background picture, the jump button and the icon thereof are extracted from the mapped physical memory space according to the address tag of the virtual memory interval.
However, the applicant has found that in practical applications, there are various reasons that the virtual memory space is frequently changed, for example, when the system is restarted and the management application is notified of the restart, the system reallocates the address of the virtual memory space. If the virtual memory interval changes, the virtual memory interval cannot be mapped to the correct physical memory interval according to the address mark of the original virtual memory interval, so that a background picture, a jump button and an icon of the jump button cannot be extracted when the notification is reproduced, and the problems of loss of the original background picture and the icon of the jump button, failure of the jump button and the like in the application notification are caused. Therefore, the embodiment of the present application provides a notification display method to solve the above-mentioned problems.
Example one
Fig. 1 is a flowchart of steps of a cross-application notification display method according to an embodiment of the present application, where the method may specifically include the following steps:
step 101, obtaining an application notification from at least one application.
102, generating a first content sequence according to a first notification content notified by the application; the first notification content satisfies a set serialization condition.
In a specific implementation, when one or more applications in the terminal generate an application notification, the application notification may be acquired.
In practice, an application notification includes the original notification content. The original notification content may consist of notification structure data and metadata.
After the application notification is acquired, the original notification content in the application notification can be extracted. Then, a first content sequence is generated for the first notification content from the original notification contents, with the notification contents satisfying the set serialization condition as the first notification contents.
The serialization condition described above may include a data amount range of the notification content. For example, the serialization condition may be set to a data amount range of [0, 1M ].
More specifically, with respect to the original notification content of the notification structure data and the metadata, data whose data amount is small in the notification structure data and the metadata may be taken as the above-described first notification content. For example, in the android system, as the first notification content, the document data, the notification ID, the notification tag, and the like, which have a small data amount, among RemoteView and metadata, which are notification structure data, may be set so that the first notification content may satisfy the set data amount range of [0, 1M ].
After the first notification content is extracted, a pareble interface of the android system can be called, and the first notification content is serialized into a parel file, so that the first content sequence is obtained.
Step 103, serializing the second notification content notified by the application, and adding the serialized second notification content to the first content sequence to obtain a second content sequence.
In a specific implementation, at least one set type of notification content may be determined from the original notification content, and the notification content may be extracted as the second notification content.
For example, Bitmap data for generating a background picture and PendingIntent data for generating a skip button and a skip button icon in the notification may be used as the second notification content conforming to the set type.
After the second notification content is obtained, the second notification content may be processed into a content sequence that meets the cross-application transmission requirements. In order to add the second notification content to the serialized first content sequence, it is necessary to first perform serialization processing on the second notification content,
for example, a self-defined serialization mode is adopted, the Bitmap is converted into a Bitmap _ byte [ ], and the Bitmap _ byte [ ] file is written into a Parcel file; for another example, when the Intent is parsed from PendingIntent, the Intent can be written to a Parcel file because the data format of the Intent file can be serialized into a serialized file.
After the second notification content is serialized, the serialized second notification content may be added to the first content sequence to obtain a second content sequence.
For example, Bitmap _ byte [ ] is written into the Parcel file of the first notification content, and Intent is written into the Parcel file of the first notification content.
In practice, after the second content sequence is obtained, it can be converted into Byte format for local storage.
And 104, displaying the application notification according to the second content sequence when a notification display request is received.
In a specific implementation, when a user initiates a notification display request to a notification management application, the notification management application may extract a second content sequence and perform deserialization on the second content sequence, thereby obtaining first notification content and second notification content. And generating an application notification by adopting the first notification content and the second notification content, and displaying the application notification to a user.
For example, reading a Parcel file from the local, parsing document data, notification ID, notification tag, sending time and the like with small data quantity in remoteView and metadata from the Parcel file, parsing Bitmap _ byte [ ] and Intent from the Parcel file, restoring the Bitmap _ byte [ ] into a Bitmap, inserting the Bitmap and Intent into corresponding positions in the remoteView and the metadata, calling an apply (notification loading method) in the remoteView, generating a View of an application notification for the remoteView and the metadata into which the Bitmap and the Intent are inserted, and displaying the application notification based on the View, thereby realizing the reproduction of the application notification.
According to the embodiment of the application, the first content sequence is generated by the first notification content meeting the serialization condition in the application notification, and the second notification content not meeting the serialization condition is serialized into the first content sequence to form the second content sequence, so that the application notification can be completely reproduced to a user based on the second content sequence display application notification containing the complete notification content, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
Example two
Fig. 2 is a flowchart of steps of a cross-application notification display method according to a second embodiment of the present application, where the method may specifically include the following steps:
step 201, an application notification is obtained from at least one application.
Step 202, extracting the original notification content corresponding to the application notification.
In a specific implementation, when an application generates an application notification, the application notification may be obtained. The original notification content may then be extracted from the retrieved application notification. In actual practice, the original notification content of the android system may include remoteView and metadata.
Step 203, extracting at least one set type of notification content from the original notification content as the second notification content.
Optionally, the step 203 may include:
substep S11, extracting a call instruction corresponding to the notification content of the at least one set type from the original notification content;
and a substep S12 of obtaining the notification content of the at least one setting type according to the call instruction.
In the android system, the call instruction corresponding to the notification content of the setting type may include a bitmapped retrievationactionicon, a retrievesectionseedimageicon, and a setoncolckigpondingintent. The call instruction is respectively used for calling related data such as a background picture, a jump button and a jump button icon of the application notification. For example, PendingIntent can be determined according to SetOnClickPendingIntent, and then the Intent is analyzed from the PendingIntent, wherein the Intent contains related data for realizing the jump function, such as the trigger effect of a jump button and related data for indicating a jump target; the corresponding icon can be inquired according to the reflectionsetimageicon; the corresponding background picture can be inquired according to the bitmap refection action.
Optionally, before the step 203, the method may further include:
removing non-presentation notification content from the original notification content.
In the concrete implementation, part of the notification content in the original notification content does not need to be reproduced, and the part of the notification content can be removed, so that the reproduction processing of the notification content which does not meet the requirements of users is avoided, and the processing resources of the terminal are saved. For example, the sender packet name, the receiver packet name, and other data in the original notification content may be removed.
Step 204, using the part of the original notification content excluding the second notification content as the first notification content.
In a specific implementation, after the original notification content is acquired and the second notification content is determined, the remaining notification content that does not include the second notification content in the original notification content may be used as the first notification content.
For example, after obtaining the remoteView notified by the application, the Bitmap and PendingIntent are removed from the remoteView.
Step 205, generating a first content sequence according to the first notification content notified by the application; the first notification content satisfies a set serialization condition.
Optionally, the serialization condition includes a data size range, and the second notification content includes a jump button, a jump button icon, and a background picture that are beyond the data size range.
In practical applications, the serialization condition of the IPC mechanism of the android system is [0, 1M ], that is, data exceeding 1M will be converted into a file descriptor of the shared content. The Bitmap and Pendingintent corresponding to the jump button, the jump button icon and the background picture exceed the data size range.
Optionally, the step 205 may include:
a substep S21 of inserting a substitute content for the second notification content at a set position of the first notification content; the replacement content is empty content.
And a substep S22, calling a sequence processing function to serialize the first notification content and encapsulate the serialized first notification content to obtain the first content sequence.
The set position may be a position where the second notification content is removed. In a specific implementation, the replacement content of the second notification content may be inserted at a set position, and the replacement content may be an empty content for inserting the second notification content that was previously removed when the notification is reproduced.
After inserting the replacement content, a sequence elaboration function may be invoked for serialization and encapsulation, resulting in a first content sequence. For example, in an android system, a Parcel interface providing a sequence processing function service is called, and the remoteView from which the Bitmap and PendingIntent are removed is serialized and encapsulated to obtain a Parcel file.
In practical application, a Parcel data container is preset in a memory of a terminal for a sequence processing function service provided by a Parcel interface, data with different data formats can be input into the Parcel data container, and the Parcel interface can serialize and package the data input into the Parcel data container and output a uniform Parcel file with a data format for different application programs to recognize. The Parcel file is based on a data format of Byte bytes, so that the efficiency of operating the shared memory is improved.
Step 206, serializing the second notification content notified by the application, and adding the serialized second notification content to the first content sequence to obtain a second content sequence.
Optionally, the step of serializing the second notification content of the application notification may include:
and a sub-step S31 of processing the second notification content into a content sequence conforming to the cross-application transmission requirements.
In practical application, for second notification contents such as Bitmap and PendingIntent of the android system, the Bitmap can be converted into Bitmap _ byte [ ], and Intent is analyzed from the PendingIntent, so that the Bitmap _ byte [ ] and Intent are written into a Parcel file.
And step 207, displaying the application notification according to the second content sequence when receiving the notification display request.
Optionally, the step of presenting the application notification according to the second content sequence may include:
a substep S41 of parsing a second serialized notification content and the first content sequence from the second content sequence;
substep S42, parsing a first notification content from the first content sequence, and obtaining a notification content to be displayed for the application notification according to the first notification content and the second notification content;
and a substep S43, displaying the application notification according to the notification content to be displayed.
In a specific implementation, the second content sequence may be deserialized to analyze the serialized second notification content and the first content sequence. Then, the first notification content is further parsed from the first content sequence, and the second notification content is parsed from the serialized second notification content. And inserting the second notification content into the set position of the first notification content to obtain the notification content to be displayed.
For an android system, a Parcel file saved in a Byte format can be read firstly, remoteView, Bitmap _ Byte [ ] and Intent can be extracted from the Parcel file, an application such as a Bitmap Coder can be adopted to analyze the Bitmap, and then the Bitmap and Intent are inserted into the remoteView to obtain the complete remoteView. And then calling an application in the RemoteView, and generating the View notified by the application aiming at the complete RemoteView.
Optionally, the step of obtaining the notification content to be presented of the application notification according to the first notification content and the second notification content may include:
a substep S51 of searching the first notification content for alternative content of the second notification content;
and a substep S52, replacing the replacement content of the second notification content with the second notification content, to obtain notification content to be displayed of the application notification.
In a specific process of inserting the second notification content into the set position of the first notification content, the replacement content of the second notification content may be first searched in the second notification content, and the replacement content is replaced with the second notification content, so that the second notification content is inserted into the set position of the first notification content, and the notification content to be displayed is obtained.
Optionally, before the presenting the application notification according to the notification content to be presented, the method may further include:
and modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
In a specific implementation, the notification content may include a notification transmission identifier, which generally records an identifier defined by an application from which the application notification is derived. Thus, it may be modified to a notification reception identity, which may be an identity defined by the notification management application. Thus, when the notification is reproduced, the application from which the application notification originates is not displayed, and information that does not meet the user's needs is prevented from being presented to the user.
According to the embodiment of the application, aiming at an IPC mechanism for automatically converting data with large data volume into the address mark of the virtual memory space in the android system, the original background picture and the icon of the jump button in the application notification can be completely reproduced, the jump button is ensured to take effect, and the problems that the original background picture and the icon of the jump button in the application notification are lost and the jump button is invalid are avoided.
Moreover, since all the notification contents of the application notification are stored in the second content sequence, all the notification contents can be directly obtained from the application notification when the notification is reproduced, and the notification contents do not need to be searched according to the address mark of the virtual memory space, even if the notification is reproduced after a long time and the virtual memory interval is changed within the period of time, the notification can be reproduced according to the second content sequence which is stored persistently without being influenced by the change of the virtual memory interval, so that the persistent storage of the notification contents is realized.
To facilitate understanding of the embodiments of the present application for those skilled in the art, the following description will be made with reference to specific examples of fig. 3 to 6.
Fig. 3 is a schematic diagram illustrating the effect of a notification reproduced by a notification presentation method in the prior art. As can be seen from the figure, in a plurality of notifications reproduced by the notification management application, the background picture is lost, only the text in the original notification is retained, the icon of each jump button is also lost, the jump function of the jump button is also disabled, and even if the user clicks the jump button, the user can jump to the application generating the application notification by default, but cannot jump to the original notification directly.
Fig. 4 is a flow diagram of a notification serialization of the present application. As can be seen, upon receipt of the notification message, the metadata and remoteView may be parsed therefrom. The bitmaps may then be parsed from the remoteView, staged to a space, and removed from the remoteView. Meanwhile, the Intent can be analyzed from Pendingintent in RemoteView, the analyzed Intent is temporarily stored in a certain space, and the Pendingintent is removed from RemoteView. Serializing the remoteView with the Bitmap and PendingIntent removed into a Parcel to obtain a Parcel file. Then converting Bitmap into byte [ ] file, and serializing into the same Parcel file, and meanwhile, serializing Intent into Parcel.
Fig. 5 is a flow diagram of a notification presentation of the present application. As can be seen from the figure, when a notification needs to be reproduced, reading a Parcel file, analyzing a remoteView, a Bitmap and an Intent from the Parcel file, inserting the Bitmap and the Intent into the remoteView, extracting an application in the remoteView, executing the application, generating the notified View by the remoteView, and displaying the notification based on the generated View, thereby realizing the reproduction of the notification across applications.
Fig. 6 is a schematic diagram illustrating the effect of a notification reproduced by the notification presentation method of the present application. As can be seen from the figure, in a plurality of notifications reproduced by the notification management application, in addition to the text of the original notification, the background picture of the original notification and the icon of the jump button can also be displayed completely, the jump function of the jump button is still effective, and after the user clicks the jump button, the user can jump to the original notification to view the original notification.
EXAMPLE III
Fig. 7 is a flowchart of steps of a notification content packaging method according to a third embodiment of the present application, where the method may specifically include the following steps:
step 301, an application notification is obtained from at least one application.
Step 302, generating a first content sequence according to a first notification content of the application notification; the first notification content satisfies a set serialization condition.
Step 303, serializing the second notification content notified by the application, and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
According to the embodiment of the application, a first content sequence is generated by a first notification content meeting a serialization condition in an application notification, and then a second notification content not meeting the serialization condition is serialized into the first content sequence to form a second content sequence. The second content sequence obtained by the encapsulation through the method comprises complete notification content. The application notification can be displayed according to the second content sequence, the application notification can be completely reproduced for the user, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
Example four
Fig. 8 is a flowchart of steps of a notification display method according to a fourth embodiment of the present application, where the method may specifically include the following steps:
step 401, obtaining an application notification.
Step 402, generating a first package file according to the non-target notification content of the application notification.
Step 403, adding the target notification content of the application notification to the first packaged file to obtain a second packaged file.
Step 404, displaying the application notification according to the second package file.
In a specific implementation, for the android system, the non-target notification content may include data with a small data amount in the application notification, for example, document data, a notification ID, a notification tag, and the like in the notification content. The target notification content may include Bitmap data of a background picture for generating a notification, and PendingIntent data of a jump button and a jump button icon for generating a notification.
A serialization service interface may be invoked to package the non-target notification content into a first packaged file, and then add the target notification content to the first packaged file to obtain a second packaged file. When the application notification needs to be presented, the application notification can be presented according to the second package file.
According to the embodiment of the application, the non-target notification content in the application notification is packaged into the first packaged file, and then the target notification content is added to the first packaged file to obtain the second packaged file. The second encapsulated file obtained by encapsulating through the method comprises complete notification content. According to the second package file display application notification, the application notification can be reproduced to the user completely, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
EXAMPLE five
Fig. 9 is a flowchart of steps of a data recovery method in a fifth embodiment of the present application, where the method may specifically include the following steps:
step 501, obtaining at least one application data tag according to user selection.
The data recovery method of the embodiment of the application can be applied to the mobile terminal. A notification management application may be installed on the mobile terminal. In a specific implementation, one or more application data tags may be obtained according to a selection operation of a user.
It should be noted that the application installed on the mobile terminal may generate application data, for example, the courier application may generate data of a courier arrival notification. The application data tag may be a tag for identifying application data generated by a certain application.
Optionally, the application data tag may include an application notification.
In actual application, the application on the mobile terminal may push an application notification to the user, and the notification management application may obtain the application notification and display a tag of the application notification in a management interface of the notification management application for the user to click. For example, the user may click on an application notification on a management interface of the notification management application to request to show details of the application notification, and after detecting an operation of clicking on the application notification by the user, the application notification may be acquired so as to further recover the corresponding application data.
Step 502, restoring application data corresponding to the application data tag, wherein the application data includes content data and interface data, and the interface data includes a visualization element.
Optionally, the step 502 may specifically include:
acquiring a data content sequence corresponding to the application data label;
and performing deserialization processing on the data content sequence to obtain the content data and the interface data.
The content data may include text, numerical value, and other data provided to the user in the application data. The interface data may include visual elements in the application data, such as pictures, icons, animations, etc. for enhancing the presentation. For example, for application data to which a notification is applied, the content data may be a case of the notification, and the interface data may include a background picture of the notification, an icon of a jump button, and the like.
In a specific implementation, the corresponding data content sequence may be searched for an application data tag. The data content sequence is a package file obtained by extracting content data and interface data from an application notification after the notification management application acquires the application notification pushed by an application, and serializing the content data and the interface data. The process of obtaining the package file by the serialization processing has been described in detail in the first and second embodiments, and is not described herein again.
After the data content sequence is found, the data content sequence can be deserialized to analyze the content data and the interface data from the data content sequence.
Step 503, displaying the interface data and the content data of the application data.
According to the embodiment of the application data display method and device, the application data label is obtained according to the selection of the user, the content data corresponding to the application data label and the interface data comprising the visual elements are recovered, and the interface data and the content data of the application data are displayed to the user, so that the user can browse the application data conveniently.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
EXAMPLE six
Corresponding to the sixth embodiment, the sixth embodiment of the application further provides a cross-application notification display device. Fig. 10 is a block diagram of a cross-application notification display apparatus according to a sixth embodiment of the present application, where the apparatus includes the following modules:
a notification obtaining module 601, configured to obtain an application notification from at least one application;
a first content sequence generating module 602, configured to generate a first content sequence according to a first notification content of the application notification; the first notification content meets a set serialization condition;
a second content sequence generating module 603, configured to serialize a second notification content of the application notification, and add the serialized second notification content to the first content sequence to obtain a second content sequence;
a notification display module 604, configured to display the application notification according to the second content sequence when the notification display request is received.
According to the embodiment of the application, the first content sequence is generated by the first notification content meeting the serialization condition in the application notification, and the second notification content not meeting the serialization condition is serialized into the first content sequence to form the second content sequence, so that the application notification can be completely reproduced to a user based on the second content sequence display application notification containing the complete notification content, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
EXAMPLE seven
Correspondingly to the second embodiment, the seventh embodiment of the application further provides a cross-application notification display device. Fig. 11 is a block diagram of a cross-application notification display apparatus according to a seventh embodiment of the present application, where the apparatus includes the following modules:
a notification obtaining module 701, configured to obtain an application notification from at least one application;
an original notification content extracting module 702, configured to extract original notification content corresponding to the application notification.
A setting type content extracting module 703, configured to extract at least one setting type of notification content from the original notification content as the second notification content.
A notification content removing module 704, configured to remove the second notification content from the original notification content as the first notification content.
A first content sequence generating module 705, configured to generate a first content sequence according to a first notification content of the application notification; the first notification content satisfies a set serialization condition.
A second content sequence generating module 706, configured to serialize the second notification content notified by the application, and add the serialized second notification content to the first content sequence to obtain a second content sequence.
A notification display module 707, configured to, when receiving a notification display request, display the application notification according to the second content sequence.
Optionally, the set-type content extracting module 703 may specifically include:
the calling instruction extracting submodule is used for extracting a calling instruction corresponding to the notification content of the at least one set type from the original notification content;
and the notification content acquisition submodule is used for acquiring the notification content of at least one set type according to the calling instruction.
Optionally, the apparatus may further comprise:
and the non-display content removing module is used for removing the notification content for non-display from the original notification content.
Optionally, the first content sequence generating module 705 may specifically include:
and the packaging submodule is used for calling a sequence processing function to serialize the first notification content and packaging the serialized first notification content to obtain the first content sequence.
Optionally, the first content sequence generating module 705 may further include:
a substitute content insertion sub-module for inserting substitute content of the second notification content at a set position of the first notification content; the replacement content is empty content.
Optionally, the second content sequence generating module 706 may specifically include:
and the sequence processing submodule is used for processing the second notification content into a content sequence which meets the cross-application transmission requirement.
Optionally, the notification display module 707 may specifically include:
the analysis submodule is used for analyzing the serialized second notification content and the first content sequence from the second content sequence;
the to-be-displayed content generation submodule is used for analyzing first notification content from the first content sequence and obtaining the notification content to be displayed of the application notification according to the first notification content and the second notification content;
and the notification display submodule is used for displaying the application notification according to the notification content to be displayed.
Optionally, the first notification content includes a substitute content of the second notification content, and the content to be presented generation sub-module may specifically include:
a substitute content search unit configured to search for substitute content of the second notification content in the first notification content;
and the content replacing unit is used for replacing the replacing content of the second notification content with the second notification content to obtain the notification content to be displayed of the application notification.
Optionally, the apparatus may further comprise:
and the identifier modification module is used for modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
Optionally, the serialization condition includes a data volume range, and the second notification content is a skip button, a skip button icon, and a background picture that are beyond the data volume range.
According to the embodiment of the application, aiming at an IPC mechanism for automatically converting data with large data volume into the address mark of the virtual memory space in the android system, the original background picture and the icon of the jump button in the application notification can be completely reproduced, the jump button is ensured to take effect, and the problems that the original background picture and the icon of the jump button in the application notification are lost and the jump button is invalid are avoided.
Moreover, since all the notification contents of the application notification are stored in the second content sequence, all the notification contents can be directly obtained from the application notification when the notification is reproduced, and the notification contents do not need to be searched according to the address mark of the virtual memory space, even if the notification is reproduced after a long time and the virtual memory interval is changed within the period of time, the notification can be reproduced according to the second content sequence which is stored persistently without being influenced by the change of the virtual memory interval, so that the persistent storage of the notification contents is realized.
Example eight
Corresponding to the third embodiment, the eighth embodiment of the application further provides a notification content packaging device. Fig. 12 is a block diagram of a notification content packaging apparatus according to an eighth embodiment of the present application, where the apparatus includes the following modules:
a notification acquisition module 801, configured to acquire an application notification from at least one application;
a first content sequence generating module 802, configured to generate a first content sequence according to the first notification content notified by the application; the first notification content meets a set serialization condition;
a second content sequence generating module 803, configured to serialize a second notification content notified by the application, and add the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
According to the embodiment of the application, a first content sequence is generated by a first notification content meeting a serialization condition in an application notification, and then a second notification content not meeting the serialization condition is serialized into the first content sequence to form a second content sequence. The second content sequence obtained by the encapsulation through the method comprises complete notification content. The application notification can be completely reproduced to the user according to the second content sequence display application notification, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
Example nine
Corresponding to the fourth embodiment, the ninth embodiment of the application further provides a notification display device. Fig. 13 is a block diagram of a notification display apparatus according to a ninth embodiment of the present application, where the apparatus includes the following modules:
a notification obtaining module 901, configured to obtain an application notification;
a first package file generating module 902, configured to generate a first package file according to the non-target notification content of the application notification;
a second package file generating module 903, configured to add the target notification content of the application notification to the first package file to obtain a second package file;
a notification display module 904, configured to display the application notification according to the second package file.
According to the embodiment of the application, the non-target notification content in the application notification is packaged into the first packaged file, and then the target notification content is added to the first packaged file to obtain the second packaged file. The second encapsulated file obtained by encapsulating through the method comprises complete notification content. According to the second package file display application notification, the application notification can be reproduced to the user completely, and the problems that important information in the original application notification is lost and the user cannot obtain the complete application notification in the prior art are solved.
Example ten
Corresponding to the fifth embodiment, a tenth embodiment of the present application further provides a data recovery device. Fig. 14 is a block diagram of a data recovery apparatus according to a tenth embodiment of the present application, where the apparatus includes the following modules:
a tag obtaining module 1001 configured to obtain at least one application data tag according to a user selection;
a data recovery module 1002, configured to recover application data corresponding to the application data tag, where the application data includes content data and interface data, and the interface data includes a visualization element;
and a data display module 1003, configured to display the interface data and the content data of the application data.
Optionally, the application data tag includes: and (4) application notification.
Optionally, the data recovery module 1002 may specifically include:
the data content sequence submodule is used for acquiring a data content sequence corresponding to the application data label;
and the deserializing sub-module is used for deserializing the data content sequence to obtain the content data and the interface data.
According to the embodiment of the application data display method and device, the application data label is obtained according to the selection of the user, the content data corresponding to the application data label and the interface data comprising the visual elements are recovered, and the interface data and the content data of the application data are displayed to the user, so that the user can browse the application data conveniently.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
EXAMPLE eleven
Embodiments of the disclosure may be implemented as a system using any suitable hardware, firmware, software, or any combination thereof, in a desired configuration. Fig. 15 schematically illustrates an exemplary system 1100 that can be used to implement various embodiments described in this disclosure.
For one embodiment, fig. 15 illustrates an exemplary system 1100 having one or more processors 1102, a system control module (chipset) 1104 coupled to at least one of the one or more processors 1102, system memory 1106 coupled to the system control module 1104, non-volatile memory (NVM)/storage 1108 coupled to the system control module 1104, one or more input/output devices 1110 coupled to the system control module 1104, and a network interface 1112 coupled to the system control module 1106.
The processor 1102 may include one or more single-core or multi-core processors, and the processor 1102 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the system 1100 can function as a browser as described in embodiments herein.
In some embodiments, system 1100 may include one or more computer-readable media (e.g., system memory 1106 or NVM/storage 1108) having instructions and one or more processors 1102 that, in conjunction with the one or more computer-readable media, are configured to execute the instructions to implement modules to perform the actions described in this disclosure.
For one embodiment, the system control module 1104 may include any suitable interface controller to provide any suitable interface to at least one of the one or more processors 1102 and/or any suitable device or component in communication with the system control module 904.
The system control module 1104 may include a memory controller module to provide an interface to the system memory 1106. The memory controller module may be a hardware module, a software module, and/or a firmware module.
System memory 1106 may be used to load and store data and/or instructions for system 1100, for example. For one embodiment, system memory 1106 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 1106 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 1104 may include one or more input/output controllers to provide an interface to NVM/storage 1108 and one or more input/output devices 1110.
For example, NVM/storage 1108 may be used to store data and/or instructions. NVM/storage 1108 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 1108 may include storage resources that are physically part of the device on which system 1100 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 1108 may be accessed over a network via input/output device(s) 1110.
Input/output device(s) 1110 may provide an interface for system 1100 to communicate with any other suitable device, input/output device(s) 1110 may include communication components, audio components, sensor components, and so forth. Network interface 1112 may provide an interface for system 1100 to communicate over one or more networks, and system 1100 may communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as to access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
For one embodiment, at least one of the one or more processors 1102 may be packaged together with logic for one or more controllers (e.g., memory controller modules) of system control module 1104. For one embodiment, at least one of the processor(s) 1102 may be packaged together with logic for one or more controller(s) of system control module 1104 to form a System In Package (SiP). For one embodiment, at least one of the one or more processors 1102 may be integrated on the same die with logic for one or more controllers of system control module 1104. For one embodiment, at least one of the processor(s) 1102 may be integrated on the same die with logic for one or more controller(s) of system control module 1104 to form a system on chip (SoC).
In various embodiments, system 1100 may be, but is not limited to being: a browser, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 1100 may have more or fewer components and/or different architectures. For example, in some embodiments, system 1100 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
Wherein, if the display includes a touch panel, the display screen may be implemented as a touch screen display to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The present application further provides a non-volatile readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a terminal device, the one or more modules may cause the terminal device to execute instructions (instructions) of method steps in the present application.
In one example, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to the embodiments of the present application when executing the computer program.
There is also provided in one example a computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a method as one or more of the embodiments of the application.
The embodiment of the application discloses a cross-application notification display method and device, a notification content packaging method and device, a notification display method and device, a data recovery method and device, computer equipment and a computer readable storage medium.
Example 1 includes a cross-application notification exposure method, comprising:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
and when a notification display request is received, displaying the application notification according to the second content sequence.
Example 2 may include the method of example 1, wherein prior to the generating a first content sequence from first notification content of the application notification, the method further comprises:
extracting original notification content corresponding to the application notification;
and extracting at least one set type of notification content from the original notification content as the second notification content.
Example 3 may include the method of example 2, wherein the method further comprises:
and taking the part of the original notification content excluding the second notification content as the first notification content.
Example 4 may include the method of example 2, wherein the extracting at least one set type of notification content from the original notification content as the second notification content comprises:
extracting a calling instruction corresponding to the at least one set type of notification content from the original notification content;
and acquiring the notification content of the at least one set type according to the calling instruction.
Example 5 may include the method of example 2, wherein prior to the extracting at least one set type of notification content from the original notification content as the second notification content, the method further comprises:
removing non-presentation notification content from the original notification content.
Example 6 may include the method of example 1, wherein the generating a first content sequence from first notification content of the application notification includes:
and calling a sequence processing function to serialize the first notification content and package the serialized first notification content to obtain the first content sequence.
Example 7 may include the method of example 6, wherein, prior to the calling the sequence elaboration function to serialize the first notification content and to encapsulate the serialized first notification content, the generating a first content sequence from the first notification content of the application notification further comprises:
inserting the replacement content of the second notification content into the set position of the first notification content; the replacement content is empty content.
Example 8 may include the method of example 1, wherein the serializing the second notification content of the application notification includes:
and processing the second notification content into a content sequence which meets the cross-application transmission requirement.
Example 9 may include the method of example 1, wherein the presenting the application notification according to the second content sequence includes:
parsing the second content sequence into a second sequence of serialized notification content and the first content sequence;
analyzing a first notification content from the first content sequence, and obtaining a notification content to be displayed of the application notification according to the first notification content and the second notification content;
and displaying the application notification according to the notification content to be displayed.
Example 10 may include the method of example 9, wherein the first notification content includes content that is a replacement for the second notification content, and obtaining the notification content to be presented by the application notification according to the first notification content and the second notification content includes:
searching the first notification content for replacement content of the second notification content;
and replacing the replacement content of the second notification content with the second notification content to obtain notification content to be displayed of the application notification.
Example 11 may include the method of example 9, wherein prior to the presenting the application notification in accordance with the notification content to be presented, the method further comprises:
and modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
Example 12 may include the method of example 1, wherein the serialization condition includes a data volume range, and the second notification content is a skip button, a skip button icon, and a background picture that are beyond the data volume range.
Example 13 may include a notification content packaging method, comprising:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
Example 14 may include a notification presentation method, comprising:
acquiring an application notification;
generating a first packaging file according to the non-target notification content of the application notification;
adding the target notification content of the application notification to the first packaged file to obtain a second packaged file;
and displaying the application notification according to the second packaging file.
Example 15 may include a data recovery method, comprising:
acquiring at least one application data tag according to user selection;
restoring application data corresponding to the application data label, wherein the application data comprises content data and interface data, and the interface data comprises a visual element;
and displaying the interface data and the content data of the application data.
Example 16 may include the method of example 15, wherein the application data tag includes an application notification.
Example 17 may include the method of example 15, wherein the restoring application data corresponding to the application data tag includes:
acquiring a data content sequence corresponding to the application data label;
and performing deserialization processing on the data content sequence to obtain the content data and the interface data.
Example 18 may include a cross-application notification presentation apparatus comprising:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
and the notification display module is used for displaying the application notification according to the second content sequence when receiving a notification display request.
Example 19 may include the apparatus of example 18, wherein the apparatus further comprises:
and the original notification content extraction module is used for extracting the original notification content corresponding to the application notification.
And the setting type content extraction module is used for extracting at least one setting type of notification content from the original notification content as the second notification content.
Example 20 may include the apparatus of example 19, wherein the apparatus further comprises:
and the notification content removing module is used for removing the part of the second notification content in the original notification content as the first notification content.
Example 21 may include the apparatus of example 19, wherein the set-type content extraction module may specifically include:
the calling instruction extracting sub-module is used for extracting a calling instruction corresponding to the notification content of the at least one set type from the original notification content;
and the notification content acquisition submodule is used for acquiring the notification content of at least one set type according to the calling instruction.
Example 22 may include the apparatus of example 19, wherein the apparatus may further include:
and the non-display content removing module is used for removing the notification content for non-display from the original notification content.
Example 23 may include the apparatus of example 19, wherein the first content sequence generation module may specifically include:
and the packaging submodule is used for calling a sequence processing function to serialize the first notification content and packaging the serialized first notification content to obtain the first content sequence.
Example 24 may include the apparatus of example 23, wherein the first content sequence generation module may further include:
a substitute content insertion sub-module for inserting substitute content of the second notification content at a set position of the first notification content; the replacement content is empty content.
Example 25 may include the apparatus of example 18, wherein the second content sequence generation module may specifically include:
and the sequence processing submodule is used for processing the second notification content into a content sequence which meets the cross-application transmission requirement.
Example 26 may include the apparatus of example 18, wherein the notification presentation module may specifically include:
the analysis submodule is used for analyzing the serialized second notification content and the first content sequence from the second content sequence;
the content to be displayed generating submodule is used for analyzing first notification content from the first content sequence and obtaining the notification content to be displayed of the application notification according to the first notification content and the second notification content;
and the notification display submodule is used for displaying the application notification according to the notification content to be displayed.
Example 27 may include the apparatus of example 26, wherein the first notification content includes substitute content of the second notification content, and the to-be-presented content generating sub-module may specifically include:
a substitute content search unit configured to search for substitute content of the second notification content in the first notification content;
and the content replacing unit is used for replacing the replacing content of the second notification content with the second notification content to obtain the notification content to be displayed of the application notification.
Example 28 may include the apparatus of example 26, wherein the apparatus may further include:
and the identifier modification module is used for modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
Example 29 may include the apparatus of example 18, wherein the serialization condition includes a data volume range, and the second notification content is a skip button, a skip button icon, and a background picture that are beyond the data volume range.
Example 30 may include a notification content packaging apparatus, comprising:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification and adding the serialized second notification content to the first content sequence to obtain a second content sequence; and the second content sequence is used as a basis for displaying the application notification when a notification display request is received.
Example 31 may include a notification presentation device comprising:
the notification acquisition module is used for acquiring application notifications;
the first encapsulated file generating module is used for generating a first encapsulated file according to the non-target notification content of the application notification;
the second encapsulated file generation module is used for adding the target notification content of the application notification to the first encapsulated file to obtain a second encapsulated file;
and the notification display module is used for displaying the application notification according to the second packaging file.
Example 32 may include a data recovery apparatus comprising:
the tag acquisition module is used for acquiring at least one application data tag according to user selection;
the data recovery module is used for recovering application data corresponding to the application data label, wherein the application data comprises content data and interface data, and the interface data comprises visual elements;
and the data display module is used for displaying the interface data and the content data of the application data.
Example 33 may include the apparatus of example 32, wherein the application data tag includes an application notification.
Example 34 may include the apparatus of example 32, wherein the data recovery module may specifically include:
the data content sequence submodule is used for acquiring a data content sequence corresponding to the application data label;
and the deserializing sub-module is used for deserializing the data content sequence to obtain the content data and the interface data.
Example 35, a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of one or more of examples 1-17 when executing the computer program.
Example 36, a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of one or more of examples 1-17.
Although certain examples have been illustrated and described for purposes of description, a wide variety of alternate and/or equivalent implementations, or calculations, may be made to achieve the same objectives without departing from the scope of practice of the present application. This application is intended to cover any adaptations or variations of the embodiments discussed herein. Therefore, it is manifestly intended that the embodiments described herein be limited only by the claims and the equivalents thereof.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

Claims (18)

1. A cross-application notification presentation method, the method comprising:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
when a notification display request is received, displaying the application notification according to the second content sequence;
the serialization condition comprises a data volume range, and the second notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
2. The method of claim 1, wherein prior to the generating a first content sequence from first notification content of the application notification, the method further comprises:
extracting original notification content corresponding to the application notification;
and extracting at least one set type of notification content from the original notification content as the second notification content.
3. The method of claim 2, further comprising:
and taking the part of the original notification content excluding the second notification content as the first notification content.
4. The method according to claim 2, wherein the extracting at least one set type of notification content from the original notification content as the second notification content comprises:
extracting a calling instruction corresponding to the at least one set type of notification content from the original notification content;
and acquiring the notification content of the at least one set type according to the calling instruction.
5. The method of claim 2, wherein prior to said extracting at least one set type of notification content from said original notification content as said second notification content, said method further comprises:
removing non-presentation notification content from the original notification content.
6. The method of claim 1, wherein generating the first content sequence according to the first notification content of the application notification comprises:
and calling a sequence processing function to serialize the first notification content and package the serialized first notification content to obtain the first content sequence.
7. The method of claim 6, wherein before the calling a sequence elaboration function to serialize the first notification content and encapsulate the serialized first notification content, the generating a first content sequence from the first notification content of the application notification further comprises:
inserting the replacement content of the second notification content into the set position of the first notification content; the replacement content is empty content.
8. The method of claim 1, wherein the serializing the second notification content of the application notification comprises:
processing the second notification content into a content sequence that conforms to cross-application transmission requirements.
9. The method of claim 1, wherein the presenting the application notification according to the second content sequence comprises:
parsing the second content sequence into a second sequence of serialized notification content and the first content sequence;
analyzing a first notification content from the first content sequence, and obtaining a notification content to be displayed of the application notification according to the first notification content and the second notification content;
and displaying the application notification according to the notification content to be displayed.
10. The method according to claim 9, wherein the first notification content includes a replacement content of the second notification content, and the obtaining the notification content to be presented of the application notification according to the first notification content and the second notification content comprises:
searching the first notification content for replacement content of the second notification content;
and replacing the replacement content of the second notification content with the second notification content to obtain notification content to be displayed of the application notification.
11. The method of claim 9, wherein prior to said presenting the application notification in accordance with the notification content to be presented, the method further comprises:
and modifying the notification sending identifier in the notification content to be displayed into a notification receiving identifier so as to ensure that the application from which the application notification comes is not displayed when the notification content to be displayed is loaded.
12. A notification presentation method, the method comprising:
obtaining an application notification from at least one application;
generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence; wherein the second content sequence is used as a basis for displaying the application notification when a notification display request is received;
the serialization condition comprises a data volume range, and the second notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
13. A notification content encapsulation method, the method comprising:
acquiring an application notification;
generating a first packaging file according to the non-target notification content of the application notification, wherein the non-target notification content meets the set serialization condition;
adding the target notification content of the application notification to the first packaged file to obtain a second packaged file;
displaying the application notification according to the second packaging file;
the serialization condition comprises a data volume range, and the target notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
14. An apparatus for presenting notifications across applications, the apparatus comprising:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification, and adding the serialized second notification content to the first content sequence to obtain a second content sequence;
the notification display module is used for displaying the application notification according to the second content sequence when a notification display request is received;
the serialization condition comprises a data volume range, and the second notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
15. A notification presentation device, the device comprising:
a notification acquisition module for acquiring an application notification from at least one application;
the first content sequence generating module is used for generating a first content sequence according to the first notification content of the application notification; the first notification content meets a set serialization condition;
the second content sequence generation module is used for serializing second notification content of the application notification and adding the serialized second notification content to the first content sequence to obtain a second content sequence; wherein the second content sequence is used as a basis for displaying the application notification when a notification display request is received;
the serialization condition comprises a data volume range, and the second notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
16. A notification content packaging apparatus, the apparatus comprising:
the notification acquisition module is used for acquiring application notifications;
the first encapsulated file generating module is used for generating a first encapsulated file according to the non-target notification content of the application notification; the non-target notification content meets a set serialization condition;
the second encapsulated file generation module is used for adding the target notification content of the application notification to the first encapsulated file to obtain a second encapsulated file;
the notification display module is used for displaying the application notification according to the second packaging file;
the serialization condition comprises a data volume range, and the target notification content comprises a jump button, a jump button icon and a background picture which exceed the data volume range.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to one or more of claims 1-13 when executing the computer program.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to one or more of claims 1-13.
CN201710797865.9A 2017-09-06 2017-09-06 Cross-application notification display and notification content packaging method and device Active CN109460304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710797865.9A CN109460304B (en) 2017-09-06 2017-09-06 Cross-application notification display and notification content packaging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710797865.9A CN109460304B (en) 2017-09-06 2017-09-06 Cross-application notification display and notification content packaging method and device

Publications (2)

Publication Number Publication Date
CN109460304A CN109460304A (en) 2019-03-12
CN109460304B true CN109460304B (en) 2022-06-03

Family

ID=65606166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710797865.9A Active CN109460304B (en) 2017-09-06 2017-09-06 Cross-application notification display and notification content packaging method and device

Country Status (1)

Country Link
CN (1) CN109460304B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981884A (en) * 2012-11-22 2013-03-20 用友软件股份有限公司 Serializing device and serializing method
CN103995707A (en) * 2014-06-11 2014-08-20 腾讯科技(深圳)有限公司 Method, device and terminal device for processing application notification message
CN105094791A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Status bar notification storage method and status bar notification storage device
CN106056530A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Method and device for displaying picture content in application
CN106570018A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Serialization method and apparatus, deserialization method and apparatus, serialization and deserialization system, and electronic device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627578B2 (en) * 2004-09-01 2009-12-01 International Business Machines Corporation Apparatus, system, and method for file system serialization reinitialization
US20100325227A1 (en) * 2009-06-23 2010-12-23 Alon Novy Systems and methods for composite data message
CN104683472A (en) * 2015-03-12 2015-06-03 浪潮集团有限公司 Data transmission method capable of supporting large data volume
CN106453213B (en) * 2015-08-11 2019-09-17 阿里巴巴集团控股有限公司 Call method and device between a kind of system
CN105468364B (en) * 2015-11-19 2019-07-23 北京奇虎科技有限公司 The processing method and mobile terminal of the notification message of application program
CN105577777B (en) * 2015-12-18 2019-12-13 腾讯科技(深圳)有限公司 message processing method, device and system
CN106095453B (en) * 2016-06-16 2019-12-24 北京金山安全软件有限公司 Information display method and device and electronic equipment
CN108366169B (en) * 2018-01-30 2020-04-03 维沃移动通信有限公司 Notification message processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981884A (en) * 2012-11-22 2013-03-20 用友软件股份有限公司 Serializing device and serializing method
CN105094791A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Status bar notification storage method and status bar notification storage device
CN103995707A (en) * 2014-06-11 2014-08-20 腾讯科技(深圳)有限公司 Method, device and terminal device for processing application notification message
CN106570018A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Serialization method and apparatus, deserialization method and apparatus, serialization and deserialization system, and electronic device
CN106056530A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Method and device for displaying picture content in application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Performance evaluation of object serialization libraries in XML, JSON and binary formats;K. Maeda;《2012 Second International Conference on Digital Information and Communication Technology and it"s Applications (DICTAP)》;20120614;第177-182页 *
将Android平台的RIL层移植到基于LINUX的通用平台的研究与实现;赵国强等;《电子世界》;20130530(第10期);第9-10页 *

Also Published As

Publication number Publication date
CN109460304A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
US20240095043A1 (en) Execution of sub-application processes within application program
US20140222947A1 (en) Method and apparatus for browsings webpages, and storage medium
CN106528587B (en) Page display method and device in composite webpage system
CN110019464B (en) Page processing method and device
CN110865837B (en) Method and terminal for system upgrade
EP3340155A1 (en) Electronic device and method for displaying web page using the same
CN105487640A (en) Image pre-loading and caching method of Android watch
WO2019052417A1 (en) Page loading method and apparatus, electronic device and storage medium
CN111158820A (en) Control click event processing method and device, electronic equipment and storage medium
CN113835571A (en) Terminal device, information display method and storage medium
CN111444453A (en) Page return data processing method and device
CN112347404A (en) SPA page rendering method, device and system and storage medium
CN111314445A (en) Method and device for controlling recycling machine to open door by mobile phone
CN109460304B (en) Cross-application notification display and notification content packaging method and device
CN110569460B (en) Push information display method, push information display device and storage medium
US20160301736A1 (en) Systems and methods for providing remote access to an application
CN109558186B (en) Page display method and device
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN111083145A (en) Message sending method and device and electronic equipment
CN110008423B (en) Off-line processing method of dynamic webpage, output terminal and storage medium
US11176634B2 (en) Methods and devices of picture processing based on external storage device and user interface display
CN105573705A (en) Display control method and terminal
CN115955557A (en) Kadun analysis method and device thereof
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
CN114048048A (en) Information sharing method and device, electronic equipment and storage medium

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