Information icon generation method and device, electronic device and storage medium

By detecting message push data in mobile terminal applications, filtering and generating information icons, and displaying them in the icon position of the App, it solves the problem that users find it difficult to quickly obtain App information, and improves the convenience of information acquisition.

CN117348774BActive Publication Date: 2025-02-07SHENZHEN ZHONGHONG ONLINE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311209939.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2025-02-07
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

In an era of surge in mobile terminal applications, it is difficult for users to quickly obtain App information, especially due to the reduced convenience caused by App initialization and network delay.

Method used

By detecting that the target application receives the message push data, deserialization and analysis are performed, the push content of the target type is filtered out, and the preset icons are used to draw parameters to generate information icons and displayed in the icon position of the App.

Benefits of technology

This enables users to understand the push information received by the App without entering the App, and improves the convenience of information acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117348774B_ABST
    Figure CN117348774B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an information icon generation method and device, an electronic device and a storage medium, which belong to the field of information carriers. The method includes: in response to detecting that a target application has received message push data, deserializing and parsing the message push data to obtain parsed data, determining the type of candidate push content in the parsed data, and obtaining the content type. Select candidate push content with a content type of the target type from multiple candidate push contents to obtain candidate display push content. The candidate push field information in the candidate display push content includes a field name and a field content, and the field content with a field name of a preset target field is selected from multiple candidate push field information to obtain the target display text content. Using the preset first icon drawing parameters, an icon is drawn for the target display text content to obtain and display the target display content icon. The embodiments of the present application can improve the convenience of obtaining App information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information carriers, and in particular to an information icon generation method and device, an electronic device and a storage medium. Background Art

[0002] In today's era of rapid growth in the number of mobile terminal applications and a fast-paced life, people's need for quick access to information has become increasingly urgent. Currently, most of the information data in the App requires entering the App to obtain the desired information, and a simple message reminder may be less convenient to obtain information due to factors such as App initialization and network delays. Therefore, how to allow users to quickly and easily obtain App information without entering the App has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose an information icon generation method and device, an electronic device and a storage medium, aiming to improve the convenience for users to obtain App information.

[0004] To achieve the above object, a first aspect of an embodiment of the present application provides a method for generating an information icon, the method comprising:

[0005] In response to detecting that the target application receives the message push data, deserializing and parsing the message push data to obtain parsed data; wherein the parsed data includes a plurality of candidate push contents;

[0006] Determine the type of the candidate push content and obtain the content type;

[0007] Selecting the candidate push content whose content type is the target type from multiple candidate push content to obtain candidate display push content; wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content;

[0008] Selecting the field content whose field name is a preset target field from the plurality of candidate push field information to obtain the target display text content;

[0009] Using a preset first icon drawing parameter, drawing an icon for the target display text content to obtain a target display content icon;

[0010] The target presentation content icon is displayed at the icon display position of the target application.

[0011] According to some embodiments of the present invention, after selecting the candidate push content whose content type is the target type from the plurality of candidate push content to obtain the candidate display push content, the method further includes:

[0012] Selecting the candidate push content whose content type is a secondary target type from the plurality of candidate push content to obtain secondary candidate display push content;

[0013] Extract keywords from the secondary candidate display push content to obtain secondary target display text content;

[0014] Using the preset second icon drawing parameters, drawing an icon for the secondary target display text content to obtain a secondary target display content icon;

[0015] The step of displaying the target display content icon at the icon display position of the target application includes:

[0016] The target display content icon is displayed at the icon display position of the target application, and the sub-target display content icon is displayed every predetermined first period and maintained for a predetermined period of time.

[0017] According to some embodiments of the present invention, the target type is determined by:

[0018] Obtain the type of the target application to obtain the application type;

[0019] The target type is determined according to the application type and a preset type mapping relationship.

[0020] According to some embodiments of the present invention, the first icon drawing parameter includes an icon size of a target display content icon, and the icon size is determined by:

[0021] Acquire device information of the device where the target application is located; wherein the device information includes screen size and screen density;

[0022] Determine a first size based on the screen size and a preset first mapping function; wherein the first mapping function is an increasing function;

[0023] Determine a second size based on the screen density and a preset second mapping function; wherein the second mapping function is an increasing function;

[0024] The icon size is determined based on the first size and the second size.

[0025] According to some embodiments of the present invention, the first icon drawing parameters include: multiple lines of font parameters, icon background color, and icon style parameters, wherein the multiple lines of font parameters decrease line by line;

[0026] The step of drawing an icon for the target display text content by using a preset first icon drawing parameter to obtain a target display content icon includes:

[0027] Get a blank bitmap with the size of the icon;

[0028] If the total number of characters in the target displayed text content exceeds the preset number of characters, the text content is segmented every the preset number of characters to obtain multiple lines of segmented text content;

[0029] Adjusting the fonts of the multiple lines of segmented text content based on the multiple lines of font parameters to obtain multiple lines of adjusted text content;

[0030] Loading the icon background color and the multiple lines of adjusted text content into the blank bitmap to obtain the original icon bitmap;

[0031] Style drawing is performed on the original icon bitmap according to the icon style parameters to obtain the target display content icon.

[0032] According to some embodiments of the present invention, after displaying the target display content icon at the icon display position of the target application, the method further includes:

[0033] Obtaining a link corresponding to the candidate display push content to obtain a push link;

[0034] The push link is overlaid on the target display content icon.

[0035] According to some embodiments of the present invention, after overlaying the push link on the target display content icon, the method further includes:

[0036] Every predetermined second period, detecting the triggering state of the push link;

[0037] In response to the triggering status being triggered, the target application is opened and the page corresponding to the push link is jumped to.

[0038] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides an information icon generating device, the device comprising:

[0039] A parsing module, configured to, in response to detecting that a target application has received the message push data, deserialize and parse the message push data to obtain parsed data; wherein the parsed data includes a plurality of candidate push contents;

[0040] A type determination module, used to determine the type of the candidate push content and obtain the content type;

[0041] A content screening module, used to select the candidate push content whose content type is the target type from multiple candidate push content, and obtain candidate display push content; wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content;

[0042] A text screening module, used to select the field content whose field name is a preset target field from the plurality of candidate push field information, and obtain the target display text content;

[0043] An icon drawing module, used to draw an icon for the target display text content using a preset first icon drawing parameter to obtain a target display content icon;

[0044] The display module is used to display the target display content icon at the icon display position of the target application.

[0045] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0046] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0047] The information icon generation method and device, electronic device and storage medium proposed in the present application, in response to detecting that the target application receives the message push data, deserialize and parse the message push data to obtain the parsed data, wherein the parsed data includes multiple candidate push contents. Then determine the type of the candidate push content to obtain the content type, and select the candidate push content with the content type of the target type from the multiple candidate push contents to obtain the candidate display push content, wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes the field name and the field content. Select the field content with the field name as the preset target field from the multiple candidate push field information to obtain the target display text content, and then use the preset first icon drawing parameter to draw the icon of the target display text content to obtain the target display content icon. At the icon display position of the target application, the target display content icon is displayed to update the current icon of the target application to the target display content icon. Therefore, after content screening according to the type of the push content, the candidate display push content is obtained, and then the multiple candidate push field information is screened by the preset target field to obtain the target display text content, and the target display content icon is drawn and displayed. As a result, users can learn about the push information received by the target application through the displayed content of the icon without having to enter the target application, thereby improving the convenience of users in obtaining information. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of the information icon generation method provided by an embodiment of the present application;

[0049] Figure 2 is a flow chart of an information icon generation method provided by another embodiment of the present application;

[0050] Figure 3 is a flow chart of an information icon generation method provided by another embodiment of the present application;

[0051] Figure 4 is a flow chart of an information icon generation method provided by another embodiment of the present application;

[0052] Figure 5 yes Figure 1 Flow chart of step S105 in FIG.

[0053] Figure 6 is a flow chart of an information icon generation method provided by another embodiment of the present application;

[0054] Figure 7 is a flow chart of an information icon generation method provided by another embodiment of the present application;

[0055] Figure 8is a structural schematic diagram of an information icon generating device provided in an embodiment of the present application;

[0056] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0060] In today's era of rapid growth in the number of mobile applications and fast pace of life, people's demand for quick access to information has become more and more urgent. Various apps provide rich and diverse content and functions to meet our diverse needs. These applications not only provide a large amount of information resources, but also can quickly present relevant content according to the interests and needs of users through intelligent push and personalized customization, providing users with a more efficient and convenient experience. However, some information data of the current App needs to enter the App to obtain the required information, and a simple message reminder will increase the cost of obtaining information due to factors such as App initialization and network delay. Therefore, the present invention is to use the desktop App icon as a carrier for information display, so that users can know whether it is the information they care about without entering the App, such as new message reminders for a specific person or group of instant messaging, data updates of a module in the App, etc., thereby greatly saving the user's time. Therefore, how to allow users to quickly and easily obtain App information without entering the App has become a technical problem that needs to be solved urgently.

[0061] Based on this, the embodiments of the present application provide a method and device for generating an information icon, an electronic device, and a storage medium, aiming to improve the convenience for users to obtain App information.

[0062] The information icon generation method and device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the information icon generation method in the embodiments of the present application is described.

[0063] The information icon generation method provided in the embodiment of the present application relates to the field of information carriers. The information icon generation method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the information icon generation method, etc., but is not limited to the above forms.

[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0065] Figure 1 is an optional flow chart of the information icon generation method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S106.

[0066] Step S101, in response to detecting that the target application receives the message push data, deserializing and parsing the message push data to obtain parsed data, wherein the parsed data includes a plurality of candidate push contents;

[0067] Step S102, determining the type of the candidate push content and obtaining the content type;

[0068] Step S103, selecting candidate push content whose content type is the target type from multiple candidate push content to obtain candidate display push content, wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content;

[0069] Step S104, selecting the field content whose field name is a preset target field from the plurality of candidate push field information, and obtaining the target display text content;

[0070] Step S105, using a preset first icon drawing parameter, drawing an icon for the target display text content to obtain a target display content icon;

[0071] Step S106: displaying the target display content icon at the icon display position of the target application.

[0072] Steps S101 to S106 shown in the embodiment of the present application are, in response to detecting that the target application has received the message push data, deserializing and parsing the message push data to obtain parsed data, wherein the parsed data includes multiple candidate push contents. Then determine the type of the candidate push content to obtain the content type, and select the candidate push content with the target type as the content type from the multiple candidate push contents to obtain the candidate display push content, wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content. Select the field content with the field name as the preset target field from the multiple candidate push field information to obtain the target display text content, and then use the preset first icon drawing parameter to draw an icon for the target display text content to obtain the target display content icon. Display the target display content icon at the icon display position of the target application. Therefore, after content screening according to the type of pushed content, candidate display push content is obtained, and then multiple candidate push field information is screened through the preset target field to obtain the target display text content, and the target display content icon is drawn and displayed, so that the user does not need to enter the target application, but can understand the push information received by the target application through the display content of the icon, thereby improving the convenience of users in obtaining information.

[0073] In step S101 of some embodiments, the target application may be a desktop icon application of different devices, such as a computer desktop application, a mobile device software, etc. For the sake of simplicity, the target application in the subsequent embodiments takes a mobile phone App as an example, which is not a limitation on the technical solution of this embodiment.

[0074] It should be noted that by establishing a long Socket link between the App and the backend for passive query, it is used to detect in real time whether the App has received the push information, so that when there is a business message change inside the App, the candidate database can actively push the relevant message to the front-end App, so that the App can obtain the latest data changes in the first place, thereby improving the real-time nature of message push. And the App does not need to frequently initiate business query requests to the backend. Compared with the traditional active polling method, this passive query method can greatly reduce unnecessary network requests, thereby reducing the pressure on the server, and also saving the power consumption of the user's mobile phone.

[0075] It should be noted that after the front-end App receives the message push data pushed from the back-end, it needs to deserialize and parse the message push data to obtain a readable data format. Since the message push data obtained from the back-end is usually compressed and encoded binary data, it needs to be converted into a readable text format to facilitate subsequent data processing and display.

[0076] It should be further explained that in the deserialization and parsing process, efficient data decoding technologies such as MessagePack are used. These encoding methods have higher parsing speeds and smaller data volumes, thereby further improving the efficiency of data processing.

[0077] In step S102 of some embodiments, the content type field information of each candidate push content can be traversed to determine the content type field information of each candidate push content among multiple candidate push contents, thereby determining the type of the candidate push content, and quickly and accurately determining the content type of each candidate push content. The types of multiple candidate push contents can also be determined by other methods, which are not limited here.

[0078] In step S103 of some embodiments, the candidate push content with the target content type can be selected from multiple candidate push content by keyword matching technology, so as to quickly and accurately screen out the candidate display push content with the target content type. The candidate display push content with the target content type can also be screened out by other methods, which are not limited here.

[0079] After step S103 in some embodiments, the information icon generation method further includes: a sub-target display content icon generation step. In the process of screening the icon display content of the information icon generation method, since the static icon can display less content, the content required by the user will exceed the limit of the static icon display content. Therefore, through the sub-target display content icon generation step, the sub-target display content will be screened out, and the sub-target display content icon will be generated and intermittently displayed on the app icon to achieve more diverse information display.

[0080] See also Figure 2 In some embodiments, the step of generating the secondary target display content icon may include but is not limited to steps S201 to S204:

[0081] Step S201, selecting candidate push content whose content type is a secondary target type from multiple candidate push content to obtain secondary candidate display push content;

[0082] Step S202, extracting keywords from the secondary candidate display push content to obtain the secondary target display text content;

[0083] Step S203, using the preset second icon drawing parameters, drawing an icon for the secondary target display text content to obtain a secondary target display content icon;

[0084] Step S204: displaying a target display content icon at the icon display position of the target application, and displaying a secondary target display content icon every predetermined first period, and maintaining the display for a predetermined period of time.

[0085] In step S201 of some embodiments, the secondary target type can be a content type field pre-set by the user, or a secondary target content field determined according to the application type of the app. By keyword matching, the secondary candidate display push content whose content field matches the secondary target content field can be quickly screened out from multiple candidate push content.

[0086] In step S202 of some embodiments, keywords are extracted from the secondary candidate display push content according to the preset content word count requirement and keyword library to obtain secondary target display text content that meets the content word count requirement and can reflect the key information of the secondary push content.

[0087] In step S203 of some embodiments, the pre-set second icon drawing parameters include: sub-icon size and sub-icon font parameters, sub-icon background color, and sub-icon style parameters of the sub-target display content icon. The second icon drawing parameters and the sub-target display text content are input into a third-party mapping tool, and an icon is drawn for the sub-target display text content to obtain a sub-target display content icon that can clearly display the sub-target display content.

[0088] In step S204 of some embodiments, the predetermined first cycle and the predetermined time period can be set to 5 seconds or 10 seconds, but are not limited thereto. At the icon display position of the target application, the target display content icon is displayed, and every predetermined first cycle, the secondary target display content icon is displayed, and the predetermined time period is maintained so that the secondary target display content icon and the target display content icon are displayed alternately.

[0089] In steps S201 to S204 shown in the embodiment of the present application, sub-target display content is screened out through preset content word count requirements and keyword library, and then a sub-target display content icon is generated according to the second icon drawing parameters and the sub-target display content, and is intermittently displayed on the app icon to achieve more diversified information display.

[0090] See also Figure 3 In some embodiments, in step S103, the target type determination step may include but is not limited to steps S301 to S302:

[0091] Step S301, obtaining the type of the target application and obtaining the application type;

[0092] Step S302: Determine the target type according to the application type and the preset type mapping relationship.

[0093] In step S301 of some embodiments, the application type of the target application can be obtained by obtaining historical application data of the target application and performing data analysis on the historical application data. The type evaluation report of the target application can also be obtained through third-party software to analyze and obtain the application type of the target application, but is not limited thereto.

[0094] In step S302 of some embodiments, the type mapping relationship is a mapping relationship between the application type of the target application and the target type. For example, the target type mapped by communication software such as QQ and WeChat is a high timeliness type, while the target type mapped by content software such as notepad and photo album is a low timeliness type.

[0095] Steps S301 to S302 shown in the embodiment of the present application obtain the type of the target application to obtain the application type, and then determine the target type based on the application type and the preset type mapping relationship, so as to determine the target type of the message content to be displayed based on the application type of the target application.

[0096] In step S104 of some embodiments, the target field may be set by the user or may be a field content customized by the target application, but is not limited thereto. The field content of the preset target field is selected from the plurality of candidate push field information to obtain the target display text content that the user cares about.

[0097] See also Figure 4 In some embodiments, the first icon drawing parameter includes the icon size of the target display content icon. The method for determining the icon size may include but is not limited to steps S401 to S404:

[0098] Step S401, obtaining device information of the device where the target application is located, wherein the device information includes screen size and screen density;

[0099] Step S402, determining a first size based on the screen size and a preset first mapping function, wherein the first mapping function is an increasing function;

[0100] Step S403, determining a second size based on the screen density and a preset second mapping function, wherein the second mapping function is an increasing function;

[0101] Step S404: determine the icon size based on the first size and the second size.

[0102] In step S401 of some embodiments, device information of the device where the target application is located may be obtained by obtaining a device information character string of the target application, wherein the device information includes a screen size and a screen density.

[0103] It should be noted that when icons are displayed on a device screen, the larger the screen size, the more icons of the same size can be accommodated on the device screen. If the screen density is higher, the more icons of the same size can be accommodated on the device screen.

[0104] In step S402 of some embodiments, the first mapping function is a function of a mapping relationship between the screen size and the first size, and the first size is determined based on the screen size and the first mapping function to reflect the basic display size of the icon. The first mapping function is an increasing function to ensure that the larger the screen size, the more icons of the same size can be accommodated on the device screen.

[0105] In step S403 of some embodiments, the second mapping function is a function of the mapping relationship between the screen density and the second size, and the second size is determined based on the screen density and the second mapping function to reflect the displayable size of the icon under the current screen density. The second mapping function is an increasing function to ensure that the greater the screen density, the more icons of the same size can be accommodated on the device screen.

[0106] In step S404 of some embodiments, the first icon size is calculated according to a preset first weight based on the first size, and the second icon size is calculated according to a preset second weight based on the second size, and finally the first icon size and the second icon size are summed to obtain the icon size.

[0107] It should be noted that after the icon sizes are generated multiple times, the display effect of the icon sizes is detected to adjust the first weight and the second weight so that the target display content can be clearly displayed on the target display content icon.

[0108] Steps S401 to S404 shown in the embodiment of the present application are performed by obtaining device information of the device where the target application is located, wherein the device information includes screen size and screen density, and then determining the first size based on the screen size and the first mapping function, wherein the first mapping function is an increasing function. The second size is determined based on the screen density and the second mapping function, wherein the second mapping function is an increasing function. Finally, the icon size is determined based on the first size and the second size as well as the first weight and the second weight, so that the target display content can be clearly displayed on the target display content icon.

[0109] See also Figure 5 In some embodiments, step S105 may include but is not limited to steps S501 to S505:

[0110] Step S501, obtaining a blank bitmap with a size equal to the icon size;

[0111] Step S502, if the total number of characters in the target display text content exceeds the preset number of characters, the text content is segmented every preset number of characters to obtain multiple lines of segmented text content;

[0112] Step S503, adjusting the fonts of the text contents after the multiple lines are segmented based on the multiple lines of font parameters to obtain multiple lines of adjusted text contents;

[0113] Step S504, loading the icon background color and the multiple lines of adjusted text content into a blank bitmap to obtain an original icon bitmap;

[0114] Step S505 , performing style drawing on the original icon bitmap according to the icon style parameters to obtain the target display content icon.

[0115] In step S501 of some embodiments, the cross-platform graphics rendering engine Skia can be used as the third-party drawing software, or other third-party drawing software can be used, which is not limited here. By obtaining the initialization data of the rendering engine Skia, a blank bitmap with the size of the icon is created according to the initialization data for the subsequent icon drawing step.

[0116] In step S502 of some embodiments, the preset number of words is affected by the icon size. Under the premise of ensuring clear display of text content, the larger the icon size, the larger the preset number of words. If the total number of words in the target display text content exceeds the preset number of words, the text content is segmented every preset number of words to obtain multiple lines of segmented text content, so that the target display text content can be clearly displayed in lines later.

[0117] It should be noted that if the target display text content exceeds the preset maximum word limit, the key content of the target display text content will be further extracted, and then the extracted content will be segmented so that the key content of the target display text content can be clearly displayed in the icon.

[0118] In step S503 of some embodiments, the multi-line font parameters include: font size, font color, and font type of each line; wherein the font size of each line is set to be larger from top to bottom, so that the text display is more layered. The font size of the text content after the multi-line segmentation is adjusted based on the font size of each line, and the multi-line text content with increasingly larger fonts from top to bottom is obtained. Finally, the font of the multi-line text content is adjusted according to the font color and font type, and the multi-line adjusted text content is obtained, so that the target display text content can be more clearly displayed on the target content display icon.

[0119] In step S504 of some embodiments, the icon background color and multiple lines of adjusted text content are loaded into a blank bitmap to obtain an original icon bitmap for subsequent icon drawing.

[0120] It should be noted that the icon background color will adopt a color whose contrast with the font color exceeds the preset contrast, so that the text content after multiple lines of adjustment can be clearly seen.

[0121] In step S505 of some embodiments, the icon style parameters include: border style parameters, design elements, line style, and color palette; the icon border is loaded onto the original icon bitmap according to the border style parameters, and then the icon style is drawn according to the design elements, line style, and color palette to obtain the icon style content, and finally the icon style content is loaded into the icon border to obtain the target display content icon.

[0122] It should be noted that the design elements, line styles, and color palettes are obtained by analyzing the application type of the target application, so that the drawn target display content icon has a display effect that is more in line with the target application type.

[0123] In the steps S501 to S505 shown in the embodiment of the present application, by obtaining a blank bitmap with the same size as the icon size, if the total number of characters in the target display text content exceeds the preset number of characters, the text content is segmented every preset number of characters to obtain multiple lines of segmented text content. Then, the font of the multiple lines of segmented text content is adjusted based on the multiple lines of font parameters to obtain multiple lines of adjusted text content, and the icon background color and the multiple lines of adjusted text content are loaded into the blank bitmap to obtain the original icon bitmap. Finally, the style is drawn on the original icon bitmap according to the icon style parameters to obtain a target display content icon that can clearly display the target display text content.

[0124] In step S106 of some embodiments, a target display content icon is displayed at the icon display position of the target application to update the current icon display content of the target application to the target display content icon.

[0125] After step S106 in some embodiments, the information icon generation method further includes: a link pushing step.

[0126] See also Figure 6 In some embodiments, the link push step may include but is not limited to steps S601 to S602:

[0127] Step S601, obtaining a link corresponding to the candidate display push content to obtain a push link;

[0128] Step S602: Overlay the push link on the target display content icon.

[0129] In step S601 of some embodiments, the candidate display push content can be set in a pre-set manner according to business needs. The user's personalized data can also be obtained by analyzing the historical data of the target application used by the user, and the candidate display push content is selected according to the personalized data, but is not limited thereto. The link corresponding to the candidate display push content is obtained, and the push link is obtained for pushing the preset candidate display push content.

[0130] In step S602 of some embodiments, a push link is overlaid on the target display content icon for pushing according to the user's interactive instruction on the target display content icon.

[0131] Steps S601 to S602 shown in the embodiment of the present application obtain a push link by acquiring a link corresponding to the candidate display push content, and overlaying the push link on the target display content icon, so that the user can obtain personalized candidate display push content recommendations through interaction with the target display content icon, thereby improving the interactive experience of the target application.

[0132] After step S602 in some embodiments, the information icon generation method further includes: a link jump step.

[0133] See also Figure 7 In some embodiments, the link jump step may include but is not limited to step S701 to step S702:

[0134] Step S701, detecting the triggering state of the push link every predetermined second period;

[0135] Step S702, in response to the trigger status being triggered, opening the target application and jumping to the push page corresponding to the push link.

[0136] In step S701 of some embodiments, the triggering state of the push link is detected every second predetermined period. By detecting the triggering state of the push link every second predetermined period, there is no need to detect the triggering state of the push link in real time, thereby reducing the performance loss of the target application and saving the power loss of the device where the target application is located.

[0137] It should be noted that the duration of the second cycle should not be set too long to avoid a long delay after the user clicks the push link. Specifically, the second cycle does not exceed 1 second or does not exceed 1.5 seconds, but is not limited thereto.

[0138] In step S702 of some embodiments, if the trigger status is triggered, it means that the user has clicked on the target display content icon. Therefore, in response to the trigger status being triggered, the target application is opened and the push page corresponding to the push link is jumped to, so that when the user clicks on the target display content icon, it jumps to the push page corresponding to the push link without the user having to click again to jump, which is very convenient.

[0139] In the steps S701 to S702 shown in the embodiment of the present application, the triggering state of the push link is detected every predetermined second period, so as to reduce the performance loss of the target application, thereby saving the power consumption of the device where the target application is located. In response to the triggering state being triggered, the target application is opened and jumped to the push page corresponding to the push link, so as to improve the convenience of the target application.

[0140] See also Figure 8 The embodiment of the present application further provides an information icon generation device, which can implement the above-mentioned information icon generation method, and the device includes:

[0141] The parsing module 801 is used for, in response to detecting that the target application receives the message push data, deserializing and parsing the message push data to obtain parsed data, wherein the parsed data includes a plurality of candidate push contents;

[0142] The type determination module 802 is used to determine the type of the candidate push content and obtain the content type;

[0143] The content screening module 803 is used to select candidate push content whose content type is a target type from multiple candidate push content to obtain candidate display push content, wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content;

[0144] The text screening module 804 is used to select the field content whose field name is the preset target field from the plurality of candidate push field information to obtain the target display text content;

[0145] An icon drawing module 805 is used to draw an icon for the target display text content using a preset first icon drawing parameter to obtain a target display content icon;

[0146] The display module 806 is used to display the target display content icon at the icon display position of the target application.

[0147] The specific implementation of the information icon generating device is substantially the same as the specific implementation of the above-mentioned information icon generating method, and will not be described in detail herein.

[0148] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above information icon generation method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0149] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0150] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0151] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the information icon generation method of the embodiment of this application;

[0152] Input / output interface 903, used to implement information input and output;

[0153] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0154] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0155] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0156] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned information icon generation method is implemented.

[0157] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0158] The information icon generation method, information icon generation device, electronic device and storage medium provided by the embodiments of the present application perform deserialization and parsing processing on the message push data in response to detecting that the target application has received the message push data, so as to obtain the parsed data in a readable format, wherein the parsed data includes a plurality of candidate push contents. Then determine the type of the candidate push content to obtain the content type, and select the candidate push content whose content type is the target type from the plurality of candidate push contents to obtain the candidate display push content matching the target application type, wherein the candidate display push content includes a plurality of candidate push field information, wherein the candidate push field information includes a field name and a field content. Select the field content whose field name is a preset target field from the plurality of candidate push field information to obtain the target display text content, and then use the preset first icon drawing parameter to draw an icon for the target display text content to obtain the target display content icon. Display the target display content icon at the icon display position of the target application. Therefore, after content screening according to the type of pushed content, candidate display push content is obtained, and then keyword matching screening is performed on multiple candidate push field information through preset target fields to obtain accurate target display text content, and the target display content icon is drawn and displayed, so that users do not need to enter the target application, but can understand the push information received by the target application through the display content of the icon, thereby improving the convenience of users in obtaining information.

[0159] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0160] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0161] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0163] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0164] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0165] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0166] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0168] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0169] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for generating an information icon, characterized in that: The method comprises: In response to detecting that the target application receives the message push data, deserializing and parsing the message push data to obtain parsed data; wherein the parsed data includes a plurality of candidate push contents; By traversing the content type field information of each candidate push content, the content type field information of each candidate push content is determined among the multiple candidate push contents, thereby determining the type of the candidate push content and obtaining the content type; By acquiring historical application data of the target application and performing data analysis on the historical application data, the application type of the target application is obtained; according to the mapping relationship between the application type and a preset type, the target type is determined; the target type includes a high timeliness type and a low timeliness type; Selecting the candidate push content whose content type is the target type from multiple candidate push content to obtain candidate display push content; wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content; Selecting the field content whose field name is a preset target field from the plurality of candidate push field information to obtain the target display text content; Using a preset first icon drawing parameter, drawing an icon for the target display text content to obtain a target display content icon; The target presentation content icon is displayed at the icon display position of the target application.

2. The method according to claim 1, characterized in that After selecting the candidate push content whose content type is the target type from the plurality of candidate push content to obtain the candidate display push content, the method further includes: Selecting the candidate push content whose content type is a secondary target type from the plurality of candidate push content to obtain secondary candidate display push content; Extract keywords from the secondary candidate display push content to obtain secondary target display text content; Using the preset second icon drawing parameters, drawing an icon for the secondary target display text content to obtain a secondary target display content icon; The step of displaying the target display content icon at the icon display position of the target application includes: The target display content icon is displayed at the icon display position of the target application, and the sub-target display content icon is displayed every predetermined first period and maintained for a predetermined period of time.

3. The method according to claim 1, characterized in that The first icon drawing parameter includes the icon size of the target display content icon, and the icon size is determined by: Acquire device information of the device where the target application is located; wherein the device information includes screen size and screen density; Determine a first size based on the screen size and a preset first mapping function; wherein the first mapping function is an increasing function; Determine a second size based on the screen density and a preset second mapping function; wherein the second mapping function is an increasing function; The icon size is determined based on the first size and the second size.

4. The method according to claim 3, characterized in that The first icon drawing parameters include: multiple lines of font parameters, icon background color, and icon style parameters, wherein the multiple lines of font parameters decrease line by line; The step of drawing an icon for the target display text content by using a preset first icon drawing parameter to obtain a target display content icon includes: Get a blank bitmap with the size of the icon; If the total number of characters in the target displayed text content exceeds the preset number of characters, the text content is segmented every the preset number of characters to obtain multiple lines of segmented text content; Based on the multiple lines of font parameters, font adjustment is performed on the multiple lines of segmented text content to obtain multiple lines of adjusted text content; Loading the icon background color and the multiple lines of adjusted text content into the blank bitmap to obtain the original icon bitmap; Style drawing is performed on the original icon bitmap according to the icon style parameters to obtain the target display content icon.

5. The method according to claim 1, characterized in that After displaying the target display content icon at the icon display position of the target application, the method further includes: Obtaining a link corresponding to the candidate display push content to obtain a push link; The push link is overlaid on the target display content icon.

6. The method according to claim 5, characterized in that After overlaying the push link on the target display content icon, the method further includes: Every predetermined second period, detecting the triggering state of the push link; In response to the triggering status being triggered, the target application is opened and the page corresponding to the push link is jumped to.

7. An information icon generating device, characterized in that: The device comprises: A parsing module, configured to, in response to detecting that a target application has received the message push data, deserialize and parse the message push data to obtain parsed data; wherein the parsed data includes a plurality of candidate push contents; A type determination module, used to determine the content type field information of each candidate push content among multiple candidate push contents by traversing the content type field information of each candidate push content, thereby determining the type of the candidate push content and obtaining the content type; The content screening module is used to obtain the historical application data of the target application, perform data analysis on the historical application data, and obtain the application type of the target application; determine the target type according to the application type and the preset type mapping relationship; the target type includes a high timeliness type and a low timeliness type; and select the candidate push content whose content type is the target type from multiple candidate push contents to obtain candidate display push content; wherein the candidate display push content includes multiple candidate push field information, wherein the candidate push field information includes a field name and a field content; A text screening module, used to select the field content whose field name is a preset target field from the plurality of candidate push field information, and obtain the target display text content; An icon drawing module, used to draw an icon for the target display text content using a preset first icon drawing parameter to obtain a target display content icon; The display module is used to display the target display content icon at the icon display position of the target application.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the information icon generation method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the information icon generating method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Display method and equipment for application icons

    CN107291320A

  • Application icon display method and device

    CN112306323A

  • Message display method and device, electronic equipment and storage medium

    CN115421632A