[content of the invention]
In view of this, the invention provides a kind of message back method and apparatus, in order to simplify user and return
The operation of multiple message, it is achieved quickly revert.
Concrete technical scheme is as follows:
The invention provides a kind of message back method, the method includes:
When receiving new message, window at screen predeterminable area shows the relevant information of described message;
When described window is shown on screen, if capturing default message back gesture, then at described window
Edit box is shown in Kou.
According to the present invention one preferred embodiment, the method also includes: trigger, if captured, the hand that message sends
The content of input in described edit box is sent to the sender of described message by gesture.
According to the present invention one preferred embodiment, the window at screen predeterminable area shows the related letter of described message
Breath includes:
Obtain and the corresponding template of described type of message, the relevant information of described message is inserted template and disappears to generate
Breath window, adds described message window to the predeterminable area of system windows top.
According to the present invention one preferred embodiment, the relevant information of described message includes following at least one or any
Combination:
Type of message mark, the sender information of message, message text and message receipt times.
According to the present invention one preferred embodiment, described message back gesture includes:
The gesture slided to first direction or the gesture of click reply button.
According to the present invention one preferred embodiment, the method also includes:
When described window is shown on screen, if not capturing touch screen gesture within the setting time, then cancel
Display on screen for the described window;Or,
When described window is shown on screen, if capturing the default gesture cancelling display, then cancel institute
State display on screen for the window, the gesture that described cancellation shows include to second direction slide gesture or
Click on the gesture of cancel button.
According to the present invention one preferred embodiment, if described capture default message back gesture, the method
Also include: call input method interface and on screen display input method panel.
According to the present invention one preferred embodiment, when receiving new message, in described window, show that part disappears
Breath text, type of message mark or message number;
Described capture default message check gesture or default message back gesture when, in described window
Display full message text.
According to the present invention one preferred embodiment, the method also includes: if capturing in described edit box defeated
Enter content, in described window, show send button;
The gesture that described triggering message sends includes: click on described send button.
According to the present invention one preferred embodiment, the method also includes:
When described window is shown on screen, if capturing the gesture checking service management, then jump to institute
State the corresponding application interface of message or system interface.
According to the present invention one preferred embodiment, the method is performed by notifications center.
According to the present invention one preferred embodiment, after application receives new message, described new message is sent
To described notifications center;
The content of input in described edit box is sent to described application by described notifications center, is answered by described
With the sender that described content is sent to described message.
Present invention also offers a kind of message back device, this device includes: interface unit, windows units and catch
Catch unit;
Described interface unit, for receiving new message;
Described windows units, for showing the relevant information of described message at the window of screen predeterminable area;Institute
State window when being shown on screen, if described capture unit captures default message back gesture, then exist
Described window shows edit box;
Described capture unit, is used for catching touch screen gesture.
According to the present invention one preferred embodiment, described windows units, catch if being additionally operable to described capture unit
Grasp and trigger the gesture that message sends, then the content of input in described edit box is supplied to described interface list
Unit;
Described interface unit, is additionally operable to be sent to the content that described windows units provides the transmission of described message
Person.
According to the present invention one preferred embodiment, described windows units shows institute at the window of screen predeterminable area
When stating the relevant information of message, specifically perform:
Obtain and the corresponding template of described type of message, the relevant information of described message is inserted template to generate
Message window, adds described message window to the predeterminable area of system windows top.
According to the present invention one preferred embodiment, the relevant information of described message includes following at least one or group
Close:
Type of message mark, the sender information of message, message text and message receipt times.
According to the present invention one preferred embodiment, described message back gesture includes:
The gesture slided to first direction or the gesture of click reply button.
It according to the present invention one preferred embodiment, described windows units, is additionally operable to be shown in screen at described window
When upper, if described capture unit does not captures touch screen gesture within the setting time, then cancelled described window and exist
Display on screen;Or,
When described window is shown on screen, if described capture unit captures default cancellation display
Gesture, then cancel display on screen for the described window, and the gesture that described cancellation shows includes to second direction
The gesture slided or the gesture of click cancel button.
According to the present invention one preferred embodiment, described windows units, catch if being additionally operable to described capture unit
Grasp default message back gesture, call input method interface and on screen display input method panel.
According to the present invention one preferred embodiment, described windows units receives new disappearing at described interface unit
During breath, described window shows part message text, type of message mark or message number;Catch described
Catch unit and capture default message when checking gesture or default message back gesture, aobvious in described window
Show full message text.
According to the present invention one preferred embodiment, described windows units, catch if being additionally operable to described capture unit
To input content in described edit box, then in described window, show send button;
The gesture that described triggering message sends includes: click on described send button.
It according to the present invention one preferred embodiment, described windows units, is additionally operable to be shown in screen at described window
When on curtain, if described capture unit captures the gesture checking service management, then jump to described message pair
The application interface answered or system interface.
According to the present invention one preferred embodiment, this device is arranged at notifications center.
According to the present invention one preferred embodiment, described interface unit receives after application receives new message and sends
The described new message come;The content that described windows units provides is sent to described application, by described application
Described content is sent to the sender of described message.
As can be seen from the above technical solutions, the message back mode that the present invention provides only needs user to perform
The gesture that message back gesture, input content to be replied and execution trigger message transmission can complete to disappear
Breath is replied, and without jumping to the corresponding application interface of message, the prior art that compares simplifies user behaviour
Make, shorten duration.
[detailed description of the invention]
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specifically
Embodiment describes the present invention.
In embodiments of the present invention, when the application running in intelligent terminal receives new message,
The message that this is new can be sent to notifications center, by notifications center, the message that this is new be shown
On screen.This application can be the application of system level, it is also possible to be the application of common grade.System
The application note of rank, system mailbox, phone directory, camera etc.;The application of common grade such as QQ,
The instant messaging class application such as contact, wechat, shopping class application, news category application, game class application etc..
For example when note application receives new note, by this short message sending to notifications center, shopping class should
With when receiving new PUSH message, this PUSH message is sent to notifications center, instant messaging class
When application receives new message, transmit the message to notifications center, etc..Below in conjunction with reality
The processing procedure executing the example message new to this to notifications center is described in detail.
The method flow diagram that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, the method can be wrapped
Include following steps:
In 401, when receiving new message, window at screen predeterminable area shows the phase of this message
Pass information.
Notifications center is system-level module, when notifications center receives new message from application
When, start to perform this step.It should be noted that in embodiments of the present invention, notifications center with
Communication between application can use the mode of interprocess communication to realize, for example with AIDL (Android
Interface Definition Language, Android IDL) technology.
In embodiments of the present invention, the template for generating message window can be pre-configured with, in this template
Defined in the assembly showing at window, the position of each assembly, type, pattern etc..This template is permissible
For the unified configuration of all message, it is also possible to be respectively configured for different type of messages.Template
Configuration authority can be system-level, is i.e. previously written in operating system, it is also possible to open to user and connect
Mouthful thus facilitate user to configure template.
Getting with above-mentioned new type of message after corresponding template, the relevant information of this message is being inserted
Template, to generate message window, is then added message window to the predeterminable area of system windows top.
Wherein the relevant information of message can include but is not limited to type of message mark, sender of the message's information, disappear
One in breath text, message receipt times etc. or any combination.Notifications center receives this message
After, message content is resolved, obtains type of message, sender of the message's information, message text, disappear
These relevant informations are created group according in template to the definition of assembly by the relevant informations such as breath reception time
Part, adds components to be formed in view message window.
Adding message window to the predeterminable area of system windows top, message window just can worked as
Front interface preferentially shows, in order to not affect the display of current interface content as far as possible, described predeterminable area can
It only occupying a part for screen, and is positioned at the region such as top or bottom.Preferably, can be by message window
Mouth is shown in one strip region of top of screen.Furthermore it is possible to arrange the sample of message window flexibly
Formula, such as, when showing message window, can arrange transparency higher, if capturing default message
Reply gesture, then the transparency of message window reduces.
Giving one example, it is assumed that note application receives a new note, this note is applied in backstage fortune
OK, it is sent to notifications center after receiving this new note.It is corresponding that notifications center obtains note
Template.Assume this template mainly comprises four assemblies: the assembly of display type of message mark, display
The assembly of the assembly of sender of the message, the assembly of display message receipt times and display message text, and
The position of each assembly, type, pattern etc. defined in this template.
Notifications center resolves the message receiving, and therefrom obtaining type of message is note, and message sends
The phone number that person is " 15889938467 ", message receipt times is " just ", and message text is:
" double 11 come soon, and what is good in attractable point, has strolled and has not for a long time all known what is bought, has given viewpoint,
Further, to go tonight where to have a meal?Speed is returned!”.
The relevant information being resolved to is created group according in template to the definition of assembly by notifications center
Part, adds components to be formed in view message window, then adds this message window to system windows
The predeterminable area of top, it is assumed that this predeterminable area is the strip region on screen top, then finally exist
The message window of display on screen can assume definition display message text as illustrated in fig. 5 a in Fig. 5 a
Assembly limit line of text be up to 2 row, then in message window, only show part message text.
Further, the assembly of reply button can also be pre-defined in a template, then finally
The message window being formed can show reply button, as illustrated in fig. 5b.
In 402, when this window is shown on screen, it is judged that whether capture user's hand in the setting time
Gesture, if it does not, perform 403;If it is, perform 404.
In embodiments of the present invention, in order to reduce the impact that current interface is used by user as far as possible, can
To arrange a maximum duration showing this message window, once reach this time user and do not operate, then exist
Cancel display on screen for this window in 403.This message window is no longer shown on screen, but can be with
Stealth Modus retains the notice of this message, and the mode for example changing drop-down informing into shows this message.
In 404, it is judged that the gesture-type capturing, if capturing the default gesture cancelling display,
Then perform 405;If capturing default message back gesture, then perform 406.
During message window shows on screen, if capturing the gesture cancelling display, then 405
Middle cancellation display on screen for this window.No longer show this message window on screen, but equally with
Stealth Modus retains the notice of this message, and the mode for example changing drop-down informing into shows this message.
The gesture that above-mentioned cancellation shows could be arranged to such as slide along a direction, for example, slide up
Move, slide to the left.It can also be provided that click on the gesture of cancel button, in this case, message window
In also need to comprise the assembly of cancel button, the assembly of such as one "×" type button, user clicks on "×"
After type button, cancel display on screen for this message window.
During message window shows on screen, if capturing default message back gesture, then
Show edit box in 406, input the content of reply for user.The message back gesture wherein preset can
Being such as slide downward, to the right slip etc., but need the direction being used with the gesture cancelling display
Different, it is also possible to be click on reply button as illustrated in fig. 5b.
While showing edit box, user's Quick-return for convenience, may call upon input method interface
And on screen display input method panel.As shown in Figure 5 c, when user is in message window slide downward,
Or as illustrated in figure 5d, when user clicks on reply button in message window, display is as in Fig. 6 a
Shown edit box, ejects input method panel simultaneously.So user just can directly use input method panel
Content to be replied is inputted in edit box.
In addition, when capturing default message back gesture or message checks gesture, can also launch
The display of message text, becomes showing full message text from display part message text, such as institute in Fig. 6 a
Show.Wherein message checks that gesture can be outside the gesture and message back gesture being different from and cancelling display
Other gestures.Such as message back gesture is slide downward, and the gesture cancelling display is upward sliding, disappears
Breath checks that gesture is to slide to the right.
In 407, if capturing user's input content in edit box, then show in message window
Send button.
Display edit box after, when user's not input content in edit box, can with display suppression button,
As shown in Fig. 6 a and Fig. 6 b.Once user clicks on cancel button, then cancel the display of edit box.When
Cancel button during input content, can be become send button, as shown in the figure 6c in edit box by user.
In 408, trigger, if captured, the gesture that message sends, then in inputting in edit box
Hold and be sent to the application that message is originated.
The gesture that this triggering message sends can be click on send button, it is also possible to is other gestures, for example
User clicks on enter key on TIP, more for example user slides to the right after input content in edit box
Etc..
It after application receives this content, after this content is packaged, is sent to the sender of message.Continue
This content, after note application receives the content of user's input, is packaged forming a note by upper example
It is sent to the phone number of " 15889938467 ".
In addition, when capturing the gesture triggering message transmission, cancel display on screen for the message window.
So far whole message back process is just completed.It should be noted that in the embodiment of the present invention, cancelling
During display on screen for the message window, can use and message window is deleted from the top of system windows
Mode.
In addition, when showing message window, if capture the gesture checking service management, can jump
Forward the corresponding application interface of this message or system interface to.For example, if user wants to check service management,
The message text in message window can be clicked on, or click on type of message mark, it is possible to jump to short
In letter application.
It is above the detailed description carrying out method provided by the present invention, below device provided by the present invention is entered
Row describes in detail.The structure drawing of device that Fig. 7 provides for the embodiment of the present invention, this device can be arranged at system
Notice center, as shown in Figure 7, this device may include that interface unit the 01st, windows units 02 and catches
Unit 03.
Wherein interface unit 01 is responsible for interacting with the application in intelligent terminal, first receives from application
New message, this application can be the application of system level, it is also possible to be the application of common grade.
Capture unit 03 charge capture touch screen gesture.
After interface unit 01 receives new message, windows units 02 shows at the window of screen predeterminable area
The relevant information of message.Specifically, corresponding template can be obtained with type of message, defined in this template
The assembly showing at window, the position of each assembly, type, pattern etc..This template can be for institute
There is the unified configuration of message, it is also possible to be respectively configured for different type of messages.The configuration authority of template can
It to be system-level, is i.e. previously written in operating system, it is also possible to user's open interface thus conveniently use
Template is configured by family.Then according to the definition of assembly and the relevant information of message are created by template
Assembly, adds components to be formed in view message window, adds message window to system windows top
Predeterminable area.
Wherein the relevant information of message can include but is not limited to type of message mark, sender of the message's information,
One in message text, message receipt times etc. or any combination.
Adding message window to the predeterminable area of system windows top, message window just can work as prezone
Face preferentially shows, in order to not affect the display of current interface content as far as possible, described predeterminable area can only account for
It according to a part for screen, and is positioned at the region such as top or bottom.Preferably, message window can be shown in
One strip region of the top of screen.
When display window, if capture unit 03 captures default message back gesture, then windows units
02 shows edit box in the window.Wherein message back gesture can include but is not limited to: sliding to first direction
Dynamic gesture (such as slide downward, to the right slip etc.) or the gesture of click reply button.
In addition, when window is shown on screen, take office if capture unit 03 did not caught within the setting time
What touch screen gesture, then cancel display on screen for the window.When display window, if capture unit 03 is caught
Grasp the default gesture cancelling display, then cancel display on screen for the window.Wherein cancel the hand of display
Gesture (such as upward sliding, to the left slip etc.) that gesture is including but not limited to slided to second direction or
Click on the gesture of cancel button.After cancelling display on screen for the window, screen no longer shows this message
Window, but the notice of this message can be retained with Stealth Modus, the mode for example changing drop-down informing into shows
This message.
User's Quick-return for convenience, windows units 02 captures default message at capture unit 03 and returns
During multiple gesture, call input method interface and on screen display input method panel.So user just can be direct
Input method panel is used to input content to be replied in edit box.
In addition, when interface unit 01 receives new message, windows units 02 in the window can be only aobvious
Show part messages text, type of message mark or message number etc..Capture default disappearing at capture unit 03
When breath checks gesture or default message back gesture, windows units 02 shows full message text in the window.
When capture unit 03 captures input content in edit box, windows units 02 can be at window
Middle display send button.After display edit box, when user's not input content in edit box, permissible
Display suppression button.Once user clicks on cancel button, then cancel the display of edit box.When user is compiling
When collecting input content in frame, cancel button can be become send button.
When capture unit 03 captures the gesture triggering message transmission, windows units 02 will be in edit box
The content of input is supplied to interface unit 01, is sent out, by interface unit 01, the content that windows units 02 provides
Give the sender of message.The gesture that this triggering message sends can be click on send button, it is also possible to is
Other gestures, such as user click on enter key on TIP, more for example user inputs in edit box
Slip etc. to the right after content.
In addition, when window is shown on screen, if capture unit 03 captures checks service management
Gesture when, then current interface is jumped to the corresponding application interface of message or system circle by windows units 02
Face.For example, if user wants to check service management, the message text in message window can be clicked on, or
Person clicks on type of message mark, it is possible to jump in note application.
By above description it can be seen that the method and apparatus that the present invention provides can possess advantages below:
1) user replies message only needs through following operation: the 1st, perform message back gesture;2nd, defeated
Enter content to be replied;3rd, perform to trigger the gesture that message sends.6 operations are needed to be reduced to from original
3 operations, and without jumping to concrete application interface, it is clear that enormously simplify operation, shorten
Duration.
2) owing to needs jump to carry out in application interface message back in prior art, therefore, when with
After family completion message is replied, needing the manual application returning to and being originally currently in use, for example user is originally
Using browser to browse webpage, when receiving a new note, user is by clicking in notification frame
Message jumps to note application interface and carries out message back, after completion message is replied, needs manual passing through
Browser is reentered after rollback key or return desktop.And the present invention just can complete to disappear in current interface
Breath is replied, and redirects without carrying out application, and completion message can be continuing with current interface after replying, aobvious
So bring facility to user, also save the resource of intelligent terminal.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method,
Can realize by another way.For example, device embodiment described above is only schematically,
For example, the division of described unit, is only a kind of logic function and divides, and actual can have additionally when realizing
Dividing mode.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit
In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one
In individual unit.Above-mentioned integrated unit both can use the form of hardware to realize, it would however also be possible to employ hardware adds
The form of SFU software functional unit realizes.
The above-mentioned integrated unit realizing with the form of SFU software functional unit, can be stored in a computer
In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers
Order is with so that a computer equipment (can be personal computer, server, or the network equipment etc.)
Or processor (processor) performs the part steps of method described in each embodiment of the present invention.And it is aforementioned
Storage medium include: USB flash disk, portable hard drive, read-only storage (Read-Only Memory, ROM),
Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can
To store the medium of program code.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of protection of the invention.