Summary of the invention
The embodiment of the present application provides a kind of message informing method and device, solves the above problem of the existing technology,
Breath light is not present in terminal, and in going out under screen state, realizes the notice of message, improve user experience.
In a first aspect, providing a kind of message informing method, this method may include:
When terminal is in the standby screen-off state, the terminal receives the message of application program;
The program identification of the application program is matched with the program identification of the default application program of storage, it is described pre-
If application program includes preset at least one application program for executing message informing;
If successful match, the corresponding application program of the program identification of successful match in the default application program is determined
For destination application, and trigger the target area work of the terminal display screen, the region display screen of the target area by
Organic Light Emitting Diode OLED is constituted;
The program icon of the destination application is shown in the target area according to predetermined manner.
In an optional realization, the target area includes first object region, according to predetermined manner in the mesh
Mark region shows that the program icon of the destination application includes:
According to the time sequencing for receiving each message in the message, show that the target is answered in the first object region
With the program icon of application program each in program.
In an optional realization, the target area includes first object region, according to predetermined manner in the mesh
Mark region shows that the program icon of the destination application includes:
According to the priority orders of application program, shows in the destination application in the first object region and respectively answer
With the program icon of program, the priority orders of the application program are determined according to the operating frequency of application program.
In an optional realization, the journey of the destination application is shown in the target area according to predetermined manner
After sequence icon, the method also includes:
User is received on the target area to the default trigger action of described program icon;
According to the default trigger action, described program icon is deleted.
In an optional realization, the target area includes the second target area, when the message is charging application
When the message of program, the program icon of the destination application is shown in the target area according to predetermined manner, comprising:
If current electric quantity is not more than the first power threshold, shows in second target area and filled described in the first color
The program icon of electric program;
If current electric quantity is greater than the first power threshold and less than the second power threshold, shown in second target area
The program icon of the charging application program of second color;
If current electric quantity is greater than the second power threshold, the charging of third color is shown in second target area
The program icon of application program;Wherein, first power threshold is less than second power threshold, first color, institute
It is different from the third color to state the second color.
In an optional realization, the journey of the destination application is shown in the target area according to predetermined manner
Sequence icon, comprising:
By the way of being always on or flashing, the program icon of the destination application is shown in the target area.
Second aspect provides a kind of message informing device, the apparatus may include: receiving unit, matching unit, determination
Unit and display unit;
The receiving unit, for receiving the message of application program when terminal is in the standby screen-off state;
The matching unit, for by the program mark of the program identification of the application program and the default application program of storage
Knowledge is matched, and the default application program includes preset at least one application program for executing message informing, and triggers institute
The target area work of terminal display screen is stated, the region display screen of the target area is made of Organic Light Emitting Diode OLED;
The determination unit, if successful match is used for, by the program identification of successful match in the default application program
Corresponding application program is determined as destination application;
The trigger unit, the target area for triggering the terminal display screen work, the region of the target area
Display screen is made of Organic Light Emitting Diode OLED;
The display unit, for showing the program of the destination application in the target area according to predetermined manner
Icon.
In an optional realization, the target area includes first object region, and the display unit is specifically used for
According to the time sequencing for receiving each message in the message, shown in the destination application in the first object region
The program icon of each application program.
In an optional realization, the target area includes first object region, and the display unit is specifically used for
According to the priority orders of application program, each application program in the destination application is shown in the first object region
Program icon, the priority orders of the application program are determined according to the operating frequency of application program.
In an optional realization, described device further includes deleting unit;
The receiving unit is also used to receive user and grasps on the target area to the default triggering of described program icon
Make;
The deletion unit is also used to delete described program icon according to the default trigger action.
In an optional realization, the target area includes the second target area, when the message is charging application
When the message of program, the display unit, if being specifically used for current electric quantity is not more than the first power threshold, in second mesh
Mark region shows the program icon of the charging procedure of the first color;
If current electric quantity is greater than the first power threshold and less than the second power threshold, shown in second target area
The program icon of the charging application program of second color;
If current electric quantity is greater than the second power threshold, the charging of third color is shown in second target area
The program icon of application program;Wherein, first power threshold is less than second power threshold, first color, institute
It is different from the third color to state the second color.
One it is optional realize, the display unit, specifically for by the way of being always on or flashing, in the mesh
Mark region shows the program icon of the destination application.
The third aspect provides a kind of electronic equipment, which includes processor, communication interface, memory and lead to
Believe bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any side in above-mentioned first aspect
Method step.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored in the computer readable storage medium
Calculation machine program, the computer program realize any method and step in above-mentioned first aspect when being executed by processor.
It does not include breath light that the message informing method of the above embodiment of the present invention, which is applied in terminal, or is damaged in breath light
In the case where, when terminal is in the standby screen-off state, terminal receives the message that application program is sent;By the application program
Program identification is matched with the program identification of the default application program of storage, and the default application program includes preset execution
At least one application program of message informing;If successful match, by the program identification pair of successful match in default application program
The application program answered is determined as destination application, and the target area work of triggering terminal display screen, the region of target area
Display screen is made of Organic Light Emitting Diode OLED;The journey of the destination application is shown in target area according to predetermined manner
Sequence icon.This method is in terminal goes out under screen state, realizes the notice of message, improves user experience, can such as user
Intuitively to receive the message content of opposite end transmission, the notice of message is realized;For terminal, terminal is can be improved in this method
Shield accounting.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiments.Based on this
Apply for embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
Message informing method application provided in an embodiment of the present invention is at the terminal.Terminal may include aobvious with what is shielded comprehensively
Show device, and multiple application programs can be installed, such as instant messaging application program, such as QQ, wechat, nail nail, player application
Program, charging application program, security classes application program etc..
The terminal can not include breath light, or provided through the embodiment of the present invention in the case where breath light damage
Message informing method realizes that the notice of message provides user experience so that user checks the message in time.
The terminal can be mobile phone, smart phone, laptop, digit broadcasting receiver, personal digital assistant
(PDA), the user equipmenies such as tablet computer (PAD) (User Equipment, UE), handheld device, mobile unit, wearable device
Deng.
Preferred embodiment of the present application is illustrated below in conjunction with Figure of description, it should be understood that described herein
Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this Shen
Please in embodiment and embodiment in feature can be combined with each other.
Fig. 1 is a kind of flow diagram of the notification method of message provided in an embodiment of the present invention.This method is in apnea
In the terminal of lamp, and the terminal is in the standby screen-off state, as shown in Figure 1, this method may include:
Step 110 receives the message that application program is sent.
Message may include the notification message that at least one application program of terminal installation is sent, and such as apply pushed information,
The instant communication message sent with opposite end, such as short message or wechat information.
Step 120 matches the program identification of the application program with the program identification of the default application program of storage,
Determine destination application.
Before executing the step, terminal analysis message obtains the program identification for sending the corresponding application programs of message, should
Program identification is can be with information such as the title of unique identification application program, codes.
Terminal will send the program identification of the application program of message and the program identification of the default application program of storage carries out
Matching, wherein default application program includes preset at least one application program for executing message informing.
It, will be pre- if sending the program identification successful match of the default advising process of the corresponding program identification of message and storage
If the corresponding application program of the program identification of successful match is determined as destination application in application program.For example, terminal receives
The wechat information sent to wechat, wechat are identified as wechat.If there are wechat mark in the default advising process of storage,
Then determine that wechat is destination application.
Later, Xiang Suoshu terminal display screen sends the idsplay order for being directed to target area, to trigger target area work, mesh
Mark region is preset display programme diagram target area, and the region display screen in the region is made of Organic Light Emitting Diode OLED,
To realize the purpose of local display.
If it fails to match for the program identification of the corresponding program identification of transmission message and the default advising process of storage, terminate
The process.
Step 130, according to predetermined manner target area displaying target application program program icon.
Terminal can store the mapping relations of default application program and program identification, as shown in table 1.
Table 1
Default application program |
Program identification |
Program icon |
Wechat |
wechat |
Icon 1 |
Tencent QQ |
qq |
Icon 2 |
Nail nail |
dingtalk |
Icon 3 |
As shown in Table 1, the default application program of terminal storage includes wechat, Tencent QQ and nail nail.Wherein, the program of wechat
It is identified as wechat, program icon is icon 1;The program identification of Tencent QQ is qq, and program icon is icon 2;Follow closely the program of nail
It is identified as dingtalk, program icon is icon 3.
Wherein, program icon can be penguin icon for official's icon of application program, such as Tencent QQ, be also possible to user
The program icon of application program can be customized for white dot by Custom Icons, such as user.
Terminal can be according to the time sequencing for receiving each message in message, in first object region displaying target application journey
The program icon of each application program in sequence can also show mesh in first object region according to the priority orders of application program
Mark the program icon of each application program in application program.Wherein, the priority orders of application program are the quilts according to application program
What operating frequency determined, specifically: the terminal number that real-time records application program is operated within a preset period of time is worked as with obtaining
The priority orders of preceding application program.The number that application program is operated is more, bigger by operating frequency, and priority is higher.
For example, using destination application as wechat and Tencent QQ, for program icon is official's icon of application program, such as
Shown in Fig. 2, terminal according to the sequence of message receipt times, can successively show that the program icon of wechat is (or " micro- from top to bottom
Believe icon ") and Tencent QQ program icon (or " QQ icon "), can also be according to the priority for the application program being calculated
Sequentially, the program icon of wechat and the program icon of Tencent QQ are successively shown from top to bottom.
Further, if the priority of two application programs is identical in destination application, terminal is according to message at this time
Time sequencing, the program icon of each application program in the displaying target application program of first object region.
Optionally, in order to realize user's do-not-disturb functionality, terminal can receive user on first object region to program
The default trigger action of icon, presets trigger action according to this, and the program icon is deleted on the display screen of terminal.Wherein, should
Trigger action, which can be, to be double-clicked the operation of program icon, pulls operation or long-pressing programme diagram that program icon is slided to a direction
The operation etc. marked and slided to a direction.
Optionally, in order to further increase user experience, when message is the application message that charging application program is sent, eventually
End obtains the current electric quantity of battery, and detects to current electric quantity;
If current electric quantity is not more than the first power threshold, terminal shows that the charging of the first color is answered in the second target area
With the program icon of program;Wherein, the regional location in first object region is different from the regional location of the second target area.
If current electric quantity is greater than the first power threshold and less than the second power threshold, terminal is shown in the second target area
The program icon of the charging application program of second color;
If current electric quantity is greater than the second power threshold, terminal shows the charging application of third color in the second target area
The program icon of program.
Wherein, the first power threshold is less than the second power threshold, and the first color, the second color are different from third color, such as
First color can be red, the second color can be orange and third color and can be green, first object region and second
Target area is different.
Further, it is customized that the program icon for the application program that charges can be lightning icon, battery icon or user
Dot icon, and the program icon of different colours can be set in same position, i.e., the same program icon converts different face
Color also can be set in different location.
As shown in figure 3, being located at first object overlying regions with the second target area, the program icon for the application program that charges is
Battery icon, for destination application is wechat and Tencent QQ, in first object region, terminal will according to priority orders
Wechat icon is shown in above QQ icon;Since the second target area is located at first object overlying regions, therefore battery icon is located at
Above wechat icon.
As shown in figure 4, being the customized dot icon of user and different colours with the program icon for the application program that charges
It is for the 20%, second power threshold is 80%, in current electricity that program icon, which can be set in different location, the first power threshold,
When amount is no more than 20%, terminal is displayed in red dot icon in the second target area;It is greater than 20% in current electric quantity and is less than
When 80%, terminal shows orange dot icon in the second target area;When current electric quantity is greater than 80%, terminal is in the second target
Region shows green dot icon.
Optionally, in order to preferably achieve the effect that notify user, terminal can be by the way of being always on or flashing in mesh
Mark the program icon of region displaying target application program.
It is understood that if above-mentioned message informing method applies the end in terminal or the breath light damage of apnea lamp
On end, then the screen accounting of terminal can be improved, further increases user to the usage experience of terminal.The above embodiment of the present invention
It does not include breath light that message informing method, which is applied in terminal, or in the case where breath light damage, is gone out when terminal is in standby
When screen state, terminal receives the message that application program is sent;By the default application program of the program identification of application program and storage
Program identification matched, default application program include it is preset execute message informing at least one application program;If
With success, then the corresponding application program of the program identification of successful match in default application program is determined as destination application,
And the target area work of triggering terminal display screen, the region display screen of target area are made of Organic Light Emitting Diode OLED;
The program icon of the destination application is shown in target area according to predetermined manner.This method is in screen state of going out in terminal
Under, it realizes the notice of message, improves user experience, such as user, in the message that can intuitively receive opposite end transmission
Hold, realizes the notice of message;For terminal, the screen accounting of terminal is can be improved in this method.
Corresponding with the above method, the embodiment of the present invention also provides a kind of message informing device, as shown in figure 5, the message
Notify that device includes: receiving unit 510, matching unit 520, determination unit 530 and display unit 540;
Receiving unit 510, for when terminal is in the standby screen-off state, receiving the message that application program is sent;
Matching unit 520, for by the program mark of the program identification of the application program and the default application program of storage
Knowledge is matched, and the default application program includes preset at least one application program for executing message informing;
Determination unit 530, if successful match is used for, by the program identification pair of successful match in the default application program
The application program answered is determined as destination application, and triggers the target area work of the terminal display screen, the target area
The region display screen in domain is made of Organic Light Emitting Diode OLED;
The display unit, for showing the programme diagram of the destination application in target area according to predetermined manner
Mark.
One it is optional realize, display unit 540, specifically for according to receive in the message each message when
Between sequence, show the program icon of each application program in the destination application in first object region.
One it is optional realize, display unit 540, specifically for the priority orders according to application program, the
One target area shows the program icon of each application program in the destination application, the priority orders of the application program
It is to be determined according to the operating frequency of application program.
In an optional realization, described device further includes deleting unit 550;
Receiving unit 510 is also used to receive user on the first object region to the default touching of described program icon
Hair operation;
Unit 550 is deleted, is also used to delete described program icon according to the default trigger action.
In an optional realization, when the message is the message that charging application program is sent, display unit 540,
If being not more than the first power threshold specifically for current electric quantity, the charging journey of the first color is shown in the second target area
The program icon of sequence;
If current electric quantity is greater than the first power threshold and less than the second power threshold, second is shown in the second target area
The program icon of the charging application program of color;
If current electric quantity is greater than the second power threshold, the charging application of third color is shown in the second target area
The program icon of program;Wherein, first power threshold is less than second power threshold, first color, described the
Second colors are different from the third color.
One it is optional realize, display unit 540, specifically for by the way of being always on or flashing, in target area
Domain shows the program icon of the destination application.
The function of each functional unit for the message informing device that the above embodiment of the present invention provides, can pass through above-mentioned each side
Method step realizes, therefore, the specific work process of each unit in message informing device provided in an embodiment of the present invention and
Beneficial effect does not repeat again herein.
The embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 6, include processor 610, communication interface 620,
Memory 630 and communication bus 640, wherein processor 610, communication interface 620, memory 630 are complete by communication bus 640
At mutual communication.
Memory 630, for storing computer program;
Processor 610 when for executing the program stored on memory 630, realizes following steps:
When terminal is in the standby screen-off state, terminal receives the message that application program is sent;
The program identification of the application program is matched with the program identification of the default application program of storage, it is described pre-
If application program includes preset at least one application program for executing message informing;
If successful match, the corresponding application program of the program identification of successful match in the default application program is determined
For destination application, and trigger the target area work of the terminal display screen, the region display screen of the target area by
Organic Light Emitting Diode OLED is constituted;
The program icon of the destination application is shown in target area according to predetermined manner.
In an optional realization, the programme diagram of the destination application is shown in target area according to predetermined manner
Mark includes:
According to the time sequencing for receiving each message in the message, the target application journey is shown in first object region
The program icon of each application program in sequence.
In an optional realization, the programme diagram of the destination application is shown in target area according to predetermined manner
Mark includes:
According to the priority orders of application program, show in the destination application in first object region respectively using journey
The program icon of sequence, the priority orders of the application program are determined according to the operating frequency of application program.
In an optional realization, the programme diagram of the destination application is shown in target area according to predetermined manner
After mark, the method also includes:
User is received on the first object region to the default trigger action of described program icon;
According to the default trigger action, described program icon is deleted.
In an optional realization, when the message is the message that charging application program is sent, according to predetermined manner
The program icon of the destination application is shown in target area, comprising:
If current electric quantity is not more than the first power threshold, the charging journey of the first color is shown in the second target area
The program icon of sequence;
If current electric quantity is greater than the first power threshold and less than the second power threshold, second is shown in the second target area
The program icon of the charging application program of color;
If current electric quantity is greater than the second power threshold, the charging application of third color is shown in the second target area
The program icon of program;Wherein, first power threshold is less than second power threshold, first color, described the
Second colors are different from the third color.
In an optional realization, the programme diagram of the destination application is shown in target area according to predetermined manner
Mark, comprising:
By the way of being always on or flashing, the program icon of the destination application is shown in target area.
Communication bus mentioned above can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
The embodiment and beneficial effect solved the problems, such as due to each device of electronic equipment in above-described embodiment can join
Each step in embodiment as shown in Figure 1 realizes, therefore, the specific works mistake of electronic equipment provided in an embodiment of the present invention
Journey and beneficial effect, do not repeat again herein.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment
The message informing method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any message informing method in above-described embodiment.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can provide as method, system or meter
Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment can be used in the embodiment of the present application or combine soft
The form of the embodiment of part and hardware aspect.Moreover, being can be used in the embodiment of the present application in one or more wherein includes meter
Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the optical memory of calculation machine usable program code
Deng) on the form of computer program product implemented.
It is referring to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application
The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or
The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can mention
For the processing of these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other programmable datas
The processor of equipment is to generate a machine, so that being executed by computer or the processor of other programmable data processing devices
Instruction generation refer to for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of fixed function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows
Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain
Being includes preferred embodiment and all change and modification for falling into range in the embodiment of the present application.
Obviously, those skilled in the art embodiment in the embodiment of the present application can be carried out various modification and variations without
It is detached from the spirit and scope of embodiment in the embodiment of the present application.If in this way, in the embodiment of the present application embodiment these modification
Within the scope of belonging in the embodiment of the present application claim and its equivalent technologies with modification, then also it is intended in the embodiment of the present application
It includes these modifications and variations.