Summary of the invention
The embodiment of the present invention provides processing method, device and the terminal of a kind of pair of terminal applies, can quickly realize application
The calling of function between program.
On the one hand, the embodiment of the invention provides the processing methods of a kind of pair of terminal applies, comprising:
Receive call request of first application to the objective function module in the second application in terminal;
If calling conflict will not be generated to the calling of the objective function module, the call request is responded, is described
The objective function module in second application is called in first application;
Wherein, will not generate calling conflict to the calling of the objective function module includes: to detect second application
The objective function module is not called, and/or, the tune to the objective function module is determined according to preset conflict list
With conflict will not be generated.
Wherein optionally, the method also includes: preset conflict list, the conflict list includes: the first list, described
The module mark of functional module that is that first place unirecord configures in second application and forbidding first application to call
Know, and marks content with module id associated first;
It is described to determine that the calling to the objective function module generate conflict according to preset conflict list, packet
It includes:
It detects the objective function module to identify whether to be recorded in first list, and detects the calling and ask
It asks to the requested function of objective function module whether in the first label content;
If testing result is to be not recorded in first list and do not mark in content described first, really
The fixed call request will not generate calling conflict to the calling of the objective function module.
Wherein optionally, the method also includes: preset conflict list, the conflict list includes: the second list, described
The module mark of functional module that is that second place unirecord configures in second application and allowing first application to call
Know, and marks content with module id associated second;
It is described to determine that the calling to the objective function module generate conflict according to preset conflict list, packet
It includes:
It detects the objective function module to identify whether to be recorded in second list, and detects the calling and ask
It asks to the requested function of objective function module whether in the second label content;
If testing result is to be recorded in first list and in the first label content, it is determined that the tune
Calling conflict will not be generated to the calling of the objective function module with request.
Wherein optionally, the method also includes: preset conflict list, the conflict list include: the first list and
Two lists;
It is described to determine that the calling to the objective function module generate conflict according to preset conflict list, packet
It includes:
Whether conflict is generated to the calling of the objective function module according to first list determination;
If not generating conflict to the calling of the objective function module according to first list determination, further basis
Whether the second list determination generates conflict to the calling of the objective function module;
If it is not, then determining that the calling to the objective function module will not generate conflict;
Wherein, first list include include for the list of first application configuration, second list be described
The list of second application configuration.
Wherein optionally, the call request includes: calling module mark, the objective function module in first application
Mark, data source identification;
The objective function module called for first application in second application, comprising:
Target indicated by the objective function module id is called by calling interface preset in second application
Data are extracted in data source indicated by functional module to the data source identification;
The data extracted are returned into the indicated calling module of the calling module mark by the calling interface.
On the other hand, the embodiment of the invention also provides the processing units of a kind of pair of terminal applies, comprising:
The calling of the objective function module in the second application is asked in receiving module, the first application for receiving in terminal
It asks;
Processing module, whether the calling for detecting to the objective function module can generate calling conflict, if to described
The calling of objective function module will not generate calling conflict, then respond the call request, for described in the first application calling
Objective function module in second application;
Wherein, will not generate calling conflict to the calling of the objective function module includes: to detect second application
The objective function module is not called, and/or, the tune to the objective function module is determined according to preset conflict list
With conflict will not be generated.
Wherein optionally, described device further include: preset module is used for preset conflict list, and the conflict list includes:
First list, function that is that the first place unirecord configures in second application and forbidding first application to call
The module id of energy module, and content is marked with module id associated first;
The processing module identifies whether to be recorded in the first place specifically for the detection objective function module
Dan Zhong, and the call request is detected to the requested function of objective function module whether in the first label content
In;If testing result is to be not recorded in first list and not in the first label content, it is determined that described
Call request will not generate calling conflict to the calling of the objective function module.
Wherein optionally, described device further include: preset module is used for preset conflict list, and the conflict list includes:
Second list, function that is that the second place unirecord configures in second application and allowing first application to call
The module id of energy module, and content is marked with module id associated second;
The processing module identifies whether to be recorded in the second place specifically for the detection objective function module
Dan Zhong, and the call request is detected to the requested function of objective function module whether in the second label content
In;If testing result is to be recorded in first list and in the first label content, it is determined that the call request
Calling conflict will not be generated to the calling of the objective function module.
Wherein optionally, described device further include: preset module is used for preset conflict list, and the conflict list includes:
For first application configuration the first list and be second application configuration the second list;
The processing module, specifically for according to first list determine to the calling of the objective function module whether
Generate conflict;If not generating conflict, further root to the calling of the objective function module according to first list determination
Whether conflict is generated to the calling of the objective function module according to second list determination;If it is not, then determining to the mesh
The calling of mark functional module will not generate conflict.
Wherein optionally, the call request includes: calling module mark, the objective function module in first application
Mark, data source identification;The processing module, described in being called by calling interface preset in second application
Data are extracted in data source indicated by objective function module to the data source identification indicated by objective function module id;
The data extracted are returned into the indicated calling module of the calling module mark by the calling interface.
Correspondingly, the embodiment of the invention also provides a kind of intelligent terminal, the intelligent terminal includes dress mentioned above
It sets.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved, and can accurately avoid the calling punching to functional module
It is prominent, improve the accuracy of calling.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention passes through configuration between each application installed in an intelligent terminal and calls processing logic, Ke Yitong
Cross by application come initiate the mode of call request call another apply in some functional module, that is to say, that the initiation
The application of call request can not need to transplant the functional module and call directly the corresponding function of Implement of Function Module.
Referring to Figure 1, be the embodiment of the present invention a kind of pair of terminal applies processing method flow diagram, the present invention
The method of embodiment can be executed by the processor of intelligent terminal, the intelligent terminal include smart phone, tablet computer,
The terminals such as PC and intelligent wearable device, which comprises
S101: call request of first application to the objective function module in the second application in terminal is received.
The call request can be user and operate to first application, by institute when needing to obtain some function
State what the first application generated.It is configured with objective function module in second application, configuration can not had in first application
The objective function module, but an objective function interface can be configured, in order to which user is triggering corresponding function need
When asking operation, a call request to the objective function module in the second application is generated by the objective function interface.
After the call request for receiving the first application, what processor detected the call request institute request call again second is answered
Whether objective function module can currently generate calling conflict.If calling conflict will not be generated, following S102 is executed;If
Calling conflict can be generated, then is not responding to the calling of the call request, directly abandons the call request or answered to described first
With return prompt information to prompt to have no right invocation target functional module.
S102: if calling conflict will not be generated to the calling of the objective function module, the call request is responded, is
The objective function module in second application is called in first application;Wherein, not to the calling of the objective function module
Can generate calling conflict include: detect second application without calling the objective function module, and/or, according to preset
Conflict list determine that the calling to the objective function module will not generate conflict.
Detection can refer to whether the calling of the objective function module can generate calling conflict: if detected described
Objective function module is called by second application, then can directly confirm can generate calling conflict, if not described
Second application is called, it is determined that will not generate calling conflict.
Further, it if detecting that described second applies in the calling objective function module, can detect again
Second application judges the functional object that the regulative strategy is called, handles to the regulative strategy of the objective function module
Device can respond the call request according to judging result to call in addition to the functional object that the regulative strategy is called
Functional object, for example, the objective function module is one for the extraction module to picture in server database, if described
Second application is calling the objective function module to extract preceding 100 picture in database, then processor can respond described
Call request, the picture after calling the objective function module to call preceding 100 picture for first application.
Detection may also mean that whether the calling of the objective function module can generate calling conflict: be rushed according to preset
Prominent list determines.White list and/or blacklist can be set, if the identification record of the objective function module is described white
It on list and/or is not recorded on the blacklist, it may be considered that will not be generated to the calling of the objective function module
Conflict is called, if in blacklist or not on white list, then it is assumed that conflict can be generated.For example, for first application
White list is configured, first verifies the objective function after receiving the call request for the second application configuration blacklist
Module identifies whether to be recorded in the white list, if so, further judging identifying whether for the objective function module
It is recorded in blacklist, if it is not, then can finally determine that the calling to the objective function module will not generate conflict.
It can also be each other than recording corresponding functional module mark in the white list or blacklist
Functional module mark is associated with corresponding label content, which set according to the regulative strategy of corresponding function module,
The mark of the objective function module is in the white list and the object of call request institute request call is also described white
Within label content corresponding to the mark of objective function module described in list, and/or, the mark of the objective function module
In the blacklist but the object of the call request institute request call not objective function module in the blacklist
It identifies within corresponding label content, then conflict will not be generated to the calling of the objective function module.
It include " customized " function mould specifically as shown in Fig. 2, being a kind of schematic diagram of white list of the embodiment of the present invention
Block identification, label content are quantity 100;" entertainment " functional module mark, label content are quantity 10.The white list can be with
For it is described first application setting, when generating call request, it can be determined that the functional module that the call request is called whether be
" customized " or " entertainment " then further judges the number of the requested picture of the call request if it is " entertainment "
Whether amount is within " 10 ", if so, it is considered that the functional module of request call described in the call request will not generate conflict.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved.
Fig. 3 is referred to again, is the flow diagram of another processing method to terminal applies of the embodiment of the present invention, this
The method of inventive embodiments can be executed by the processor of intelligent terminal, and the intelligent terminal includes smart phone, plate
The terminals such as computer, PC and intelligent wearable device, which comprises
S201: preset conflict list.
S202: call request of first application to the objective function module in the second application in terminal is received.
S203: whether conflict can be generated to the calling of the objective function module according to preset conflict list detection.
Specifically optionally, preset conflict list includes: the first list in the S201, the first place unirecord
It is described second application in configure and forbid it is described first application call functional module module id, and with module mark
Know associated first label content;Detection determines that the calling to the objective function module will not generate punching in the S203
It is prominent, comprising: to detect the objective function module and identify whether to be recorded in first list, and detect the calling and ask
It asks to the requested function of objective function module whether in the first label content;If testing result is not record
In first list and not in the first label content, it is determined that the call request is to the objective function
The calling of module will not generate calling conflict.
Optionally, conflict list preset in the S201 includes: the second list, and the second place unirecord is in institute
The module id of functional module that is configuring in the second application and allowing first application to call is stated, and is closed with module id
Second label content of connection;Detection determines that the calling to the objective function module will not generate conflict in the S203,
It include: that the detection objective function module identifies whether to be recorded in second list, and detects the call request
To the requested function of objective function module whether in the second label content;If testing result is described to be recorded in
In first list and in the first label content, it is determined that calling of the call request to the objective function module
Calling conflict will not be generated.
Optionally, conflict list preset in the S201 includes: the first list and the second list, first list
Particular content with the second list is accordingly referring to above-mentioned the first list and the second list.It detects and determines in the S203
Conflict will not be generated to the calling of the objective function module, comprising: determine to the objective function according to first list
Whether the calling of module generates conflict;If not generating punching to the calling of the objective function module according to first list determination
It is prominent, then whether conflict is further generated to the calling of the objective function module according to second list determination;If it is not, then really
Conflict will not be generated to the calling of the objective function module by making;Wherein, first list is to match to first application
List, second list set are the list to second application configuration.
S204: if calling conflict will not be generated to the calling of the objective function module, the call request is responded, is
The objective function module in second application is called in first application.
If calling conflict will not be generated to the calling of the objective function module, the target in second application is triggered
Functional module responds the data processing request for including in the call request, executes corresponding data processing operation, the data
Processing operation includes the data processing operation to network side data library.As above-mentioned, in the function mould of request call " entertainment "
When block, the picture that quantity is 10 is obtained from server by the functional module of " entertainment " and feeds back to the first application.
Still optionally further, the call request include: it is described first application in calling module mark, objective function mould
Block identification, data source identification;The objective function module called for first application in second application, comprising: logical
Crossing calling interface preset in second application calls objective function module indicated by the objective function module id to arrive
Data are extracted in data source indicated by the data source identification;The data extracted are returned into institute by the calling interface
State the indicated calling module of calling module mark.
In order to successfully call to the object module in the second application, used call parameters are in addition to including mentioned above
Calling module mark (the calling module mark of call request is initiated in the first application) in first application, objective function module mark
Know (functional module mark to be called in the second application), can specifically include parameter as shown in Table 1.
Table 1:
Parameter name |
Explanation |
Value |
It is necessary |
Remarks |
os |
OS information |
-- |
Yes |
Operation system information |
osVersion |
Os release |
-- |
Yes |
Operating system version |
Version |
Application version |
-- |
Yes |
Application version information |
ispType |
Operator |
1- is mobile, 2- connection |
Yes |
|
netType |
Network environment |
1-phone, 2-wifi |
Yes |
|
model |
Terminal models |
-- |
Yes |
|
dataCode |
Data source id |
-- |
Yes |
Module |
subDataCode |
Subdata source id |
Default value: dataCode |
Yes |
Submodule |
page |
Number of pages |
Default value: 1 |
No |
|
Wherein, the operating system OS information, os release, application version, operator, network environment, terminal models etc.
Parameter can be detected to obtain by software environment to intelligent terminal and hardware, and the application version can be of the invention real
Apply the version of the second application described in example.And the data source ID and subdata source ID then can be based on the calling of the first application
The function of specifically providing of module or the objective function module of the second application determines, for example, if objective function module is to realize
When picture searching, the module of abstraction function, in the module can configured with as image credit image data source ID and/or
The ID in picture subdata source.
S205: if calling conflict can be generated to the calling of the objective function module, prompt information is issued to prompt nothing
Power is called.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved.And it can be accurately by the method for setting conflict list
It avoids calling and conflict, improve the accuracy of calling.
The processing unit of a kind of pair of terminal applies of the embodiment of the present invention is described in detail below.
Fig. 4 is referred to, is the structure composition schematic diagram of the processing unit of a kind of pair of terminal applies of the embodiment of the present invention, this
The described device of inventive embodiments can be set in an intelligent terminal, and the intelligent terminal includes smart phone, tablet computer, a
People's computer and intelligent wearable device etc., specifically, described device includes:
The calling of the objective function module in the second application is asked in receiving module 1, the first application for receiving in terminal
It asks;
Processing module 2, whether the calling for detecting to the objective function module can generate calling conflict, if to described
The calling of objective function module will not generate calling conflict, then respond the call request, for described in the first application calling
Objective function module in second application;
Wherein, will not generate calling conflict to the calling of the objective function module includes: to detect second application
The objective function module is not called, and/or, the tune to the objective function module is determined according to preset conflict list
With conflict will not be generated.
The call request that the receiving module 1 receives can be user and operate to first application, need
It is generated when obtaining some function by first application.It is described second application in be configured with objective function module, described first
It can not have to configure the objective function module in, but an objective function interface can be configured, in order to which user exists
When triggering the operation of corresponding functional requirement, one is generated to the objective function mould in the second application by the objective function interface
The call request of block.
After the receiving module 1 receives the call request of the first application, the processing module 2 detects the call request
Whether the objective function module of the second application of institute's request call can currently generate calling conflict.If calling conflict will not be generated,
Then respond the call request;If calling conflict can be generated, the processing module 2 can be not responding to the tune of the call request
With, directly abandon the call request or to it is described first application return prompt information to prompt to have no right invocation target function mould
Block.
Specifically, the detection of processing module 2 can refer to whether the calling of the objective function module can generate conflict
The description of correlation step in above method item embodiment.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved, and can accurately avoid the calling punching to functional module
It is prominent, improve the accuracy of calling.
Fig. 5 is referred to again, is that the structure composition of another processing unit to terminal applies of the embodiment of the present invention is illustrated
Figure, described device include receiving module 1 and processing module 2 in a upper embodiment, further, in embodiments of the present invention,
Described device further include:
Preset module 3 is used for preset conflict list.
Specifically optionally, the preset conflict list of the preset module 3 may include: the first list, first list
Have recorded it is described second application in configure and forbid it is described first application call functional module module id, and with
The associated first label content of module id;
The processing module 2 identifies whether to be recorded in described first specifically for the detection objective function module
In list, and the call request is detected to the requested function of objective function module whether in the first label content
In;If testing result is to be not recorded in first list and not in the first label content, it is determined that described
Call request will not generate calling conflict to the calling of the objective function module.
Specifically optionally, the preset conflict list of the preset module 3 includes: the second list, the second place unirecord
The module id of functional module that is being configured in second application and allowing first application to call, and and module
Identify associated second label content;
The processing module 2 identifies whether to be recorded in described second specifically for the detection objective function module
In list, and the call request is detected to the requested function of objective function module whether in the second label content
In;If testing result is to be recorded in first list and in the first label content, it is determined that the call request
Calling conflict will not be generated to the calling of the objective function module.
Specifically optionally, the preset conflict list of the preset module 3 includes: for the first place of first application configuration
Second list single and for second application configuration;
The processing module 2, specifically for being to the calling of the objective function module according to first list determination
No generation conflict;If not generating conflict to the calling of the objective function module according to first list determination, further
Whether conflict is generated to the calling of the objective function module according to second list determination;If it is not, then determining to described
The calling of objective function module will not generate conflict.
The particular content of first list and the second list can refer to the first list and second place that above-mentioned correspondence refers to
Particular content in list.And determined whether to generate the specific judgement for calling conflict also together according to the first list, the second list
With reference to the above-mentioned judgment mode referred to.
Further specifically, in embodiments of the present invention, the call request includes: the calling mould in first application
Block identification, objective function module id, data source identification;The processing module 2 is specifically used for by pre- in second application
The calling interface set calls objective function module indicated by the objective function module id signified to the data source identification
Data are extracted in the data source shown;The data extracted are returned into the calling module by the calling interface and identify meaning
The calling module shown.
The specific implementation of the receiving module 1, processing module 2 in the embodiment of the present invention and preset module 3 can refer to
The specific implementation of correlation step, does not repeat again in method item embodiment.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved, and can accurately avoid the calling punching to functional module
It is prominent, improve the accuracy of calling.
Fig. 6 is referred to again, is a kind of structural schematic diagram of intelligent terminal of the embodiment of the present invention, the institute of the embodiment of the present invention
Stating intelligent terminal can be smart phone, tablet computer, PC and intelligent wearable device etc., the intelligent terminal packet
The structures such as power supply, communication interface, shell are included, as shown in fig. 6, the intelligent terminal can also include: user interface 200, it is such as aobvious
Display screen, keyboard etc., processor 100 and memory 300, the user interface 200, processor 100 and memory 300 it
Between by bus 400 be connected, to transmit corresponding instruction and data.
There is application program in storage in the memory 300, the processor 100 calls to be stored in the memory 300
Application program, execute to the processing operations of terminal applies.
Specifically, the processor 100, for receiving the first application in terminal to the objective function mould in the second application
The call request of block;If calling conflict will not be generated to the calling of the objective function module, the call request is responded, is
The objective function module in second application is called in first application;Wherein, not to the calling of the objective function module
Can generate calling conflict include: detect second application without calling the objective function module, and/or, according to preset
Conflict list determine that the calling to the objective function module will not generate conflict.The call request can be the use
What family interface 200 generated after receiving user to the operation of first application.
Still optionally further, the processor 100 is also used to preset conflict list, and the conflict list includes: first place
It is single, functional module that is that the first place unirecord configures in second application and forbidding first application to call
Module id, and with module id it is associated first label content;
Correspondingly, the processor 100 identifies whether to be recorded in institute specifically for the detection objective function module
It states in the first list, and whether detects the call request to the requested function of objective function module in first mark
Remember in content;If testing result is to be not recorded in first list and do not mark in content described first, really
The fixed call request will not generate calling conflict to the calling of the objective function module.
Still optionally further, the processor 100 is also used to preset conflict list, and the conflict list includes: second place
It is single, functional module that is that the second place unirecord configures in second application and allowing first application to call
Module id, and with module id it is associated second label content;
Correspondingly, the processor 100 identifies whether to be recorded in institute specifically for the detection objective function module
It states in the second list, and whether detects the call request to the requested function of objective function module in second mark
Remember in content;If testing result is to be recorded in first list and in the first label content, it is determined that the tune
Calling conflict will not be generated to the calling of the objective function module with request.
Still optionally further, the processor 100 is also used to preset conflict list, and the conflict list includes: first place
Single and the second list;
Correspondingly, the processor 100, specifically for being determined according to first list to the objective function module
It calls and whether generates conflict;If not generating conflict to the calling of the objective function module according to first list determination,
Whether conflict is further generated to the calling of the objective function module according to second list determination;If it is not, then determining
Conflict will not be generated to the calling of the objective function module;Wherein, first list includes for first application configuration
List, second list include for the list of second application configuration.
Still optionally further, the call request include: it is described first application in calling module mark, objective function mould
Block identification, data source identification;The processor 100, specifically for being called by calling interface preset in second application
It is extracted in data source indicated by objective function module to the data source identification indicated by the objective function module id
Data;The data extracted are returned into the indicated calling module of the calling module mark by the calling interface.
The specific implementation of the processor 100 in the embodiment of the present invention can refer to related step in above method item embodiment
Suddenly the description implemented, this will not be repeated here.
The embodiment of the present invention can realize the calling of the function between terminal applies by way of calling, do not need into
The integral transplanting of row functional module is quickly realizing that function is shared, can also while improving the function utilization rate of functional module
The development cost of terminal applies is substantially reduced, development efficiency is improved, and can accurately avoid the calling punching to functional module
It is prominent, improve the accuracy of calling.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.