CN110365848A - A kind of message display method and device - Google Patents
A kind of message display method and device Download PDFInfo
- Publication number
- CN110365848A CN110365848A CN201910682006.4A CN201910682006A CN110365848A CN 110365848 A CN110365848 A CN 110365848A CN 201910682006 A CN201910682006 A CN 201910682006A CN 110365848 A CN110365848 A CN 110365848A
- Authority
- CN
- China
- Prior art keywords
- message
- duration
- target
- characters
- weighted
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of message display method and devices, which comprises receives the message pushed from target application;The message is shown in target duration, wherein the target duration is corresponding with the number of characters of the message.The method and device can take corresponding display strategy for different message respectively, so that more convenient user checks different message.
Description
Technical field
The present invention relates to mobile communications network field more particularly to a kind of message display methods and device.
Background technique
With the development of science and technology, the function of electronic equipment is stronger and stronger, and the received message of electronic equipment is increasingly
It is more.For example, the application program (Application, APP) of installation in the electronic device is more and more, these are mounted on electronics and set
APP in standby increases day amount living to improve product exposure rate, can be disappeared by way of PUSH message to electronic equipment transmission
Breath.For example, being mounted on the social APP in mobile phone, user can be guided to open social activity APP by way of pushing chat messages,
Day amount living to improve social activity APP.
Currently, electronic equipment, when receiving message, many message all can be with identical strategy display.For example, in a certain APP
Message push switch open when, the APP push all message all can with it is identical strategy display;It, should when the switch is closed
All message of APP push are not shown.Obviously, multiple message are not met inevitably with the need of user by same strategy display
It asks, and will lead to user if not showing and miss some important messages, it is therefore desirable to improve.
Summary of the invention
The embodiment of the present invention provides a kind of message display method and device, is pressed with improving the received multiple message of electronic equipment
The problem of same strategy display.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, providing a kind of message display method, it is applied to electronic equipment, which comprises
Receive the message from target application;
The message is shown in target duration, wherein the target duration is corresponding with the number of characters of the message.
Second aspect, provides a kind of message display device, and described device includes:
Message reception module, for receiving the message from target application;
First display module, for showing the message in target duration, wherein the target duration and the message
Number of characters it is corresponding.
The third aspect provides a kind of electronic equipment, which includes processor, memory and be stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
The step of method as described in relation to the first aspect.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium
Computer program is stored in matter, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor
Suddenly.
In embodiments of the present invention, electronic equipment can show the message from target application in target duration, wherein
The target duration is corresponding with the number of characters of the message.Therefore corresponding display can be taken respectively for different message
Strategy, so that more convenient user checks different message.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is one of the flow diagram of message display method provided in an embodiment of the present invention.
Fig. 2 is the two of the flow diagram of message display method provided in an embodiment of the present invention.
Fig. 3 is the three of the flow diagram of message display method provided in an embodiment of the present invention.
Fig. 4 is one of the application interface schematic diagram of message display method provided in an embodiment of the present invention.
Fig. 5 is the two of the application interface schematic diagram of message display method provided in an embodiment of the present invention.
Fig. 6 is the three of the application interface schematic diagram of message display method provided in an embodiment of the present invention.
Fig. 7 is the four of the application interface schematic diagram of message display method provided in an embodiment of the present invention.
Fig. 8 is the application process schematic diagram of message display method provided in an embodiment of the present invention.
Fig. 9 is one of the structural schematic diagram of message display device provided in an embodiment of the present invention.
Figure 10 is the second structural representation of message display device provided in an embodiment of the present invention.
Figure 11 is the third structural representation of message display device provided in an embodiment of the present invention.
Figure 12 is the hardware structural diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
To improve the problem of received multiple message of electronic equipment are by same strategy display, the embodiment of the present invention provides one
Kind message display method and device, the executing subject of this method, can be, but not limited to mobile phone, IPAD, wearable device etc. can
It is configured as executing at least one of the electronic equipment of method provided in an embodiment of the present invention, alternatively, the executing subject of this method,
It can also be and be able to carry out client of this method itself.
For ease of description, hereafter executing subject in this way is to be able to carry out for the mobile phone of this method, to this method
Embodiment be introduced.It is appreciated that it is a kind of illustrative explanation that the executing subject of this method, which is mobile phone, do not answer
It is interpreted as the restriction to this method.
Message display method provided in an embodiment of the present invention is described in detail below with reference to Fig. 1 and Fig. 2.
As shown in Figure 1, a kind of message display method provided by the invention, is applied to electronic equipment, this method may include
Following steps:
Step 101 receives the message from target application.
Target application can be any application installed in electronic equipment, for example, it may be installing in the electronic device
Instant messaging application is also possible to install system application, etc. in the electronic device.Also, the message from target application
Can be one be also possible to it is a plurality of.
Step 102 shows the message in target duration, wherein the number of characters of the target duration and the message
It is corresponding.
In general, the target duration can be positively correlated with the number of characters of the message, that is to say, that in certain word
It accords within the scope of number, the number of characters of the message is more, and the target duration is longer;Conversely, the number of characters of the message is fewer, institute
It is shorter to state target duration.
The message is shown in target duration, it can be understood as the message is shown by the target duration, or
Say the when a length of target duration of the display message, for example, if when target a length of 3s, receive the message it
After show 3s.
Optionally, in order to determine target duration, as shown in Fig. 2, before step 102, it is provided in an embodiment of the present invention to disappear
Display methods is ceased, can also include:
Step 103 determines the target duration according to the number of characters of the message, alternatively, according to the character of the message
Several and type of message determines the target duration.
First example
Step 103 may include: to determine the target duration according to the number of characters of the message.According to the word of the message
Symbol number determine the target duration mode can there are many kinds of, two kinds of possible modes are described below.
In the first way, step 103 can specifically include: determine institute according to all number of characters that the message includes
State target duration.Specifically, can be when all number of characters that the message includes be less than preset characters number, by the message package
All number of characters and the ratio of the preset characters number and the product of preset duration contained, are determined as the target duration;Institute
When stating all number of characters that message includes and being greater than or equal to preset characters number, preset duration is determined as the target duration.
In this specification embodiment, the longest that preset duration can be understood as the message shows duration, and this is most
Long display duration can be arranged by user flexibility.
If then including altogether when one small from target application for example, preset characters number is 500, preset duration 5s
It, then can be using 5*400/500=4s as the target duration when 400 characters;When the another a piece of news from target application
It, can be using 5s as the target duration when comprising 600 characters.
In the second way, since the message from the target application would generally include multiple portions, such as comprising
First part's (such as title) and second part (such as text), and the significance level of different piece may be different, therefore, step 103
Can specifically include: the number of characters of number of characters and second part to the first part of the message is weighted summation, obtains
Weighted sum value;According to the weighted sum value, the target duration is determined.Wherein, the weight and second part of first part
Weight can preset.
More specifically, it in the second way, according to the weighted sum value, determines the target duration, can wrap
It includes: if the weighted sum value is greater than or equal to preset threshold, preset duration being determined as the target duration;If described add
It weighs summing value and is less than preset threshold, then the product of preset duration and target ratio is determined as the target duration, the target
Ratio is the ratio of the weighted sum value and the preset threshold.If that is, the weighted sum value is a, preset threshold
For b, preset duration c, then when the weighted sum value is less than preset threshold, the target duration are as follows: t=(a/b) * c.
Wherein, preset threshold can be preset, the most long word that can also include to message each section according to electronic equipment
The weight of the limitation and each section that accord with number determines.If being given for example, being in advance 100 to the weight that the title of message is arranged
The weight of the text setting of message is 60, and the title longest of message of the system limitation from target application of electronic equipment includes 20
A character, text longest include 50 characters, then can calculate preset threshold are as follows: 20*100+50*60=5000.
For example, if preset threshold is 5000, preset duration 5s, the weight being arranged in advance to the title of message is
100, the weight being arranged to the text of message is 60.
So, when the title of a piece of news from target application includes 10 characters, and text includes 20 characters,
The weighted sum value of the number of characters that the first part of the message includes and the number of characters that second part includes can be calculated are as follows:
10*100+20*60=2200, since 2200 less than 5000, when can further calculate the target of a piece of news
It is long are as follows: t=(a/b) * c=(2200/5000) * 5s=2.2s.
When the title of the Article 2 message from target application includes 5 characters, and text includes 30 characters, Ke Yiji
Calculate the weighted sum value of the number of characters that the first part of the message includes and the number of characters that second part includes are as follows: 5*100+
30*60=2300 can further calculate the target duration of Article 2 message are as follows: t since 2300 again smaller than 5000
=(a/b) * c=(2300/5000) * 5s=2.3s.
When the title of the Article 3 message from target application includes 5 characters, and text includes 3 characters, Ke Yiji
Calculate the weighted sum value of the number of characters that the first part of the message includes and the number of characters that second part includes are as follows: 5*100+3*
60=680 can further calculate the target duration of Article 2 message are as follows: t=(a/ since 680 less than 5000
B) * c=(680/5000) * 5s=0.68s.
Except of course that after calculating the weighted sum value, step 103 can also be utilized except above-mentioned method of determination
The target duration of the message is calculated in other computation rules, and it is not limited in the embodiment of the present invention.
Second example
Step 103 may include: to determine the target duration according to the number of characters and type of message of the message.
Wherein, the type of message of the message can be based on the message default characteristic information determine.From mesh
The default characteristic information for marking a piece of news of application may include: the title of target application, the type of target application and described disappear
Cease subsidiary behavioural information (such as opening some webpage).
For example, above-mentioned several default characteristic informations based on the message, can determine the message of the message
Type is one of several types cited in the following table 1.
Table 1
According to the number of characters of the message and type of message determine the target duration mode can also there are many kinds of, under
Introduce two kinds of possible modes in face.
In the first way, step 103 can specifically include: all number of characters for including according to the message, and
The corresponding weight of the type of message of the message determines the target duration.Specifically, the institute that can first include in the message
When thering is number of characters to be less than preset characters number, the ratio of all number of characters for including by the message and the preset characters number and pre-
If the product of duration is determined as initial duration;When all number of characters that the message includes are greater than or equal to preset characters number,
Preset duration is determined as initial duration;Then, by initial duration weight corresponding with the type of message of the message
Product is determined as the target duration.
In this specification embodiment, the longest that preset duration can be understood as the message shows duration, and this is most
Long display duration can be arranged by user flexibility.The corresponding weight of different type of messages can be with flexible setting, for example, can be by
According to the significance level of the message of different type of messages, as shown in table 2 below to several type of messages setting cited in table 1
Weight.
Table 2
Type of message | Weight | Significance level |
System message | 1 | It is extremely important |
Status message | 0.8 | It is important |
Chat messages | 0.6 | It is important |
Advertisement information | 0 | It is general important |
Domestic News | 0.4 | It is inessential |
On this basis, for example, if preset characters number is 500, preset duration 5s, then when from target application
A piece of news altogether include 400 characters, then can be by 5*400/500=4s and when the type of this message is status message
As the initial duration, using 0.8*4s=3.2s as target duration.When another message from target application includes 600
A character, the and when type of this message is Domestic News, can using 5s as the initial duration, using 0.4*5s=2s as
Target duration.
In the second way, the message may include multiple portions, for example including first part's (such as title) and second
Partially (such as text), step 103 can specifically include: according to the type of message of the message, determine the word of the first part
Accord with the second weighted value of the first weighted value of number and the number of characters of the second part;According to first weighted value and described
The number of characters of two weighted values, number of characters and the second part to the first part is weighted summation, obtains weighting and asks
And value;According to the weighted sum value, the target duration is determined.
Wherein, for the message of different type of messages, above-mentioned first weighted value and the second weighted value are different.It is general and
Speech, for the message of relatively important type of message (system message in such as table 1), above-mentioned first weighted value and the second weighted value
It is relatively large;For relatively less important type of message (Domestic News in such as table 1), above-mentioned first weighted value and second
Weighted value can be relatively small.
Also, it is similar with the second way in first example, in the second way of second example, according to institute
Weighted sum value is stated, the target duration is determined, can specifically include: if the weighted sum value is greater than or equal to default threshold
Value, then be determined as the target duration for preset duration;If the weighted sum value be less than preset threshold, by preset duration with
The product of target ratio is determined as the target duration, and the target ratio is the weighted sum value and the preset threshold
Ratio.Actual example refers to above, and details are not described herein again.
A kind of message display method provided in an embodiment of the present invention comes since electronic equipment can be shown in target duration
From the message of target application, wherein the target duration is corresponding with the number of characters of the message.Therefore it can be directed to different
Message takes corresponding display strategy respectively, so that more convenient user checks different message, improves some message and makes to user
At bothering or the problem of user misses certain important messages.
Optionally, as shown in figure 3, before step 103, a kind of message display method provided in an embodiment of the present invention, also
May include:
Step 104 determines whether the target application enables message and show duration control function, if so, executing again
It states step 103 and otherwise executes step 105 to step 102.
That is, executing the basis in the case where the target application enables message and shows duration control function
The number of characters of the message determines the target duration, alternatively, according to the number of characters of the message and type of message determination
Target duration, until described the step of showing the message in target duration.
As an example, user can enable message to target application by Fig. 4 to operating process shown in Fig. 7 and show
Duration control function.It is switched as shown in figure 4, being equipped with " application message management " in " display " function set interface in electronic equipment
41.As shown in figure 5, the operation button of " selection application " can be shown on the display interface of electronic equipment after opening switch 41,
After clicking " selection application ", as shown in fig. 6, showing the application column installed in the electronic equipment on the display interface of electronic equipment
Table.User can select to need to enable the target application that message shows duration control function in the list of application.Such as Fig. 7 institute
Show, can choose this application to " 4399 game cartridge " and enable duration control function, specifically, in Fig. 7, when user clicks
After " 4399 game cartridge " this application, the switch 42 of one " open message and show duration control " can be shown on display interface, when
After user turns on the switch 42, it can be realized and the purpose that message shows duration control function is enabled to " 4399 game cartridge ".
Optionally, after opening message to target application and showing duration control function, side provided in an embodiment of the present invention
Method can also include: the adjustment for receiving user and showing duration to the longest of the message from target application.To facilitate user by certainly
The longest of the message of the demand setting displaying target application push of body shows duration.As shown in fig. 7, after turning on the switch 42,
It can also show that a longest shows duration regulation button 43, in display interface further to facilitate user by self-demand
The longest for adjusting the message from target application shows duration (above described preset duration).
Step 103 determines target duration according to the number of characters of the message, alternatively, according to the number of characters of the message and
Type of message determines the target duration.
Step 102 shows the message in the target duration.
Step 105 shows the message by default display mode.
Wherein, default display mode, which can be, directly shows the message according to fixed duration.
A kind of message display method provided in an embodiment of the present invention is to enable message in target application to show duration control function
In the case where energy, target duration is determined according to the number of characters of the message, alternatively, according to the number of characters of the message and message class
Type determines the target duration, and shows the message in the target duration.This more meets the demand of user, can be further
Promote user experience.
Message display method provided in an embodiment of the present invention is described by Fig. 1 to Fig. 7 above.Below with reference to figure
The application process for the message display method that 8 pairs of this specification embodiments provide is illustrated.As shown in figure 3, the process includes:
When step 801, electronic equipment 86 download installation targets using 81, duration control function can be shown to message is provided
The target software development kit of (namely message display method provided in an embodiment of the present invention or device are realized function)
(Software Development Kit, SDK) 83 initiates to obtain the registration request that message shows duration control service.
Wherein, target SDK can integrate in target application, also can integrate in the operating system of electronic equipment.It can
To understand, when target SDK is integrated in the operating system of electronic equipment, may be implemented from installation in the electronic device each
The display duration of the message of a APP controls, and when target SDK is integrated in target application, it can only realize and answer from target
The display duration of message controls.
Further, when target SDK is integrated in the operating system of electronic equipment, implement provided in an embodiment of the present invention
The main body of message display method or device specifically can be the target SDK integrated in the operating system of electronic equipment.That is,
A kind of message display method provided in an embodiment of the present invention can be applied to the mesh integrated in the operating system of the electronic equipment
Software Development Kit SDK is marked, the target SDK is used to provide the described message and shows duration control function.
Step 802, target SDK 83 send registration ID acquisition request to push server 85.
Step 803, push server 85 generate one according to the unique identifier of the electronic equipment and the ID of target application
Unique identification string, alternatively, generating one according to the unique identifier of the electronic equipment and the ID and current time stamp of target application
A unique identification string, as registration ID.
Step 804, push server 85 return to registration ID to target SDK 83.
Step 805, target SDK 83 return to registration ID to target application 81.
Step 806, target application 81 save the registration ID of return in the server 82 of target application.
It is appreciated that target application has had the power that message shows duration control function that obtains after step 806 end
Limit.
Step 807, target application 81 operation personnel by push platform 84 to push server 85 transmission need to push
Message.
Step 808, push server 85 send the message to target SDK.
Step 809, target SDK call message display method provided in an embodiment of the present invention, and completion shows the message
Show.
Step 810, the predetermined registration operation (such as clicking operation, delete operation) for receiving message execution of the user to display are simultaneously rung
It answers.For example, can further pull the target application when receiving message execution clicking operation of the user to display.
It is the explanation to message display method provided in an embodiment of the present invention above, is also mentioned corresponding to above method embodiment
A kind of message display device has been supplied, has been described below.
As shown in figure 9, a kind of message display device provided in an embodiment of the present invention, the apparatus may include: message sink
Module 901 and the first display module 902.
Message reception module 901, for receiving the message from target application.
First display module 902, for showing the message within the object time, wherein the target duration with it is described
The number of characters of message is corresponding.
Optionally, as shown in Figure 10, message display device provided in an embodiment of the present invention can also include: that duration determines mould
Block 903, for determining the target duration according to the number of characters of the message before showing the message within the object time,
Alternatively, determining the target duration according to the number of characters of the message and type of message.
First example
Duration determining module 903, for determining the target duration according to the number of characters of the message.According to the message
Number of characters determine the target duration mode can there are many kinds of, two kinds of possible modes are described below.
In the first way, duration determining module 903 is particularly used in: all number of characters for including according to the message
Determine the target duration.Specifically, can be when all number of characters that the message includes are less than preset characters number, it will be described
All number of characters and the ratio of the preset characters number and the product of preset duration that message includes, when being determined as the target
It is long;When all number of characters that the message includes are greater than or equal to preset characters number, preset duration is determined as the target
Duration.
In this specification embodiment, the longest that preset duration can be understood as the message shows duration, and this is most
Long display duration can be arranged by user flexibility.
In the second way, since the message from the target application would generally include multiple portions, such as comprising
First part's (such as title) and second part (such as text), and the significance level of different piece may be different, therefore, duration determines
Module 903 is specific can include:
Weighted sum module adds for the number of characters of the first part to the message and the number of characters of second part
Power summation, obtains weighted sum value.
First duration determining module, for determining the target duration according to the weighted sum value.
Wherein, the weight of first part and the weight of second part can be preset.
More specifically, in the second way, the first duration determining module is particularly used in: if the weighted sum
Value is greater than or equal to preset threshold, then preset duration is determined as the target duration;If the weighted sum value is less than default
Threshold value, then be determined as the target duration for the product of preset duration and target ratio, and the target ratio is that the weighting is asked
With the ratio of value and the preset threshold.If that is, the weighted sum value be a, preset threshold b, preset duration c,
Then when the weighted sum value is less than preset threshold, the target duration are as follows: t=(a/b) * c.
Wherein, preset threshold can be preset, the most long word that can also include to message each section according to electronic equipment
The weight of the limitation and each section that accord with number determines.
Second example
Duration determining module 903 is specific can include: the second duration determining module, for disappearing described in the display within the object time
Before breath, the target duration is determined according to the number of characters of the message and type of message.Wherein, the type of message of the message
Can be based on the message default characteristic information determine.The default characteristic information of a piece of news from target application can
To include: the title of target application, the type of target application and the subsidiary behavioural information (such as opening some webpage) of the message
Deng.
According to the number of characters of the message and type of message determine the target duration mode can also there are many kinds of, under
Introduce two kinds of possible modes in face.
In the first way, the second duration determining module is particularly used in: all characters for including according to the message
The corresponding weight of type of message of the several and described message, determines the target duration.Specifically, can be first in the message
When all number of characters for including are less than preset characters number, all number of characters and the preset characters number that include by the message
The product of ratio and preset duration is determined as initial duration;It is greater than or equal in all number of characters that the message includes default
When number of characters, preset duration is determined as initial duration;Then, the initial duration is corresponding with the type of message of the message
Weight product, be determined as the target duration.
In this specification embodiment, the longest that preset duration can be understood as the message shows duration, and this is most
Long display duration can be arranged by user flexibility.The corresponding weight of different type of messages can be with flexible setting.
In the second way, the message may include multiple portions, for example including first part's (such as title) and second
Partially (such as text), the second duration determining module are specific can include:
Weight determination module determines the character of the first part of the message for the type of message according to the message
Second weighted value of the number of characters of several the first weighted value and second part.
Weighted sum module is used for according to first weighted value and second weighted value, to the first of the message
The number of characters of the second part of partial number of characters and the message is weighted summation, obtains weighted sum value.
Third duration determining module, for determining the target duration according to the weighted sum value.
Wherein, for the message of different type of messages, above-mentioned first weighted value and the second weighted value are different.It is general and
Speech, for the message of relatively important type of message (system message in such as table 1), above-mentioned first weighted value and the second weighted value
It is relatively large;For the less type of message (Domestic News in such as table 1) wanted of emphasis relatively, above-mentioned first weighted value and
Two weighted values can be relatively small.
Optionally, third duration determining module, is particularly used in: if the weighted sum value is greater than or equal to default threshold
Value, then be determined as the target duration for preset duration;If the weighted sum value be less than preset threshold, by preset duration with
The product of target ratio is determined as the target duration, and the target ratio is the weighted sum value and the preset threshold
Ratio.
A kind of message display device provided in an embodiment of the present invention, due to showing in target duration from target application
Message, wherein the target duration is corresponding with the number of characters of the message.Therefore it can be taken respectively for different message
Corresponding display strategy improves some message and causes to bother to user or user so that more convenient user checks different message
The problem of missing certain important messages.
As shown in figure 11, in another embodiment, message display device 900 may include:
Message reception module 901, for receiving the message of target application push.
Judgment module 904 shows duration control function for determining whether the target application enables message, if so,
Duration determining module 903 and the first display module 902 are triggered again, otherwise, trigger the second display module 905.
Duration determining module 903, for determining target duration according to the number of characters of the message, alternatively, being disappeared according to described
The number of characters and type of message of breath determine the target duration.
First display module 902, for showing the message in the target duration.
Second display module 905, for showing the message by default display mode.
A kind of message display device provided in an embodiment of the present invention is to enable message in target application to show duration control function
In the case where energy, target duration is determined according to the number of characters of the message, alternatively, according to the number of characters of the message and message class
Type determines the target duration, and shows the message in the target duration.This more meets the demand of user, can be further
Promote user experience.
A kind of message display device provided in an embodiment of the present invention can be realized one in any one of Fig. 1-Fig. 3 embodiment of the method
Each process that kind message display method is realized, and same technical effect can be obtained, it is no longer superfluous here to avoid repeating
It states.
The hardware structural diagram of Figure 12 a kind of electronic equipment of each embodiment to realize the present invention,
The electronic equipment 1000 includes but is not limited to: radio frequency unit 1001, network module 1002, audio output unit
1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, storage
The components such as device 1009, processor 1010 and power supply 1011.It will be understood by those skilled in the art that electronics shown in Figure 12
Device structure does not constitute the restriction to electronic equipment, and electronic equipment may include components more more or fewer than diagram, or
Combine certain components or different component layouts.In embodiments of the present invention, electronic equipment includes but is not limited to mobile phone, puts down
Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 1010, for receiving the message from target application;The message is shown in target duration,
Wherein, the target duration is corresponding with the number of characters of the message.Therefore, it can be taken respectively accordingly for different message
Display strategy, so that more convenient user checks different message.
It should be understood that the embodiment of the present invention in, radio frequency unit 1001 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 1010 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 1001 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1001 can also by wireless communication system and network and other
Equipment communication.
Electronic equipment provides wireless broadband internet by network module 1002 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 1003 can be received by radio frequency unit 1001 or network module 1002 or in memory
The audio data stored in 1009 is converted into audio signal and exports to be sound.Moreover, audio output unit 1003 can be with
Audio output relevant to the specific function that electronic equipment 1000 executes is provided (for example, call signal receives sound, message sink
Sound etc.).Audio output unit 1003 includes loudspeaker, buzzer and receiver etc..
Input unit 1004 is for receiving audio or video signal.Input unit 1004 may include graphics processor
(Graphics Processing Unit, GPU) 10041 and microphone 10042, graphics processor 10041 are captured in video
In mode or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into
Row processing.Treated, and picture frame may be displayed on display unit 1006.Through treated the picture frame of graphics processor 10041
It can store in memory 1009 (or other storage mediums) or carried out via radio frequency unit 1001 or network module 1002
It sends.Microphone 10042 can receive sound, and can be audio data by such acoustic processing.Audio that treated
Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1001 in the case where telephone calling model
Formula output.
Electronic equipment 1000 further includes at least one sensor 1005, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 10061, proximity sensor can when electronic equipment 1000 is moved in one's ear,
Close display panel 10061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify electronic equipment appearance when static
State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;Sensor 1005 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas
Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.
Display unit 1006 is for showing information input by user or being supplied to the information of user.Display unit 1006 can
Including display panel 10061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 10061.
User input unit 1007 can be used for receiving the number or character information of input, and generate the use with electronic equipment
Family setting and the related key signals input of function control.Specifically, user input unit 1007 include touch panel 10071 with
And other input equipments 10072.Touch panel 10071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 10071 or in touch panel
Operation near 10071).Touch panel 10071 may include both touch detecting apparatus and touch controller.Wherein, it touches
The touch orientation of detection device detection user is touched, and detects touch operation bring signal, transmits a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1010,
It receives the order that processor 1010 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 10071.In addition to touch panel 10071, user input unit 1007 can also include
Other input equipments 10072.Specifically, other input equipments 10072 can include but is not limited to physical keyboard, function key (ratio
Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 10071 can be covered on display panel 10061, when touch panel 10071 detects
After touch operation on or near it, processor 1010 is sent to determine the type of message of touch event, is followed by subsequent processing device
1010 provide corresponding visual output according to the type of message of touch event on display panel 10061.Although in Figure 10, touching
Control panel 10071 and display panel 10061 are to output and input function as two independent components come realize electronic equipment,
But in some embodiments it is possible to touch panel 10071 and display panel 10061 are integrated and are realized the input of electronic equipment
And output function, specifically herein without limitation.
Interface unit 1008 is the interface that external device (ED) is connect with electronic equipment 1000.For example, external device (ED) may include
Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card
Port, port, the port audio input/output (I/O), video i/o port, earphone for connecting the device with identification module
Port etc..Interface unit 1008 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously
And by one or more elements that the input received is transferred in electronic equipment 1000 or it can be used in electronic equipment
Data are transmitted between 1000 and external device (ED).
Memory 1009 can be used for storing software program and various data.Memory 1009 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as
Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 1009 may include high-speed random access memory, it can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1010 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection
A part by running or execute the software program and/or module that are stored in memory 1009, and calls and is stored in storage
Data in device 1009 execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.Place
Managing device 1010 may include one or more processing units;Preferably, processor 1010 can integrate application processor and modulation /demodulation
Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1010.
Electronic equipment 1000 can also include the power supply 1011 (such as battery) powered to all parts, it is preferred that power supply
1011 can be logically contiguous by power-supply management system and processor 1010, to realize that management is filled by power-supply management system
The functions such as electricity, electric discharge and power managed.
In addition, electronic equipment 1000 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of electronic equipment, including processor 1010, memory 1009, storage
On memory 1009 and the computer program that can run on the processor 1010, the computer program is by processor 1010
Each process of above-mentioned message display method embodiment is realized when execution, and can reach identical technical effect, to avoid repeating,
Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned message display method embodiment, and energy when being executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (10)
1. a kind of message display method, which is characterized in that be applied to electronic equipment, which comprises
Receive the message from target application;
The message is shown in target duration, wherein the target duration is corresponding with the number of characters of the message.
2. the method according to claim 1, wherein it is described the message is shown in target duration before, institute
State method further include:
The number of characters of number of characters and second part to the first part of the message is weighted summation, obtains weighted sum
Value;
According to the weighted sum value, the target duration is determined.
3. the method according to claim 1, wherein it is described the message is shown in target duration before, institute
State method further include:
The target duration is determined according to the number of characters of the message and type of message.
4. according to the method described in claim 3, it is characterized in that,
The message includes first part and second part, wherein described true according to the number of characters and type of message of the message
The fixed target duration, comprising:
According to the type of message of the message, the first weighted value and the second part of the number of characters of the first part are determined
Number of characters the second weighted value;
According to first weighted value and second weighted value, number of characters and the second part to the first part
Number of characters is weighted summation, obtains weighted sum value;
According to the weighted sum value, the target duration is determined.
5. method according to claim 2 or 4, which is characterized in that it is described according to the weighted sum value, determine the mesh
Duration is marked, is specifically included:
If the weighted sum value is greater than or equal to preset threshold, preset duration is determined as the target duration;
If the weighted sum value is less than the preset threshold, the product of the preset duration and target ratio is determined as institute
Target duration is stated, the target ratio is the ratio of the weighted sum value and the preset threshold.
6. a kind of message display device, which is characterized in that described device includes:
Message reception module, for receiving the message from target application;
First display module, for showing the message in target duration, wherein the word of the target duration and the message
It is corresponding to accord with number.
7. device according to claim 6, which is characterized in that described device further include:
Weighted sum module is weighted and asks for the number of characters of the first part to the message and the number of characters of second part
With obtain weighted sum value;
First duration determining module, for determining the target duration according to the weighted sum value.
8. device according to claim 6, which is characterized in that described device further include:
Second duration determining module determines the target duration for the number of characters and type of message according to the message.
9. device according to claim 8, which is characterized in that
The message includes first part and second part, wherein the second duration determining module specifically includes:
Weight determination module determines the first power of the number of characters of the first part for the type of message according to the message
Second weighted value of the number of characters of weight values and the second part;
Weighted sum module is used for according to first weighted value and second weighted value, to the character of the first part
Several and the second part number of characters is weighted summation, obtains weighted sum value;
Third duration determining module, for determining the target duration according to the weighted sum value.
10. the device according to claim 7 or 9, which is characterized in that
The first duration determining module or the third duration determining module, are specifically used for:
If the second weighted sum value is greater than or equal to preset threshold, preset duration is determined as the target duration;
If the weighted sum value is less than the preset threshold, the product of the preset duration and target ratio is determined as institute
Target duration is stated, the target ratio is the ratio of the weighted sum value and the preset threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682006.4A CN110365848B (en) | 2019-07-26 | 2019-07-26 | Message display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682006.4A CN110365848B (en) | 2019-07-26 | 2019-07-26 | Message display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110365848A true CN110365848A (en) | 2019-10-22 |
CN110365848B CN110365848B (en) | 2021-04-13 |
Family
ID=68222369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910682006.4A Active CN110365848B (en) | 2019-07-26 | 2019-07-26 | Message display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365848B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1759435A (en) * | 2003-03-07 | 2006-04-12 | 日本电气株式会社 | Roll display control |
US20090216847A1 (en) * | 2007-11-14 | 2009-08-27 | Qualcomm Incorporated | Method and system for message value calculation in a mobile environment |
CN103297327A (en) * | 2013-05-29 | 2013-09-11 | 深圳数字电视国家工程实验室股份有限公司 | Message pushing method, message pushing device and display terminal |
CN105681868A (en) * | 2015-04-28 | 2016-06-15 | 深圳Tcl数字技术有限公司 | Barrage content display method and terminal equipment |
CN105812244A (en) * | 2016-04-26 | 2016-07-27 | 努比亚技术有限公司 | Message display method and terminal |
CN106791014A (en) * | 2016-11-29 | 2017-05-31 | 北京小米移动软件有限公司 | Message display method and device |
CN107241655A (en) * | 2017-06-30 | 2017-10-10 | 广东欧珀移动通信有限公司 | A kind of video broadcasting method, device, storage medium and terminal |
CN107613093A (en) * | 2017-08-16 | 2018-01-19 | 广东小天才科技有限公司 | Communication message display method and user terminal |
CN107809533A (en) * | 2017-10-23 | 2018-03-16 | 珠海市魅族科技有限公司 | A kind of information interacting method and device, terminal and readable storage medium storing program for executing |
CN108174276A (en) * | 2018-01-04 | 2018-06-15 | 北京奇艺世纪科技有限公司 | A kind of barrage display methods and display device |
CN109215655A (en) * | 2018-10-30 | 2019-01-15 | 维沃移动通信有限公司 | The method and mobile terminal of text are added in video |
CN109582413A (en) * | 2018-10-26 | 2019-04-05 | 阿里巴巴集团控股有限公司 | Message informing method, device and electronic equipment |
CN109656431A (en) * | 2018-12-20 | 2019-04-19 | 惠州Tcl移动通信有限公司 | Information display method, device and storage medium |
-
2019
- 2019-07-26 CN CN201910682006.4A patent/CN110365848B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1759435A (en) * | 2003-03-07 | 2006-04-12 | 日本电气株式会社 | Roll display control |
US20090216847A1 (en) * | 2007-11-14 | 2009-08-27 | Qualcomm Incorporated | Method and system for message value calculation in a mobile environment |
CN103297327A (en) * | 2013-05-29 | 2013-09-11 | 深圳数字电视国家工程实验室股份有限公司 | Message pushing method, message pushing device and display terminal |
CN105681868A (en) * | 2015-04-28 | 2016-06-15 | 深圳Tcl数字技术有限公司 | Barrage content display method and terminal equipment |
CN105812244A (en) * | 2016-04-26 | 2016-07-27 | 努比亚技术有限公司 | Message display method and terminal |
CN106791014A (en) * | 2016-11-29 | 2017-05-31 | 北京小米移动软件有限公司 | Message display method and device |
CN107241655A (en) * | 2017-06-30 | 2017-10-10 | 广东欧珀移动通信有限公司 | A kind of video broadcasting method, device, storage medium and terminal |
CN107613093A (en) * | 2017-08-16 | 2018-01-19 | 广东小天才科技有限公司 | Communication message display method and user terminal |
CN107809533A (en) * | 2017-10-23 | 2018-03-16 | 珠海市魅族科技有限公司 | A kind of information interacting method and device, terminal and readable storage medium storing program for executing |
CN108174276A (en) * | 2018-01-04 | 2018-06-15 | 北京奇艺世纪科技有限公司 | A kind of barrage display methods and display device |
CN109582413A (en) * | 2018-10-26 | 2019-04-05 | 阿里巴巴集团控股有限公司 | Message informing method, device and electronic equipment |
CN109215655A (en) * | 2018-10-30 | 2019-01-15 | 维沃移动通信有限公司 | The method and mobile terminal of text are added in video |
CN109656431A (en) * | 2018-12-20 | 2019-04-19 | 惠州Tcl移动通信有限公司 | Information display method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110365848B (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110134356A (en) | A kind of throwing screen method and terminal | |
CN108200289A (en) | A kind of unread message processing method and mobile terminal | |
CN108845853A (en) | A kind of application program launching method and mobile terminal | |
CN108415652A (en) | A kind of text handling method and mobile terminal | |
CN107943374A (en) | The startup method and collapsible terminal of application program in collapsible terminal | |
CN108227996A (en) | A kind of display control method and mobile terminal | |
CN108287650A (en) | One-handed performance method based on mobile terminal and mobile terminal | |
CN108418950B (en) | Message prompt method and mobile terminal | |
CN109117041A (en) | A kind of message treatment method and mobile terminal | |
CN108897473A (en) | A kind of interface display method and terminal | |
CN108111678A (en) | A kind of information cuing method and mobile terminal | |
CN110531915A (en) | Screen operating method and terminal device | |
CN108388456A (en) | A kind of application starts method, mobile terminal | |
CN108984066A (en) | A kind of application icon display methods and mobile terminal | |
CN108111676A (en) | A kind of application control method and mobile terminal | |
CN109189303A (en) | Method for editing text and mobile terminal | |
CN110381204A (en) | A kind of information display method and mobile terminal | |
CN108319833A (en) | A kind of control method and mobile terminal of application program | |
CN110096203A (en) | A kind of screenshot method and mobile terminal | |
CN109521937A (en) | A kind of control method for screen display and mobile terminal | |
CN108600544A (en) | A kind of Single-hand control method and terminal | |
CN109246312B (en) | Information prompting method and mobile terminal | |
CN109976844A (en) | A kind of message display method and mobile terminal | |
CN109729301A (en) | A kind of message inspection method and device | |
CN109474747A (en) | A kind of information cuing method and mobile terminal |
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 |