Method for developing functions and its device based on contact head image
Technical field
The present invention relates to contact data process field more particularly to a kind of method for developing functions based on contact head image
And its device.
Background technique
In the prior art, the contact application built in intelligent terminal is provided with the function of customized contact head image, when with
After the completion of family sets the head portrait of contact person, the head portrait of contact person can be shown among contacts list.
Under existing intelligent terminal operation system, when the user clicks when the head portrait of contact person, the display screen of intelligent terminal
The interactive interface of some simple control actions can be shown to user, sent the interface of short message for example, showing, showed and dial electricity
The interface of words and the interface for showing transmission mail.
But these interactive interfaces have usually integrated in advance, and control action is more single, meanwhile, when user's point
When hitting the head portrait of contact person, these interactive interfaces can only the position in immobilization, the mode with immobilization show to user.
It is appreciated that in the prior art, for the human-computer interaction of contact head image, on the one hand, cannot be according to user's
Actual demand carries out the customized displaying of correlation function, on the other hand, adaptively cannot carry out phase according to user's actual need
Close the extension of function.
Summary of the invention
For in the prior art, the human-computer interaction based on contact head image, on the one hand, cannot be according to the actual demand of user
The customized displaying of correlation function is carried out, on the other hand, correlation function adaptively cannot be carried out according to user's actual need
The defect of extension, the invention proposes a kind of method for developing functions and its device based on contact head image.
It is to construct a kind of function based on contact head image that the present invention, which solves technical solution used by prior art problem,
Extended method, method includes the following steps:
Construct the relational database of contact person;
The manipulation record on contact head image is obtained, and manipulation record is imported into relational database by contact person's interface;
The trigger event on contact head image is responded in relational database by contact person's interface.
Preferably, building relational database further comprises:
Establish short message subdata base interface, call subdata base interface and Multimedia Message subdata base interface;
By contact person's interface and short message subdata base interface, call subdata base interface and Multimedia Message subdata
Bank interface is docked;
The more new information of short message subdata base, call subdata base and Multimedia Message subdata base is obtained in real time;
More new information is integrated into relational database.
Preferably, manipulation record is obtained, and manipulation record is imported into relational database by contact person's interface and is further wrapped
It includes:
The manipulation log for being directed to contact head image is obtained in real time;
According to manipulation log judgement manipulation classification;
Corresponding manipulation data are obtained in corresponding subdata according to manipulation classification;
Data Integration will be manipulated to relational database.
Preferably, before responding the trigger event on contact head image in relational database by contact person's interface also
Include:
Establish man-machine interactive interface;
Man-machine interactive interface is docked with contact person's interface and system layer respectively.
Preferably, the trigger event responded in relational database by contact person's interface on contact head image is further wrapped
It includes:
It obtains and parses trigger event;
Response policy is generated according to parsing result and relational database;
Response policy is shown by man-machine interactive interface;
Response feedback is generated based on institute's response policy, feedback executes Function Extension operation according to response.
The invention also provides a kind of function expanding device based on contact head image, which includes:
Initialization module, for constructing the relational database of contact person;
Processing module is led for obtaining the record of the manipulation on contact head image, and by manipulation record by contact person's interface
Enter relational database;
Respond module, for responding the trigger event on contact head image in relational database by contact person's interface.
Preferably, initialization module is also used to establish short message subdata base interface, call subdata base interface and more
Media information subdata base interface;
Processing module includes interface docking unit, information updating unit and information integral unit, wherein
Interface dock unit be used for by contact person's interface and short message subdata base interface, call subdata base interface and
Multimedia Message subdata base interface is docked;
Information updating unit for obtaining short message subdata base, call subdata base and Multimedia Message subnumber in real time
According to the more new information in library;
Information integral unit will be for that more will be integrated into relational database by new information.
Preferably, processing module further includes manipulation log unit, manipulation class location and manipulation data cell, wherein
Log unit is manipulated for obtaining the manipulation log for being directed to contact head image in real time;
Class location is manipulated to be used for according to manipulation log judgement manipulation classification;
Manipulation data cell is used to obtain corresponding manipulation data in corresponding subdata according to manipulation classification;
Information integral unit is also used to manipulate Data Integration to relational database.
Preferably, initialization module is also used to establish man-machine interactive interface;
Interface docking unit is also used to respectively dock man-machine interactive interface with contact person's interface and system layer.
Preferably, respond module includes trigger event resolution unit, response policy generation unit, response policy display unit
And response feedback execution unit, wherein
Trigger event resolution unit is for obtaining and parsing trigger event;
Response policy generation unit is used to generate response policy according to parsing result and relational database;
Response policy display unit is used to show response policy by man-machine interactive interface;
It responds feedback execution unit to be used to generate response feedback based on response policy, feedback executes Function Extension according to response
Operation.
Implement the present invention, has the advantages that
First, by building contact database and each subdata base, associated data is established, sufficiently integrates, utilize connection
It is personal data information, provides big data support for the Function Extension based on contact head image;
Second, it is analyzed and processed by the manipulation record to contact head image, learns the use habit of user, adaptively
Ground provides a user the Function Extension interface based on contact head image;
Third is being implemented by directly docking response policy and response feedback with system layer based on contact head image
During Function Extension, the validity and stability of implementing procedure ensure that, that is, quickly and efficiently respond user for connection
It is the Function Extension demand of number of people picture, improves user experience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the flow chart for the method for developing functions based on contact head image that present pre-ferred embodiments provide;
Fig. 2 is the sub-step flow chart of the relational database of building contact person shown in fig. 1;
Fig. 3 is the sub-step flow chart shown in fig. 1 that manipulation record is imported to relational database by contact person's interface;
Fig. 4 is the pre-treatment step flow chart shown in fig. 1 responded before trigger event;
Fig. 5 is the sub-step flow chart of response trigger event shown in fig. 1;
Fig. 6 is the structural block diagram for the function expanding device based on contact head image that present pre-ferred embodiments provide.
Specific embodiment
Embodiment one
Fig. 1 is the flow chart for the method for developing functions based on contact head image that present pre-ferred embodiments provide.The party
Method the following steps are included:
S1 constructs the relational database of contact person.The relational database of the contact person is built upon contact relationship data
Database on the basis of the model of library handles the contact data in database by means of collective concept and method.Meanwhile the number
It is also possible to one according to library and is organized into one group of table for possessing formal descriptive, the essence of the table effect of the form is to load
The special collection body of contact data item.It is appreciated that the contact data in these tables can be in a number of different manners
It is accessed or reassembles.For example, the contact relationship database can be defined as causing a table of metadata or cause
Table, column, range and constraint, each table (an also referred to as relationship) include the one or more connections indicated with column
Personal data type.
When creating a contact relationship database, defines the range of the probable value of data column and may be applied to the number
According to the further constraint of value.It is appreciated that by building contact database, so that contact data is easy to expand, and most
After first database is created, a new data class can be added without modifying existing data relationship framework.
S2 obtains the manipulation record on contact head image, and manipulation record is imported relation data by contact person's interface
Library.Manipulation record may include three parts: the movement after movement, control action itself and manipulation before manipulating.Example
Such as, firstly, receiving the short message that contact person M is sent when user is when editing document;Then, user stops editor's document, and
Check the short message, when check finish when, return to editing interface and continue to edit document, if at this point, user wants to reply this short message,
Then enter contacts list, click contact head image, point hits to the contact person and sends short message on the human-computer interaction interface showed
Breath;Finally, user starts Background music playing program and selects play list after completing short message transmission, editing interface is returned
Continue to edit document.
At this point, control action itself refers to that, into contacts list, contact head image is clicked, in the human-computer interaction showed
Point hits to the contact person and sends short message on interface;
Movement before manipulation refers to, edits document, receives the short message that contact person M is sent, and stops editor's document, and
Check the short message, when check finish when, return editing interface continue edit document;
Movement after manipulation refers to that starting Background music playing program selects play list, returns to editing interface and continues
Edit document.
The manipulation record of above-mentioned three parts is obtained, and the manipulation is recorded and carries out Data Integration, it will by contact person's interface
Data information after integration is sent to the relational database of contact person.It is appreciated that contact person's interface is built upon system layer
The intersection of each application data interface between application layer.Wherein, which can be understood as the operating system layer of terminal,
It is used to support the application layer on upper layer, operation platform is provided and executes relevant hardware scheduling is on demand corresponding to demand to realize
Function.
S3 responds the trigger event on contact head image by contact person's interface in relational database.Described in example as above,
When sensing the trigger event on contact head image, the relational database of above-mentioned contact person is called by contact person's interface,
The control action that match query can respond in the relation data, after completing match query, return response result.Alternatively, above-mentioned
In relational database, the control action that can be responded is matched by intelligence learning, wherein the intelligence learning belongs to prior art hand
Section, details are not described herein.
Embodiment two
Fig. 2 is the sub-step flow chart of the relational database of building contact person shown in fig. 1.The sub-step specifically includes:
S11 establishes short message subdata base interface, call subdata base interface and Multimedia Message subdata base and connects
Mouthful.It is appreciated that the subdata interface established includes but are not limited to above-mentioned three kinds, meanwhile, above-mentioned each subdata interface
Establish each using between corresponding application layer.
S12, by contact person's interface and short message subdata base interface, call subdata base interface and Multimedia Message
Database interface is docked.It is appreciated that interface docking herein is not limited only to the docking of the interface between upper and lower level, it can also be with
Be same layer interface contain docking, i.e., contact person's interface contain short message subdata base interface, call subdata base interface with
And Multimedia Message subdata base interface, it can be understood as, by short message subdata base interface, call subdata base interface and
The direct mirror image of data information of communication channel, the communication letter being incorporated in contact person's interface in Multimedia Message subdata base interface
Road.
S13 obtains the update letter of short message subdata base, call subdata base and Multimedia Message subdata base in real time
Breath.Said short message breath subdata base, call subdata base and Multimedia Message subdata base are detected whether to deposit by predeterminated frequency
In more new information, more new information if it exists then passes through short message subdata base interface, call subdata base interface and more respectively
Media information subdata base interface obtains short message data, communicating data and multimedia message data.Whenever there is new data increasing
Add, when legacy data is deleted or is substituted, detection trigger mechanism updates operation to carry out corresponding data;Alternatively, whenever data occur
When variation, the corresponding interface of activly request carries out corresponding data update to corresponding database.
S14 more will be integrated into relational database by new information.Described in example as above, by short message, call-information and multimedia
The more new information such as information ceases subdata base interface, call subdata base interface and multimedia by said short message respectively and disappears
Breath subdata base interface is integrated into relational database.Relational database is according to preset logical relation, data type, privilege of access
The parameters such as grade carry out integration processing to more new information, after processing operation is integrated in completion, by its classification storage.
Embodiment three
Fig. 3 is the sub-step flow chart shown in fig. 1 that manipulation record is imported to relational database by contact person's interface.It should
Sub-step specifically includes:
S21 obtains the manipulation log for being directed to contact head image in real time.For example, every page in manipulation log generates one not
Same Session (session) is paid value to variable transferring and is saved to corresponding database if the end of the page;Remember for every manipulation
Date when setting creates, date when modifying are recorded, is stored in corresponding database respectively;One acess control page is set,
The path that statistics accessed every time;Multiple management groups can also be set, different administration authorities is set for different groups, therefore,
The foundation that multi-user manipulates log may be implemented.
S22, according to manipulation log judgement manipulation classification.Described in example as above, judge to obtain user according to the event of record be
Make a phone call, breath of sending short messages still utilize other applications send Multimedia Message.
S23 obtains corresponding manipulation data according to manipulation classification in corresponding subdata.
S24, by manipulation Data Integration to relational database.It is appreciated that for short message manipulation data, call-information behaviour
It controls data and Multimedia Message information manipulates data, subdata base interface, call subdata base are ceased by said short message respectively
Interface and Multimedia Message subdata base interface are integrated into relational database.The embodiment of the step is referring to above-mentioned steps
S13, details are not described herein.
Example IV
Fig. 4 is the pre-treatment step flow chart shown in fig. 1 responded before trigger event.The step specifically includes:
S21 ' establishes man-machine interactive interface.It is appreciated that the man-machine interactive interface may be implemented to data information form
Conversion, and the control to data information transfer.
S22 ' docks man-machine interactive interface with contact person's interface and system layer respectively.Man-machine interface respectively with connection
It is in the data information transfer between people's interface and system layer, using parallel communication fashion.
Embodiment five
Fig. 5 is the sub-step flow chart of response trigger event shown in fig. 1.The sub-step specifically includes:
S31 is obtained and is parsed trigger event.For example, the micro current signal of sense capacitance screen, determines in conjunction with screen display content and touches
The triggering content of hair event.
S32 generates response policy according to parsing result and relational database.Triggering content is sent to relation data
It searched, matched, learning manipulation according to the triggering content, to generate response policy in relational database in library.
Described in example as above, operation and the operation after operational motion, prediction user before analyzing operational motion are
By the operation of progress, meanwhile, the operation that user may execute is obtained according to the event analysis before operational motion.For example, solution
The content for analysing the short message received carries out semantic analysis operation to the content, meanwhile, for analysis result and schedule
Etc. information, generate user be likely to execute manipulation pre-selection inventory, for example, " please select: ' I will go to replying short message on time
About ', ' seeing when the L of the dining room N ', ' Do not disturb ' " etc..
The operation information that user may execute is integrated, response policy is generated.
S33 shows response policy by man-machine interactive interface.I.e. to user show can selection operation, wait the manipulation of user
Order.
S34 generates response feedback based on institute's response policy, and feedback executes Function Extension operation according to response.Receive user
Manipulation command, and according to the manipulation command generate response feedback.Feedback executes Function Extension operation according to response.Example institute as above
It states, replying short message " seeing when the L of the dining room N " is selected according to pre- selection operation.
Implement this method, has the advantages that
First, by building contact database and each subdata base, associated data is established, sufficiently integrates, utilize connection
It is personal data information, provides big data support for the Function Extension based on contact head image;
Second, it is analyzed and processed by the manipulation record to contact head image, learns the use habit of user, adaptively
Ground provides a user the Function Extension interface based on contact head image;
Third is being implemented by directly docking response policy and response feedback with system layer based on contact head image
During Function Extension, the validity and stability of implementing procedure ensure that, that is, quickly and efficiently respond user for connection
It is the Function Extension demand of number of people picture, improves user experience.
Embodiment six
Fig. 6 is the structural block diagram for the function expanding device based on contact head image that present pre-ferred embodiments provide.It should
Device includes:
Initialization module 10, for constructing the relational database of contact person.
Processing module 20 passes through contact person's interface for obtaining the record of the manipulation on contact head image, and by manipulation record
Import relational database.It is appreciated that processing module 20 can be central processing unit, the modules for controlling the present apparatus exist
Preset manipulation command is completed in preset time.
Respond module 30, for responding the triggering thing on contact head image in relational database by contact person's interface
Part.
Further, initialization module 10 be also used to establish short message subdata base interface, call subdata base interface with
And Multimedia Message subdata base interface.
Processing module 20 includes interface docking unit 21, information updating unit 22 and information integral unit 23, in which:
Interface dock unit 21 be used for by contact person's interface and short message subdata base interface, call subdata base interface with
And Multimedia Message subdata base interface is docked;
Information updating unit 22 for obtaining short message subdata base, call subdata base and Multimedia Message in real time
The more new information of database;
Information integral unit 23 will be for that more will be integrated into relational database by new information.
Further, processing module 20 further includes manipulation log unit 24, manipulation class location 25 and manipulation data sheet
Member 26, in which:
Log unit 24 is manipulated for obtaining the manipulation log for being directed to contact head image in real time;
Class location 25 is manipulated to be used for according to manipulation log judgement manipulation classification;
Manipulation data cell 26 is used to obtain corresponding manipulation data in corresponding subdata according to manipulation classification;
Information integral unit 23 is also used to manipulate Data Integration to relational database.
Further, initialization module 10 is also used to establish man-machine interactive interface.
Interface docking unit 21 is also used to respectively dock man-machine interactive interface with contact person's interface and system layer.
Further, respond module 30 includes trigger event resolution unit 31, response policy generation unit 32, response policy
Display unit 33 and response feedback execution unit 34, in which:
Trigger event resolution unit 31 is for obtaining and parsing trigger event;
Response policy generation unit 32 is used to generate response policy according to parsing result and relational database;
Response policy display unit 33 is used to show response policy by man-machine interactive interface;
It responds feedback execution unit 34 to be used to generate response feedback based on response policy, feedback executes function and expands according to response
Exhibition operation.
It is appreciated that implementing the method for developing functions and its device of the invention based on contact head image, have with following
Beneficial effect:
First, by building contact database and each subdata base, associated data is established, sufficiently integrates, utilize connection
It is personal data information, provides big data support for the Function Extension based on contact head image;
Second, it is analyzed and processed by the manipulation record to contact head image, learns the use habit of user, adaptively
Ground provides a user the Function Extension interface based on contact head image;
Third is being implemented by directly docking response policy and response feedback with system layer based on contact head image
During Function Extension, the validity and stability of implementing procedure ensure that, that is, quickly and efficiently respond user for connection
It is the Function Extension demand of number of people picture, improves user experience.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.