CN105094549B - Show the method and device of message - Google Patents
Show the method and device of message Download PDFInfo
- Publication number
- CN105094549B CN105094549B CN201510429074.1A CN201510429074A CN105094549B CN 105094549 B CN105094549 B CN 105094549B CN 201510429074 A CN201510429074 A CN 201510429074A CN 105094549 B CN105094549 B CN 105094549B
- Authority
- CN
- China
- Prior art keywords
- application
- color
- message
- characteristic color
- notification bar
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000012545 processing Methods 0.000 claims description 15
- 239000003086 colorant Substances 0.000 claims description 11
- 239000000203 mixture Substances 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000004891 communication Methods 0.000 description 9
- 101100264195 Caenorhabditis elegans app-1 gene Proteins 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004040 coloring Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000021384 green leafy vegetables Nutrition 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to a kind of method and devices for showing message, belong to field of terminal technology.The described method includes: obtaining the application icon of new information and application when detecting has new information to be shown in any one application;According to the application icon of application, the characteristic color of application is determined;Notification bar banner is drawn using characteristic color as background colour, shows message in the notification bar banner of drafting.The present invention determines the characteristic color of application according to application icon, and the message of different application is shown in the notification bar banner with different background color, not only enriches the display format of message, but also improve user to the identification of new information.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of method and devices for showing message.
Background technique
In the modern life, mobile terminal is increasingly becoming the essential component part of user.In order to satisfy the use demand,
User is mounted with various applications in the terminal, for example, shopping application, navigation application, reading application, game application, social activity
Using etc..In order to avoid user leaves any splendid contents or important messages, when detecting that it is to be shown that any application has
When new information, mobile terminal can show the new information in notification bar banner.
Summary of the invention
The present invention provides a kind of method and device for showing message.
According to a first aspect of the embodiments of the present invention, a kind of method showing message is provided, which comprises
When detecting has new information to be shown in any one application, the application of the new information and the application is obtained
Icon;
According to the application icon of the application, the characteristic color of the application is determined;
Notification bar banner is drawn using the characteristic color as background colour, is disappeared described in display in the notification bar banner of drafting
Breath.
Optionally, the application icon according to the application, determines the characteristic color of the application, comprising:
Graphic form is converted by the application icon of the application, obtains Target Photo;
Obtain the color of each pixel on the Target Photo;
Each color number of corresponding pixels is counted;
Using the largest number of colors of pixel as the characteristic color of the application.
Optionally, the method also includes:
When the characteristic color of at least two applications is identical, according to pre-set priority, the characteristic color is made
For the target signature color of the application of highest priority, the characteristic color is successively reduced into preset quantity coloration, by coloration
The target signature color of color after the reduction application low as priority.
Optionally, described according to pre-set priority, using the characteristic color as the application of highest priority
Before target signature color, further includes:
Each application is ranked up according to the sequence of user's frequency of use from high to low, is each to answer according to ranking results
With setting priority.
Optionally, it is described show the message in the notification bar banner of drafting after, further includes:
When detecting the notification bar banner for no longer showing the drafting to the message when checking operation.
According to a second aspect of the embodiments of the present invention, a kind of device for showing message is provided, described device includes:
Obtain module, for when detect any one application in have new information to be shown when, obtain the new information and
The application icon of the application;
Determining module determines the characteristic color of the application for the application icon according to the application;
Drafting module, for drawing notification bar banner using the characteristic color as background colour;
Display module, for showing the message in the notification bar banner of drafting.
Optionally, the determining module obtains target figure for converting graphic form for the application icon of the application
Piece;Obtain the color of each pixel on the Target Photo;Each color number of corresponding pixels is counted;By picture
Characteristic color of the largest number of colors of vegetarian refreshments as the application.
Optionally, described device further include:
Processing module, when the characteristic color for applying when at least two is identical, according to pre-set priority, by institute
The target signature color of application of the characteristic color as highest priority is stated, the characteristic color is successively reduced into preset quantity
Coloration, the target signature color of color after coloration the is reduced application low as priority.
Optionally, described device further include:
Sorting module, for being ranked up to each application according to the sequence of user's frequency of use from high to low;
Setup module, for being that priority is arranged in each application according to ranking results.
Optionally, described device further include:
Hidden module, for no longer showing the notification bar of the drafting when detecting to the message when checking operation
Banner.
According to a third aspect of the embodiments of the present invention, a kind of device for showing message is provided, described device includes:
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
When detecting has new information to be shown in any one application, the application of the new information and the application is obtained
Icon;
According to the application icon of the application, the characteristic color of the application is determined;
Notification bar banner is drawn using the characteristic color as background colour, is disappeared described in display in the notification bar banner of drafting
Breath.
The technical solution that the embodiment of the present invention provides can include the following benefits:
According to application icon, the characteristic color of application is determined, and the message of different application is shown with different back
In the notification bar banner of scenery, the display format of message is not only enriched, but also improves user to the identification of new information.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets reality of the invention
Example is applied, and is used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method for showing message shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of method for showing message shown according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of terminal display interface shown according to an exemplary embodiment.
Fig. 4 is a kind of structural schematic diagram of device for showing message shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device for showing message shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of method for showing message shown according to an exemplary embodiment, as shown in Figure 1, aobvious
Show the method for message for including the following steps in terminal.
In a step 101, when detecting has new information to be shown in any one application, new information and application are obtained
Application icon.
In a step 102, according to the application icon of application, the characteristic color of application is determined.
In step 103, notification bar banner is drawn using characteristic color as background colour, is shown in the notification bar banner of drafting
Show message.
Method provided in an embodiment of the present invention determines the characteristic color of application according to application icon, and by different application
Message be shown in the notification bar banner with different background color, not only enrich the display format of message, but also improve
Identification of the user to new information.
In another embodiment of the present invention, according to the application icon of application, the characteristic color of application is determined, comprising:
Graphic form is converted by the application icon of application, obtains Target Photo;
Obtain the color of each pixel on Target Photo;
Each color number of corresponding pixels is counted;
Using the largest number of colors of pixel as the characteristic color of application.
In another example of the invention, this method further include:
When the characteristic color of at least two applications is identical, according to pre-set priority, using characteristic color as excellent
Characteristic color is successively reduced preset quantity coloration, after coloration is reduced by the target signature color of the first highest application of grade
The target signature color of the color application low as priority.
In another embodiment of the present invention, according to pre-set priority, most using characteristic color as priority
Before the target signature color of high application, further includes:
Each application is ranked up according to the sequence of user's frequency of use from high to low, is each to answer according to ranking results
With setting priority.
In another example of the invention, after showing message in the notification bar banner of drafting, further includes:
When detecting the notification bar banner for no longer showing drafting to message when checking operation.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Fig. 2 is a kind of flow chart of method for showing message shown according to an exemplary embodiment, as shown in Fig. 2, aobvious
Show the method for message for including the following steps in terminal.
In step 201, when detect any one application in have new information to be shown when, terminal obtain the new information and
The application icon of the application.
In the present embodiment, terminal can be the equipment having a display function such as mobile phone, tablet computer, game machine.In order to
Meet the various demands of user, multiple applications are installed in terminal, as audio plays application, shopping application, navigation application, reading
Using etc..These are applied is shown in the form of application icon in terminal display interface, when user needs using a certain
In application, application icon of the user by the touch-control application in terminal display interface, can trigger the terminal operating application, to obtain
Get corresponding service.
To make user understand the up-to-date information of application in time, application server can periodically into terminal, application be pushed away accordingly
Send new information.Certainly, in terminal application can also real time scan application server, have new information on application server when detecting
When, obtain the new information.In order to avoid user leaves any splendid contents or important messages, when terminal detects any application
In when having new information to be shown, terminal will acquire the new information in the application.Meanwhile terminal also will acquire the application of the application
Icon, in order to determine the background colour of notification bar banner, and then will in the next steps according to the application icon of the application
New information is shown in the notification bar banner of drafting, thus the display format of abundant message.
In step 202, terminal determines the characteristic color of application according to the application icon of application.
Wherein, characteristic color is the representative color of each application, is determined by each color that forms of application icon.
Terminal is in the application icon according to application, when determining the characteristic color of application, including but not limited to following steps (1)
~(4):
(1), the application icon of application is converted graphic form by terminal, obtains Target Photo.
For the ease of extracting the characteristic color for extracting application from application icon, terminal is in the application drawing for getting application
After mark, the application icon for needing will acquire is converted into graphic form, and the picture after the conversion is Target Photo.
(2), terminal obtains the color of each pixel on Target Photo.
In field of image processing, every picture is all each pixel for being made of a large amount of pixel, and constituting picture
Colouring information is all had, therefore, when terminal gets Target Photo, terminal can get each pixel on Target Photo
Colouring information.In order to be precisely determined the specific color of each pixel, terminal can will be from each pixel of Target Photo
In the colouring information that extracts mark out to come in coordinate, to determine the tool of each pixel according to annotation results
Body color.
(3), terminal counts each color number of corresponding pixels.
After determining the specific color of each pixel, terminal is by the corresponding pixel of each color to Target Photo
Number is counted, to determine ratio shared by each color in Target Photo.
(4), terminal is using the largest number of colors of pixel as the characteristic color of application.
After the mode being all made of in above-mentioned (3) to the corresponding pixel of each color counts, tied according to statistics
Fruit, terminal can the corresponding pixel of each composition color to Target Photo be ranked up according to sequence from more to less, it
Afterwards, ranking results are based on, using the largest number of colors of pixel as the characteristic color of application.
For the above process, in order to make it easy to understand, will be illustrated below with a specific example.
For example, having a new information to be shown when terminal is got in reading application, terminal gets the new information, together
When get read application application icon.Based on the application icon got, the application icon is converted picture shape by terminal
Formula obtains Target Photo, if Target Photo is made of 1000 pixels, extracts from each pixel of Target Photo
Color has white, green, blue three kinds of colors, wherein white number of corresponding pixels is 100, the corresponding pixel of green
The number of point is 850, and the number of the corresponding pixel of blue is 50, and then by white, green, the corresponding pixel of blue
Number is ranked up from more to less, ranking results are as follows: green, white, blue, and then by the largest number of colors greens of pixel
As the characteristic color for reading application.
It is above-mentioned to be illustrated so that terminal gets a new information and application icon to be shown as an example, however, in reality
In, when at least two applications get new information from corresponding application server simultaneously, terminal will be got simultaneously
At least two new informations and at least two application icons, if terminal determines at least two according to the application icon got
The characteristic color of application is identical, and terminal needs the priority according to each application at this time, determines accordingly for each application again
Target signature color.And before this, terminal needs that priority is arranged for each application in advance.Specific terminal is every in advance
When a application setting priority, it is statistics available go out specified duration in user to the access times of each application, which can be with
For one day, a week, one month etc., and according to specified duration and user in specified duration to the use time of each application
Number, calculates the frequency of use of each application, and the sequence according to frequency of use from high to low, is ranked up to each application,
Ranking results are obtained, and then are that priority is arranged in each application according to ranking results.
For example, installed in terminal application have read application, travel application, shopping application, voice applications, Video Applications,
Game application, social application, short message application, telephone book applications, talk application, user makes these applications in one month
As follows with situation: user is answered using 10 times, travel application 5 times, shopping application 60 times, voice applications 50 times, video using reading
300 times, telephone book applications 20 times, talk application 200 times are applied with 40 times, game application 6 times, social application 90 times, short message,
Each application is ranked up according to the sequence of frequency of use from high to low, obtains ranking results are as follows: short message application, call
Using, social application, shopping application, voice applications, Video Applications, read application, game application and travel application, according to sequence
As a result, the priority that terminal is short message application setting is the first order, is that the priority that talk application is arranged is the second level, is society
The priority of application setting is handed over to be the third level, be that the priority that shopping application is arranged is the fourth stage, is the excellent of voice applications setting
First grade is level V, is that the priority that Video Applications are arranged is the 6th grade, is to read the priority that application is arranged to be the 7th grade, be
Game application setting priority be the 8th grade, be travel application setting priority be the 9th grade.
Based on pre-set priority, when the characteristic color for determining at least two applications is identical, terminal can be according to
Pre-set priority determines corresponding target signature color for each application.When it is implemented, terminal can will be identical
Target signature color of the characteristic color as the application of highest priority, and characteristic color is reduced into preset quantity coloration, into
And the target signature color of the application high as priority second of the color after reducing coloration, next, terminal is by priority
The target signature color reduction preset quantity coloration of second high application, and the color after coloration is reduced is as priority
The target signature color of three high applications.It circuits sequentially and executes the process, until target signature color is determined in each application.Its
In, preset quantity can be 3,4,5 etc..
Still by taking above-mentioned example as an example, if the new information that terminal gets short message application simultaneously and social application is sent,
When the application icon applied according to short message, the characteristic color of short message application is determined for green, according to answering for social application
With icon, when the characteristic color for determining social application is also green, terminal gets short message from pre-set priority
The priority of breath application is the first order, and the priority of social application is the third level, then terminal is by green as short message application
Target signature color, the color after green is reduced preset quantity coloration is as the target signature color of social application.
In step 203, terminal draws notification bar banner using characteristic color as background colour.
Based on the characteristic color got, terminal will draw out from the background notification bar cross using this feature color as background colour
Width.
In step 204, terminal shows message in the notification bar banner of drafting.
After notification bar banner is completed, the message that terminal can will acquire is added in notification bar banner, in turn
Notification bar banner is shown in the display interface.
In the present embodiment, message content, application icon etc. are had in showing in notification bar banner.Notification bar banner exists
There are many situations for position in terminal display interface, that is, can be displayed in the top of terminal display interface, also may be displayed on display
The lower section at interface, the present embodiment are not defined position of the notification bar banner in terminal display interface.
In order to intuitively show, using message shown by method provided in this embodiment, said by taking Fig. 3 as an example below
It is bright.
Referring to Fig. 3, when detecting has new information to be shown in app1, terminal obtains the application icon of app1, according to
The application icon gets the characteristic color of app1 as white, and later, terminal is that background colour draws out notification bar cross with white
Width, and then will be shown in notification bar banner from the new information got in app1, it is specific to show that result can be found in Fig. 3
In (A) figure.When detecting has new information to be shown in app2, terminal obtains the application icon of app2, according to the application
Icon, the characteristic color for getting app1 is grey, and later, terminal draws out notification bar banner by background colour of grey, in turn
It will be shown in notification bar banner from the new information got in app2, it is specific to show that result can be found in (B) in Fig. 3
Figure.
When terminal is got at least, two new informations can when terminal shows the new information got in notification bar banner
According to the acquisition time of new information, the new information received is successively shown.For example, can to will acquire time recent news excellent for terminal
It is first shown in notification bar banner, and when showing that the duration of this new information reaches preset duration, it is hidden by the way of rolling
This new information is hidden, while showing the closer another new information of receiving time.
In addition, in order to avoid the message of reading in notification bar banner interferes user, when detecting user to notice
After message is checked in column banner, terminal will no longer be shown the notification bar banner.
Method provided in an embodiment of the present invention determines the characteristic color of application according to application icon, and by different application
Message be shown in the notification bar banner with different background color, not only enrich the display format of message, but also improve
Identification of the user to new information.
Fig. 4 is a kind of structural schematic diagram of device for showing message shown according to an exemplary embodiment.Reference Fig. 4,
The device includes: to obtain module 401, determining module 402, drafting module 403 and display module 404.
The acquisition module 401 is configured as when detecting has new information to be shown in any one application, and acquisition newly disappears
Breath and the application icon of application;
The determining module 402 is configured as the application icon according to application, determines the characteristic color of application;
The drafting module 403 is configured as drawing notification bar banner using characteristic color as background colour;
The display module 404 is configured as showing message in the notification bar banner of drafting.
In another embodiment of the present invention, the application icon which is configured as to apply is converted into
Graphic form obtains Target Photo;Obtain the color of each pixel on Target Photo;To each color corresponding pixel
Number is counted;Using the largest number of colors of pixel as the characteristic color of application.
In another embodiment of the present invention, device further include: processing module.
The processing module is configured as when the characteristic color of at least two applications is identical, according to pre-set preferential
Characteristic color is successively reduced preset quantity using characteristic color as the target signature color of the application of highest priority by grade
Coloration, the target signature color of color after coloration the is reduced application low as priority.
In another embodiment of the present invention, device further include: sorting module and setup module.
The sorting module is configured as being ranked up each application according to the sequence of user's frequency of use from high to low;
The setup module is configured as being that priority is arranged in each application according to ranking results.
In another embodiment of the present invention, device further include: hidden module.
The hidden module is configured as when detecting that the notification bar for no longer showing drafting to message when checking operation is horizontal
Width.
Device provided in an embodiment of the present invention determines the characteristic color of application according to application icon, and by different application
Message be shown in the notification bar banner with different background color, not only enrich the display format of message, but also improve
Identification of the user to new information.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is a kind of block diagram of means for displaying messages 500 shown according to an exemplary embodiment.For example, dress
Setting 500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply
Component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor module 514, Yi Jitong
Believe component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just
Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate
Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown
Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system
System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike
Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set
Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented
Estimate.For example, sensor module 514 can detecte the state that opens/closes of device 500, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device
Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500
Temperature change.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 514 can also include that optical sensor is used for such as CMOS or ccd image sensor
It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes
Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device executes, so that mobile terminal is able to carry out a kind of method for showing message, which comprises
When detecting has new information to be sent in any one application, the application icon of new information and application is obtained;
According to the application icon of application, the characteristic color of application is determined;
Notification bar banner is drawn using characteristic color as background colour, shows message in the notification bar banner of drafting.
In another embodiment of the present invention, according to the application icon of application, the characteristic color of application is determined, comprising:
Graphic form is converted by the application icon of application, obtains Target Photo;
Obtain the color of each pixel on Target Photo;
Each color number of corresponding pixels is counted;
Using the largest number of colors of pixel as the characteristic color of application.
In another embodiment of the present invention, this method further include:
When the characteristic color of at least two applications is identical, according to pre-set priority, using characteristic color as excellent
Characteristic color is successively reduced preset quantity coloration, after coloration is reduced by the target signature color of the first highest application of grade
The target signature color of the color application low as priority.
In another embodiment of the present invention, according to pre-set priority, most using characteristic color as priority
Before the target signature color of high application, further includes:
Each application is ranked up according to the sequence of user's frequency of use from high to low, is each to answer according to ranking results
With setting priority.
In another embodiment of the present invention, after showing message in the notification bar banner of drafting, further includes:
When detecting the notification bar banner for no longer showing drafting to message when checking operation.
Non-transitorycomputer readable storage medium provided in an embodiment of the present invention is determined to apply according to application icon
Characteristic color, and the message of different application is shown in the notification bar banner with different background color, not only enriches and disappear
The display format of breath, and user is improved to the identification of new information.
Those skilled in the art are considering specification and after practicing disclosure disclosed herein, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (9)
1. a kind of method for showing message, which is characterized in that the described method includes:
When detecting has new information to be shown in any one application, the application drawing of the new information and the application is obtained
Mark;
According to the application icon of the application, the characteristic color of the application is determined, wherein the characteristic color is by the application
Each composition color of icon determines;
Notification bar banner is drawn using the characteristic color as background colour, shows the message in the notification bar banner of drafting;
When the characteristic color of at least two applications is identical, according to pre-set priority, using the characteristic color as excellent
The characteristic color is successively reduced preset quantity coloration, coloration is reduced by the target signature color of the first highest application of grade
The target signature color of the application low as priority of color afterwards.
2. the method according to claim 1, wherein the application icon according to the application, determine described in
The characteristic color of application, comprising:
Graphic form is converted by the application icon of the application, obtains Target Photo;
Obtain the color of each pixel on the Target Photo;
Each color number of corresponding pixels is counted;
Using the largest number of colors of pixel as the characteristic color of the application.
3. the method according to claim 1, wherein described according to pre-set priority, by the feature
Before color is as the target signature color of the application of highest priority, further includes:
Each application is ranked up according to the sequence of user's frequency of use from high to low, is that each application is set according to ranking results
Set priority.
4. the method according to claim 1, wherein described show the message in the notification bar banner of drafting
Later, further includes:
When detecting the notification bar banner for no longer showing the drafting to the message when checking operation.
5. a kind of device for showing message, which is characterized in that described device includes:
Module is obtained, for obtaining the new information and described when detecting has new information to be shown in any one application
The application icon of application;
Determining module determines the characteristic color of the application for the application icon according to the application, wherein the feature
Color is determined by each color that forms of the application icon;
Drafting module, for drawing notification bar banner using the characteristic color as background colour;
Display module, for showing the message in the notification bar banner of drafting;
Processing module, when the characteristic color for applying when at least two is identical, according to pre-set priority, by the spy
Target signature color of the color as the application of highest priority is levied, the characteristic color is successively reduced into preset quantity color
It spends, the target signature color of the application low as priority of the color after coloration is reduced.
6. device according to claim 5, which is characterized in that the determining module, for by the application drawing of the application
Mark is converted into graphic form, obtains Target Photo;Obtain the color of each pixel on the Target Photo;To each color pair
The pixel number answered is counted;Using the largest number of colors of pixel as the characteristic color of the application.
7. device according to claim 5, which is characterized in that described device further include:
Sorting module, for being ranked up to each application according to the sequence of user's frequency of use from high to low;
Setup module, for being that priority is arranged in each application according to ranking results.
8. device according to claim 5, which is characterized in that described device further include:
Hidden module, for when detecting the notification bar banner for no longer showing the drafting to the message when checking operation.
9. a kind of device for showing message characterized by comprising
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
When detecting has new information to be shown in any one application, the application drawing of the new information and the application is obtained
Mark;
According to the application icon of the application, the characteristic color of the application is determined, wherein the characteristic color is by the application
Each composition color of icon determines;
Notification bar banner is drawn using the characteristic color as background colour, shows the message in the notification bar banner of drafting;
When the characteristic color of at least two applications is identical, according to pre-set priority, using the characteristic color as excellent
The characteristic color is successively reduced preset quantity coloration, coloration is reduced by the target signature color of the first highest application of grade
The target signature color of the application low as priority of color afterwards.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510429074.1A CN105094549B (en) | 2015-07-20 | 2015-07-20 | Show the method and device of message |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510429074.1A CN105094549B (en) | 2015-07-20 | 2015-07-20 | Show the method and device of message |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105094549A CN105094549A (en) | 2015-11-25 |
| CN105094549B true CN105094549B (en) | 2019-03-15 |
Family
ID=54575134
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510429074.1A Active CN105094549B (en) | 2015-07-20 | 2015-07-20 | Show the method and device of message |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105094549B (en) |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105681554B (en) * | 2016-01-07 | 2019-03-12 | 努比亚技术有限公司 | Floating electro-optical device and method |
| CN106156300A (en) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | A kind of notification message display packing and device |
| CN106101433B (en) * | 2016-07-04 | 2019-03-15 | 北京小米移动软件有限公司 | Notification message display method and device |
| CN106201545A (en) * | 2016-07-20 | 2016-12-07 | 北京小米移动软件有限公司 | The processing method of Toast message, device and terminal |
| CN106873996A (en) * | 2017-02-13 | 2017-06-20 | 广州优视网络科技有限公司 | Adaptation application notifies method, device and the computing device of color under Android system |
| CN106951138B (en) * | 2017-03-08 | 2020-11-03 | 广东智媒云图科技股份有限公司 | Icon fuzzification method and device |
| CN107241432B (en) * | 2017-07-07 | 2021-08-17 | 北京小米移动软件有限公司 | Message receiving method, apparatus, electronic device and computer storable medium |
| CN107294844B (en) * | 2017-08-21 | 2020-08-04 | 武汉斗鱼网络科技有限公司 | Message display method and device |
| CN107562322B (en) * | 2017-09-07 | 2020-10-09 | 北京小米移动软件有限公司 | Page switching method and device |
| CN107908320A (en) * | 2017-10-27 | 2018-04-13 | 上海京颐科技股份有限公司 | Show page switching method and device, computer-readable recording medium |
| CN112400305B (en) * | 2018-09-05 | 2022-03-11 | 深圳市欢太科技有限公司 | Message prompting method and related products |
| CN112583695B (en) * | 2019-09-29 | 2022-05-10 | 腾讯科技(深圳)有限公司 | Message display method |
| CN111158809A (en) * | 2019-12-12 | 2020-05-15 | 北京达佳互联信息技术有限公司 | Message interface display method and device, electronic equipment and storage medium |
| CN113806001A (en) * | 2021-09-24 | 2021-12-17 | 维沃移动通信有限公司 | Display method and device and electronic equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102855051A (en) * | 2012-08-15 | 2013-01-02 | 中兴通讯股份有限公司 | Method and device for processing application shortcut |
| CN103092466A (en) * | 2013-01-22 | 2013-05-08 | 北京小米科技有限责任公司 | Method and device of mobile terminal operating |
| CN104394268A (en) * | 2014-11-14 | 2015-03-04 | 广东欧珀移动通信有限公司 | Message reminder method and device based on breathing light |
| CN104516647A (en) * | 2014-12-24 | 2015-04-15 | 小米科技有限责任公司 | Notification message processing method and device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9361132B2 (en) * | 2011-02-08 | 2016-06-07 | Qualcomm Incorporated | System and method for providing application-based user interface features on a computing device |
| CN104077091B (en) * | 2013-03-29 | 2017-08-29 | 联想(北京)有限公司 | A kind of display processing method and electronic equipment |
| CN104407827B (en) * | 2014-10-31 | 2018-01-23 | 广东欧珀移动通信有限公司 | The method and mobile terminal of message are shown in a kind of informing |
-
2015
- 2015-07-20 CN CN201510429074.1A patent/CN105094549B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102855051A (en) * | 2012-08-15 | 2013-01-02 | 中兴通讯股份有限公司 | Method and device for processing application shortcut |
| CN103092466A (en) * | 2013-01-22 | 2013-05-08 | 北京小米科技有限责任公司 | Method and device of mobile terminal operating |
| CN104394268A (en) * | 2014-11-14 | 2015-03-04 | 广东欧珀移动通信有限公司 | Message reminder method and device based on breathing light |
| CN104516647A (en) * | 2014-12-24 | 2015-04-15 | 小米科技有限责任公司 | Notification message processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105094549A (en) | 2015-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105094549B (en) | Show the method and device of message | |
| CN105204846B (en) | Display methods, device and the terminal device of video pictures in more people's videos | |
| US20180046336A1 (en) | Instant Message Processing Method and Apparatus, and Storage Medium | |
| US20170304735A1 (en) | Method and Apparatus for Performing Live Broadcast on Game | |
| US11334225B2 (en) | Application icon moving method and apparatus, terminal and storage medium | |
| EP3125547A1 (en) | Method and device for switching color gamut mode | |
| US10509540B2 (en) | Method and device for displaying a message | |
| EP3731088B1 (en) | Method and device for displaying information and storage medium | |
| CN105404438B (en) | Blurred background method, apparatus and terminal device | |
| US10599288B2 (en) | Method and device for displaying an application interface | |
| EP3145164A1 (en) | Method and device for displaying answer extension function | |
| CN105260732A (en) | Image processing method and device | |
| CN105138259A (en) | Operation execution method and operation execution device | |
| US11243660B2 (en) | Method and device for displaying application, and storage medium | |
| KR20170022967A (en) | Method and device for displaying badge of icon | |
| EP3232314A1 (en) | Method and device for processing an operation | |
| CN105511777B (en) | Session display method and device on touch display screen | |
| CN104461236A (en) | Method and device for displaying application icons | |
| CN105488829B (en) | Generate the method and device of head portrait | |
| EP3291508A1 (en) | Message pushing method and device, and terminal equipment | |
| JP2016535527A (en) | Call transfer method, apparatus and terminal, program, and recording medium | |
| CN105242837B (en) | Five application page acquisition methods and terminal | |
| CN104750478B (en) | The display methods and device of application interface | |
| CN106681600A (en) | Information display method and device | |
| CN104113622B (en) | Method and apparatus for adding contact information in address book |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |