[detailed description of the invention]
For making the purpose of the embodiment of the present application, technical scheme and advantage clearer, below in conjunction with this Shen
Please accompanying drawing in embodiment, the technical scheme in the embodiment of the present application is clearly and completely described,
Obviously, described embodiment is some embodiments of the present application rather than whole embodiments.Based on
Embodiment in the application, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of the application protection.
The schematic flow sheet of the release processing method that Fig. 1 provides for the application one embodiment.Such as Fig. 1 institute
Showing, the method includes:
101, the second application receives the instruction processed release for instruction that the first application sends,
First application is different from the application that release is corresponding, the second application be release can be processed should
With.
102, the second application is according to above-mentioned instruction, performs release and processes.
The present embodiment provides a kind of release processing method, should be able to be used for performing by second.Second application can
To be any application that release can be processed.
The application that release is corresponding refers to the application of managing electronic information card, such as, can deposit and management is stepped on
The electronic information cards such as machine board, member card, film ticket, accumulating card, Gift Card, can connect with the Internet,
Automatically updating electronic information card at any time, and be also based on GIS-Geographic Information System, arriving this user should
With time near solid shop/brick and mortar store corresponding to the electronic information card stored, it is automatically reminded to.Illustrate, letter
The application that breath card is corresponding can be Google Now, or Passbook, or can be to terminal based on this
In release corresponding to each application is managed and/or the application that controls provides the user convenience, can
So that this application is referred to as service for life center, etc., will not enumerate herein.What deserves to be explained is,
The present embodiment second application can be the application that release is corresponding, or can be between first application and
Another Application between the application that release is corresponding, this application also has the function depositing and managing release.
Wherein, the first application can be differently configured from the application that above-mentioned release is corresponding, and the first application can be to be
System application, it is also possible to be third-party application.Such as, first application can be note application, phone application,
Instant messaging application, calendar application, memorandum application, e-mail applications etc..Should be appreciated that this
First application can also provide corresponding release, for showing user or for other application call or visit
Asking, when the first application provides corresponding release, it is corresponding that its function is equivalent to release in above-mentioned flow process
Application.
In the present embodiment, by second application release is processed, and allow with first apply into
Row is mutual so that the first application can send instruction to the second application and process to realize release, it is not necessary to
It is switched to the application that release is corresponding, it is achieved that across the release processing mode of application, letter from the first application
Change the process of release, improve release treatment effeciency.The release process side that the present embodiment provides
The idiographic flow of method is as follows:
The first application being different from application corresponding to release carries out letter to the second application transmission for instruction
The instruction that breath card processes, release, according to above-mentioned instruction, is processed by the second application.
Wherein, the second application carries out process to release and includes but not limited to: create operation, update operation,
Inquiry operation and deletion action.Create operation and refer to the operation of newly-built release;Update operation and refer to amendment
The operation of release information;Inquiry operation refers to the operation of Query Information card;Deletion action refers to delete letter
The operation of breath card.
The one of the instruction carrying out release process for instruction that the first application sends is received in the second application
In embodiment, the instruction that the first application sends carries release is processed required process letter
Breath.It addition, the second application externally provides access interface, it is allowed to other application are by calling this access interface
Release is processed.Based on this, the first application specifically can call the visit that the second application externally provides
Ask interface, send, to the second application, required process information that release is processed.Should be used for second
Say, specifically can receive the process letter that the first application call second applies the access interface of externally offer to send
Breath.Further, the second application specifically can perform release process according to above-mentioned process information.
What deserves to be explained is, release is processed required process information and generally comprises: to release
Carry out processing required processing parameter.Further, process information can also include: the process to release
Type.Wherein, processing this information of type can be carried in process information with explicit way, and then
Pass to the second application;Or process this information of type and can also pass to the second application with implicit.
For applying first, need process type and processing parameter are supplied to the second application.To the second application
For, can carry out processing the process indicated by type to release according to processing parameter.Wherein, process
Type is mainly used in mark needs which kind of process release carries out.Specifically, this process type is used for
Release is carried out creating operation, updating operation, inquiry operation, or deletion action etc. by mark.Process
Parameter mainly includes that execution processes the parameter needed for the process that type is identified, such as, according to processing type
Difference, can include in the information such as card mark, card content, card title is one or more.
According to release processes the difference of type, processing parameter would also vary from.Illustrate:
If processing type instruction to the process of release is to create, then processing parameter can include but not limited to:
Card mark, card title, service identifiers and card content;Service identifiers is for the release of tag card mark correspondence
Realize pattern.
For applying first, by calling the access interface that the second application externally provides, specifically establishment is believed
The parameters such as card mark, card title, service identifiers and the card content needed for breath card are transferred to the second application.To
For two application, carry out the wound of release with specific reference to card mark, card title, service identifiers and card content etc.
Building, the release created returns to after creating release the first application, the first application will be created
Good release is presented in current interface.As can be seen here, user is without being switched to second from the first application
In the case of application, i.e. complete the establishment of release.
If processing type instruction to the process of release is to update, then processing parameter can include but not limited to:
At least one in card mark, card title, service identifiers and card content.
For applying first, by calling the access interface that the second application externally provides, specifically renewal is believed
The parameters such as card mark, card title, service identifiers and the card content needed for breath card are transferred to the second application.To
For two application, carry out release more with specific reference to card mark, card title, service identifiers and card content etc.
Newly, and the release after updating returns to the first application, and the release after the first application will update is presented in
In current interface.As can be seen here, user is in the case of without being switched to the second application from the first application, i.e.
Complete the renewal of release.
If processing type instruction to the process of release is to inquire about, then processing parameter can include but not limited to:
Card mark.
For applying first, by calling the access interface that the second application externally provides, specifically inquiry is believed
Card identification transmission needed for breath card is to the second application.For applying second, concrete lookup card identifies corresponding
Release, and after finding this release, return to the first application, first applies the release that will inquire
It is presented in current interface.As can be seen here, user is in the situation without being switched to the second application from the first application
Under, i.e. complete the inquiry of release.
In another embodiment of the application, the second application can not be by according to the letter after respective handling type of process
Breath card returns to the first application, and directly controls this release and be presented in current interface, specifically, permissible
Control this release to be presented on the first application interface.
If processing type instruction to the process of release is to delete, then processing parameter can include but not limited to:
Card mark.
For applying first, by calling the access interface that the second application externally provides, specifically deletion is believed
Card identification transmission needed for breath card is to the second application.For applying second, concrete lookup card identifies corresponding
Release, and after finding this release, this release being deleted, further alternative can should to first
Success message is deleted with returning.As can be seen here, user is in the feelings without being switched to the second application from the first application
Under condition, i.e. complete the deletion of release.
In a detailed description of the invention, the second application externally provides an access interface.The most either which kind of
The process of type, the first application, all by calling this access interface, will process type and processing parameter two
Information passes to the second application as the suction parameter of this access interface.Based on this, the second application can only connect
Receive the process information that this access interface of the first application call sends.One visit only need to be provided due to this mode
Ask interface, so for applying second, it is achieved getting up fairly simple, cost is relatively low.
In another detailed description of the invention, the second application externally provides multiple access interfaces, and each access connects
The corresponding a type of process of mouth.Illustrate, process and include creating operation, inquiry operation, updating behaviour
Make and deletion action etc., then the second application externally provides the access interface of correspondence establishment operation (referred to as to create
Build interface), the access interface (referred to as query interface) of corresponding inquiry operation, corresponding update operation
The access interface of access interface (the most more new interface) and corresponding deletion action (is referred to as deleted and is connect
Mouthful).
Based on above-mentioned, first application specifically can call in the access interface that the second application externally provides with process
The access interface of type matching, is sent to the second application by processing parameter.For applying second, tool
Body can receive the place sent in the first application call access interface with the access interface processing type matching
Reason parameter.
Further, the second application receive in the first application call access interface with process type matching
A kind of detailed description of the invention of the processing parameter that access interface sends is as follows:
Second application receives the first application call and the processing parameter of the access interface transmission processing type matching
In card mark;
Second application sends parameter inputting interface to the first application;
Second application receives other parameters in the processing parameter that the first application is sent by parameter inputting interface.
In a concrete scene, when processing the type instruction process to release for creating, the second application connects
The card mark receiving the first application call and create in the processing parameter that interface sends;Parameter is sent to the first application
Inputting interface;Receive other parameters in the processing parameter that the first application is sent by parameter inputting interface, example
Such as card title, card content, service identifiers etc..
It addition, when processing the type instruction process to release for creating, the second application is according to processing letter
Breath, carries out process to release and specifically includes:
Second application carries out wash with watercolours according to the pattern resource that service identifiers is corresponding to card mark, card title and card content
Dye, to generate release view, background view, release view is added on background view, with
Obtain the release that card mark is corresponding;
Release corresponding for card mark is sent to the first application by the second application, is presented in for the first application and works as
On front interface;Or, release corresponding for card mark is presented in the current interface of the first application by the second application
On.
Optionally, above-mentioned background view may be at translucent.
Further alternative, the interface that the first application can currently represent generates the entrance area of release,
For for user by this entrance area send for newly-built, update, inquire about or delete the triggering of release
Instruction.
Second application uses the layout architecture of the release of aforesaid way realization as in figure 2 it is shown, but be not limited to
This.
So far illustrating, in the above-described embodiment, process information is retrieved and provided to second by the first application
Application, the second application only need to perform corresponding release according to the process information that the first application provides and process i.e.
Can.This mode is conducive to alleviating the processing load of the second application.
In each embodiment of the application, first application processing authority to release can be controlled, if first
Apply processing authority a kind of to release, such as, search access right, then acquiescence the first application sends
Instruction be the operation in order to perform Query Information card, in the case, it is not necessary to transmission process type information,
Corresponding access interface is without alignment processing type.
In another optional embodiment, what second application reception the first application sent is used for indicating at release
The instruction of reason, including: the second application receives the notification message that the first application sends, and this notification message is used for referring to
Show that the first application receives the business event of the 3rd applications trigger with release binding.That is, the second application connects
The instruction received is first to apply when receiving the business event of the 3rd applications trigger with release binding or it
The notification message of rear transmission.Accordingly, release, according to instruction, is processed by the second application, including:
Second application, according to notification message, obtains the process logic that the above-mentioned business event preset is corresponding;Second application
According to this process logic, obtain required process information that release is processed, and according to the information of process,
Release is processed.
Above-mentioned notification message can be belonging to the standard message that operating system provides, this operation system of every support
The application of system can receive and can identify, in simple terms, the second application is able to receive that and is capable of identify that this
Notification message.
In the above-described embodiment, in advance by release and the 3rd application binding, and set information is sticked into
The process logic that row processes, after such second application receives notification message, can know that the first application connects
Receive the business event of the 3rd applications trigger, directly invoke default process logic and carry out release process.
In this process, first applies after receiving business event, only need to broadcast a notification message, no
Need to obtain the process information performed needed for release processes, more need not process letter to the second application offer
Breath, simplifies the process logic of the first application, is conducive to alleviating the processing load of the first application.
What deserves to be explained is, process information here can also include processing release required place
Reason parameter, can also include processing type further.Second application specifically can be according to processing parameter to letter
Breath card carries out processing the process of type instruction.
From above-mentioned, when the first application being different from application corresponding to release needs to carry out release
During process, the first application sends for indicating the instruction processing release to the second application, and second
Application receives the instruction that the first application sends, and according to this instruction, processes release.As can be seen here,
The present embodiment need not from first application be switched to the application that information bank is corresponding, can directly this first answer
With carrying out release process under environment, improve the motility processing electronic information card, and treatment effeciency is relatively
High.
Illustrate, use the above embodiments of the present application can directly create release in note is applied,
A kind of result that creates is as it is shown on figure 3, this release includes the information such as activity name, place and time.
It addition, use the above embodiments of the present application can also check different release in calendar application, check knot
Flight Information shown in the viewing information of fruit " unmarried men and women 2 " as shown in Figure 4 and Fig. 5.
The schematic flow sheet of the release processing method that Fig. 6 provides for another embodiment of the application.Such as Fig. 6
Shown in, the method includes:
601, the second application receives the instruction processed release for instruction that the first application sends,
First application is different from the application that release is corresponding, the second application be release can be processed should
With.
602, the second application is according to above-mentioned instruction, returns service data to the first application, so that first should
Process with according to service data pair information card.
The present embodiment provides a kind of release processing method, should be able to be used for performing by second.Second application can
To be any application that release can be processed.
The application that release is corresponding refers to the application of managing electronic information card, such as, can deposit and management is stepped on
The electronic information cards such as machine board, member card, film ticket, accumulating card, Gift Card, can connect with the Internet,
Automatically updating electronic information card at any time, and be also based on GIS-Geographic Information System, arriving this user should
With time near solid shop/brick and mortar store corresponding to the electronic information card stored, it is automatically reminded to.Illustrate, letter
The application that breath card is corresponding can be Google Now, or Passbook, or can be to terminal based on this
In release corresponding to each application is managed and/or the application that controls provides the user convenience, can
So that this application is referred to as service for life center, etc., will not enumerate herein.What deserves to be explained is,
The present embodiment second application can be the application that release is corresponding, or can be between first application and
Another Application between the application that release is corresponding, this application also has the function depositing and managing release.
Wherein, the first application can be differently configured from the application that above-mentioned release is corresponding, and the first application can be to be
System application, it is also possible to be third-party application.Such as, first application can be note application, phone application,
Instant messaging application, calendar application, memorandum application, e-mail applications etc..Should be appreciated that this
First application can also provide corresponding release, for showing user or for other application call or visit
Asking, when the first application provides corresponding release, it is corresponding that its function is equivalent to release in above-mentioned flow process
Application.
In the present embodiment, by second application release is processed, and allow with first apply into
Row is mutual so that the first application can send instruction to the second application and process to realize release, it is not necessary to
It is switched to the application that release is corresponding, it is achieved that across the release processing mode of application, letter from the first application
Change the process of release, improve release treatment effeciency.The release process side that the present embodiment provides
The idiographic flow of method is as follows:
The first application being different from application corresponding to release carries out letter to the second application transmission for instruction
The instruction that breath card processes, the second application, according to above-mentioned instruction, returns service data to the first application, so that
First application processes according to service data pair information card.
Optionally, above-mentioned service data include: release processes required process logic.Specifically
For, the process logic needed for the second application will carry out release process is supplied to the first application so that the
One application possesses the ability processing release, and then processes release.It is to say, first should
The process that processes is carried out, with the second application according to release with according to service data pair information card
Process information needed for reason, the process processing release is identical.Based on this, about the first application
Repeat no more according to the flow process that service data pair information card carries out processing.
Wherein, according to release processes the difference of type, the process included by above-mentioned service data is patrolled
Collect and would also vary from.
Wherein, the first application carries out process to release and includes but not limited to: create operation, update operation,
Inquiry operation and deletion action.Create operation and refer to the operation of newly-built release;Update operation and refer to amendment
The operation of release information;Inquiry operation refers to the operation of Query Information card;Deletion action refers to delete letter
The operation of breath card.
Based on above-mentioned, the process logic included by above-mentioned service data can be to create the place needed for release
Process logic needed for managing logic, renewal release, the process logic needed for Query Information card and deletion are believed
Process logic needed for breath card.
In the present embodiment, need information is sticked into when the first application being different from application corresponding to release
When row processes, the first application sends, to the second application, the instruction processed release for instruction, the
Two application receive the instruction that the first application sends, and return service data according to this instruction to the first application, with
First application is processed according to service data pair information card.As can be seen here, the present embodiment need not
It is switched to, from the first application, the application that release is corresponding, directly can carry out letter under this first applied environment
Breath card processes, and improves the motility processing electronic information card, and treatment effeciency is higher.
The schematic flow sheet of the release processing method that Fig. 7 provides for the application one embodiment.Such as Fig. 7 institute
Showing, the method includes:
701, the first application receives for triggering the trigger event processing release, the first application
It is different from the application that release is corresponding.
702, the first application interacts with the second application, to process release;Second application
It it is the application that release can be processed.
The present embodiment provides a kind of release processing method, should be able to be used for performing by first.For ease of distinguishing,
The application that can process release is designated as the second application by the present embodiment, will be currently needed for carrying out letter
The application that breath card processes be designated as the first application, the first application is different from the application that release is corresponding.Second
Application can be the application that release is corresponding, or can also be corresponding with release between the first application
Other application between application.
The application that release is corresponding refers to the application of managing electronic information card, such as, can deposit and management is stepped on
The electronic information cards such as machine board, member card, film ticket, accumulating card, Gift Card, can connect with the Internet,
Automatically updating electronic information card at any time, and be also based on GIS-Geographic Information System, arriving this user should
With time near solid shop/brick and mortar store corresponding to the electronic information card stored, it is automatically reminded to.Illustrate, letter
The application that breath card is corresponding can be Google Now, or Passbook etc..
Wherein, the first application can be system application, it is also possible to be third-party application.Such as, first answer
With being note application, phone application, instant messaging application, calendar application, memorandum application, electricity
Sub-mail applications etc..
Release is processed by the present embodiment by the second application, it is allowed to interact with the first application,
Make the first application can send instruction to the second application to process to realize release, it is not necessary to should from first
The application corresponding with being switched to release, it is achieved that across the release processing mode of application, simplify information
The process of card, improves release treatment effeciency.Release processing method concrete that the present embodiment provides
Flow process is as follows:
First application receives for triggering the trigger event processing release, and this trigger event is used for
Instruction needs to process release;After receiving trigger event, under the triggering of trigger event, with
Second application interacts, to realize the process to release.
Wherein, first application receive trigger event a kind of mode may is that receive user send for
The triggering command that instruction release processes.First application receives triggering command, is equivalent to have received tactile
The event of sending out.
Such as, user can send triggering command on the interface that the first application currently represents.Accordingly,
First application can receive the triggering command that user sends on the interface that the first application currently represents.
In a kind of specific implementation, the interface that the first application currently represents includes function menu or function
Button, for sending trigger event for user.Such as, user can be to click on, to touch or the side such as hovering
Formula operating function menu, recalls corresponding function choosing-item in function menu, by clicking on corresponding function option
Send triggering command.The most such as, user can to click on, to touch, long by or the mode such as hovering operate boundary
The function button provided on face, to send triggering command.
In another kind of specific implementation, the interface that the first application currently represents includes the entrance of release
Region, this entrance area is mainly used in sending the instruction for processing release, such as user
Update, create or delete the instruction of release.Based on this, user can be by the information represented on interface
The entrance area of card, sends triggering command to the first application.Such as, this entrance area can be provided with specially
Trigger button, user can click on this trigger button to send triggering command;Or user can also
Long by, touch, click on this entrance area, thus send triggering command.Based on this, the first application is permissible
Receive user to be referred to by the first triggering applying the entrance area represented on the interface currently represented to send
Order.
Wherein, the another way of the first application reception trigger event may is that the first application receives in advance
Business event with the 3rd applications trigger of release binding.First application receives this business event, phase
When in have received trigger event.
Above-mentioned 3rd application is different from the first application and the second application and has business friendship with the first application
Mutual application.Illustrate, it is assumed that the first application is the note application on subscriber terminal equipment, then the 3rd
The note application that application is probably on the terminal units such as the friend of this user, household, colleague or stranger.
Assume that the first application is the instant messaging application on subscriber terminal equipment, such as wechat client, QQ client
End, then the 3rd application is probably on the terminal units such as the friend of this user, household, colleague or stranger
Instant messaging is applied, or the 3rd client can also is that instant messaging service end.
What deserves to be explained is, above-mentioned first application receive trigger event mode in, trigger event be by
User triggers, and belongs to manually triggering.And in the manner, trigger event by the 3rd applications trigger,
Need not the participation of user, belong to triggering automatically.
On implementing, in advance the 3rd application is bound with release, actually should by the 3rd
Bind with release with the business event triggered.Wherein, once occur that this business event means to
Release is processed.Based on this, the first application can monitor the business event of the 3rd applications trigger,
When monitoring the business event of the 3rd applications trigger, determine and receive trigger event, then should with second
With interacting, so that release is processed.
Illustrating, it is assumed that the first application is note client, corresponding 3rd application can be advertiser
Application for advertisement information, it is assumed that release has been bound in the application of this advertiser in advance, specifically binds
Release creates operation, it is meant that need to perform wound when receiving the advertising message that the application of this advertiser sends
Build the operation of release.Then when the first application receives the advertising message that the 3rd application sends, be equivalent to connect
Receive the business event of the 3rd applications trigger, then interact, to create release with the second application.
Applying, based on above-mentioned first, the trigger event received in every way, first applies in trigger event
Under triggering, interact with the second application, so that release is processed.What deserves to be explained is, to letter
The process of breath card includes but not limited to: creates operation, update operation, inquiry operation and deletion action.Wound
Build operation and refer to the operation of newly-built release;Update operation and refer to revise the operation of release information;Inquiry
Operation refers to the operation of Query Information card;Deletion action refers to delete the operation of release.
In a kind of optional embodiment, the first application interacts with the second application, to carry out release
Process, including: the first application sends, to the second application, the instruction processed release for instruction, with
Release is processed by instruction the second application.
In a kind of instruction the second application embodiment of processing release, the first application can be to
Second application sends the required process information that processes release, in order to second applies and need knowing
Required process information that release is processed is got while release process to be carried out.The most above-mentioned
Instruction carries and release processes required process information.
On implementing, the second application can externally provide access interface, it is allowed to other application are by adjusting
With this access interface, release is processed.Based on this, the first application specifically can be in above-mentioned triggering thing
Under the triggering of part, call the access interface that the second application externally provides, send release to the second application
Carry out processing required process information, so that release is processed by the second application according to process information.
Optionally, first apply and sending, to the second application, required process information that release processed
Before, this process information can first be obtained.
In a kind of embodiment obtaining above-mentioned process information, the trigger event that the first application receives is permissible
Carry above-mentioned process information.Such as, user, can be by this triggering command when sending triggering command
Carry above-mentioned process information.Concrete, user when sending triggering command, the first application can also to
An interface is shown at family, for for user's input processing information.Based on this, the first application can be from triggering thing
Part obtains above-mentioned process information.
In another kind obtains the embodiment of above-mentioned process information, the trigger event that the first application receives is only
Need to carry out release process for instruction, do not carry the process information performed needed for release processes.
Then the first application can first obtain, under the triggering of trigger event, the process letter performed needed for release processes
Breath, the process information of acquisition is sent to the second application by the access interface that recalling the second application provides, with
Release is processed by instruction the second application.Wherein, the first application can be according to the first current exhibition of application
The existing information on interface determines release processes required process information.Which is especially suitable
In the situation of establishment release, concrete, the first application can be release distribution card mark to be created
(ID), and the information from current interface is extracted the information such as card title, card content, if card further
Content includes picture, it is also possible to extract the link etc. of picture.
For example, it is assumed that the first application receives the advertising message that the 3rd application sends, it is assumed that believe with this advertisement
The release of breath binding processes and specially creates release, then the first application can distribute card mark and service
Mark, and from this advertising message, extract the information such as the title of release to be created, content, to obtain wound
Build the whole process information needed for release.
What deserves to be explained is, release is processed required process information and generally comprises: to release
Carry out processing required processing parameter.Further, process information can also include: the process to release
Type.For applying first, needing that process type and two information of processing parameter are supplied to second should
With.For applying second, can carry out processing the process that type indicates to release according to processing parameter.
Wherein, process type and be mainly used in mark needs which kind of process release carries out.Specifically, at this
Reason type needs to carry out release creating operation, updating operation, inquiry operation for mark, still deletes
Division operation etc..Processing parameter mainly includes that execution processes the parameter needed for the process indicated by type.Typically
For, release application can define release data model clearly, a kind of data model can include with
Lower data field:
CID, TEXT//card id
SID, TEXT//type id
TITLE, TEXT//card title
CONTENT, TEXT//business tine
LOGOURL, TEXT//card icon
Data above field is only for example, and in actual application, data field can be divided into elementary field, industry
Business field and extended field etc..Wherein, service fields comprises the field such as business tine and service condition, expands
Exhibition field is extended according to actual business requirement.Card mark (card id) is the unique of a release
Mark, release carries out any process will carry out identification information card by this field;Each release
Can also a corresponding service identifiers, realize pattern for indicate release, there is same service identifiers
Release there is identical pattern.Card header field is the title of release;Business tine field is
Service fields, concrete form can be defined by business side, mainly includes the content of release.Such as, one
The concrete data opening film information card are as shown in table 1:
Table 1
What deserves to be explained is, above-mentioned table 1 only lists the part field of release.
According to release processes the difference of type, processing parameter would also vary from.With above-mentioned data
As a example by model, illustrate:
For applying first, by calling the access interface that the second application externally provides, specifically establishment is believed
The parameters such as card mark, card title, service identifiers and the card content needed for breath card are transferred to the second application.To
For two application, carry out the wound of release with specific reference to card mark, card title, service identifiers and card content etc.
Building, the release created returns to after creating release the first application, the first application will be created
Good release is presented in current interface.As can be seen here, user is without being switched to second from the first application
In the case of application, i.e. complete the establishment of release.
If processing type instruction to the process of release is to update, then processing parameter can include but not limited to:
At least one in card mark, card title, service identifiers and card content.
For applying first, by calling the access interface that the second application externally provides, specifically renewal is believed
The parameters such as card mark, card title, service identifiers and the card content needed for breath card are transferred to the second application.To
For two application, carry out release more with specific reference to card mark, card title, service identifiers and card content etc.
Newly, and the release after updating returns to the first application, and the release after the first application will update is presented in
In current interface.As can be seen here, user is in the case of without being switched to the second application from the first application, i.e.
Complete the renewal of release.
If processing type instruction to the process of release is to inquire about, then processing parameter can include but not limited to:
Card mark.
For applying first, by calling the access interface that the second application externally provides, specifically inquiry is believed
Card identification transmission needed for breath card is to the second application.For applying second, concrete lookup card identifies corresponding
Release, and after finding this release, return to the first application, first applies the release that will inquire
It is presented in current interface.As can be seen here, user is in the situation without being switched to the second application from the first application
Under, i.e. complete the inquiry of release.
If processing type instruction to the process of release is to delete, then processing parameter can include but not limited to:
Card mark.
For applying first, by calling the access interface that the second application externally provides, specifically deletion is believed
Card identification transmission needed for breath card is to the second application.For applying second, concrete lookup card identifies corresponding
Release, and after finding this release, this release being deleted, further alternative can should to first
Success message is deleted with returning.As can be seen here, user is in the feelings without being switched to the second application from the first application
Under condition, i.e. complete the deletion of release.
In a detailed description of the invention, the second application externally provides an access interface.The most either which kind of
The process of type, the first application, all by calling this access interface, will process type and processing parameter two
Information passes to the second application as the suction parameter of this access interface.One only need to be provided due to this mode
Individual access interface, so for applying second, it is achieved getting up fairly simple, cost is relatively low.
In another detailed description of the invention, the second application externally provides multiple access interfaces, and each access connects
The corresponding a type of process of mouth.Illustrate, process and include creating operation, inquiry operation, updating behaviour
Make and deletion action etc., then the second application externally provides the access interface of correspondence establishment operation (referred to as to create
Build interface), the access interface (referred to as query interface) of corresponding inquiry operation, corresponding update operation
The access interface of access interface (the most more new interface) and corresponding deletion action (is referred to as deleted and is connect
Mouthful).
Illustrate: a kind of implementation of query interface is: public Cursor query (Uri uri,
String[]projection,String selection,String[]selectionArgs,String sortOrder)。
If inquiry release shown in above-mentioned table 1 is wished in the first application, then the first application can use
Content: //com.yunos.xxx/mycards/{cidXX} calls query interface, can get, wherein,
CidXX represents card ID.
A kind of implementation of more new interface is: public int update (Uri uri, ContentValues
values,String selection,String[]selectionArgs)。
A kind of implementation of newly-increased interface is: public Uri insert (Uri uri, ContentValues
values).Wherein, as long as the requirement of the above-mentioned data model of data fit can successfully create one in values
The release of Zhang Xin.
A kind of implementation deleting interface is: public int delete (Uri uri, String selection,
String[]selectionArgs)。
Based on above-mentioned, first application specifically can call in the access interface that the second application externally provides with place
The access interface of reason type matching, is sent to the second application by processing parameter, so that the second application basis
Processing parameter carries out processing the process of type instruction to release.Due to the corresponding kind of an access interface
The process of type, so passing through called access interface just can represent the type of process, such first should
With only processing parameter being passed to the second application as the suction parameter of this access interface, this mode is real
Now go up more flexible, operate more convenient.
Further, in the first application call access interface with process type matching access interface, will
A kind of detailed description of the invention that processing parameter is sent to the second application is as follows:
First application call and the access interface processing type matching, identify the card in processing parameter and make
The second application is passed to for suction parameter;For applying second, apply, according to first, the access called
Interface, knows that needing which kind of carries out processes, and can uniquely determine according to card mark needs release to be processed.
Continuing to provide other parameters for ease of the first application, the second application can provide parameter input to the first application
Interface;
First application receives the parameter inputting interface that the second application returns, by parameter inputting interface, will at
Other parameters in reason parameter are supplied to the second application, so that the second application is according to card mark and other parameters
The release that card mark is corresponding is carried out processing the process of type instruction.
What deserves to be explained is, the first application can directly input in addition to card identifies in parameter inputting interface
Other parameters, then other parameters are passed to the second application.Or, it is also possible to by user in parameter
Input other parameters in addition to card identifies in inputting interface, and send transmission instruction to the first application, with
Make the first application that other parameters are passed to the second application.For applying first, receive user in parameter
Other parameters in addition to card identifies of inputting interface input, and receive the transmission instruction that user sends, root
According to sending instruction, other parameters in addition to identifying except card pass to the second application.
So far illustrating, in the above-described embodiment, process information is retrieved and provided to second by the first application
Application, the second application only need to perform corresponding release according to the process information that the first application provides and process i.e.
Can.This mode is conducive to alleviating the processing load of the second application.
The business event technical side as trigger event of the 3rd applications trigger is received in above-mentioned first application
On the basis of case, the application additionally provides the embodiment party that release is processed by a kind of instruction the second application
Formula.In this embodiment, first application instruction the second application release processed particularly as follows:
First applies under the triggering of trigger event, sends a notification message to the second application, this notification message
Above-mentioned business event is received, so that the second application is according to the process logic preset for instruction the first application
Execution release processes.For applying second, upon receiving the notification message, can obtain default
Process logic, and according to this process logic, release is processed.It is to say, the first application sends
Instruction be first apply when receiving the business event of the 3rd applications trigger with release binding or after
The notification message sent, it is corresponding according to the business event preset for instruction the second application that this states notification message
Process logic release is processed.
Above-mentioned notification message belongs to the standard message that operating system provides, answering of every this operating system of support
With receiving and can identify, in simple terms, the second application is able to receive that and is capable of identify that this notice disappears
Breath.
In the above-described embodiment, in advance release is processed and the 3rd application binding, and set information card
The process logic processed, after such second application receives notification message, can know that the first application receives
To the business event of the 3rd applications trigger, directly invoke default process logic and carry out release process.?
During Gai, first applies after receiving business event, only need to broadcast a notification message, be not required to
Obtain the process information performed needed for release processes, more need not process information to the second application offer,
Simplify the process logic of the first application, be conducive to alleviating the processing load of the first application.
What deserves to be explained is, according to the difference of the business event that the 3rd application and the 3rd application are triggered,
The processs logic preset and release corresponding to this process logic process all can difference.
In general, the second application needs to process release required according to the acquisition of this process logic
Process information, processes release according to process information further.Here process information can also
Including release being processed required processing parameter, can also include further: the place to release
Reason type.Before can be found according to the idiographic flow that release is processed by process information about the second application
State and description in subsequent embodiment.
Illustrate, it is assumed that the first application receives the advertising message that the 3rd application sends, then first answer
With broadcasting a notification message, this notification message receives advertising message for instruction the first application;The
After two application receive notification message, know that the first application receives advertising message, it is assumed that set in advance
Processing logic is the logic creating release for this advertising message, then the second application is according to this process logic,
Identify and service identifiers for release distribution card to be created, and from advertising message, obtain card title, card
The information such as content, afterwards according to the release that this advertising message of these information creatings is corresponding, and will be created
Release return to the first application, for first application be illustrated in current interface.
What deserves to be explained is, for the release existed, during it is processed, or
It is that the card mark needing to obtain in advance this release is applied in the first application or second.Below then can using
Several ways obtains the card of already present release and identifies:
First kind of way: when second application create fresh information card time, can to other client broadcast one message,
This message includes the detail information such as card mark and the service identifiers of release.First application receives this broadcast
After from message, obtain card mark and the detail information such as service identifiers of release, and show on oneself interface
One is triggered label, when user clicks on this label, shows detail information (this details letter of this release
Breath is primarily referred to as the card mark of release).
The second way: when the second application creates fresh information card, can protect the detail information of this release
Being stored to the catalogue of agreement, such as :/storage/sdcard0/cards.txt, the first application can arrive this catalogue literary composition
Part obtains the detail information of release.
The third mode: the second application externally provides details query interface, and the first application can be detailed by this
The detail information of feelings query interface Query Information card.
4th kind of mode: the detail information of release is saved in and other visitors by the second application with list mode
In the memory space that family end is shared, the first application can read the details letter of release in this memory space
Breath.This shared memory space can be the storage position on network.
In a kind of optional embodiment, the first application interacts with the second application, to carry out release
Process, including:
First application sends, to the second application, the instruction processed release for instruction;
First application receives the service data that the second application returns according to above-mentioned instruction;
Release, according to service data, is processed by the first application.
Optionally, above-mentioned service data include: release processes required process logic.Specifically
For, the process logic needed for the second application will carry out release process is supplied to the first application so that the
One application possesses the ability processing release, and then processes release.It is to say, first should
The process that processes is carried out, with the second application according to release with according to service data pair information card
Process information needed for reason, the process processing release is identical.Based on this, about the first application
Repeat no more according to the flow process that service data pair information card carries out processing.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore by its all table
Stating as a series of combination of actions, but those skilled in the art should know, the application is by being retouched
The restriction of the sequence of movement stated because according to the application, some step can use other orders or with
Shi Jinhang.Secondly, those skilled in the art also should know, embodiment described in this description all belongs to
In preferred embodiment, necessary to involved action and module not necessarily the application.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
The structural representation of the release processing means that Fig. 8 provides for the application one embodiment.This device can
Being arranged in the second application realization, as shown in Figure 8, this device includes: receiver module 81 and processing module
82。
Receiver module 81, for receiving instruction release processed for instruction that the first application sends,
First application is different from the application that release is corresponding, and the second application is the application that can process release.
Processing module 82, for the instruction received according to receiver module 81, processes release;Or,
The instruction received according to receiver module 81, returns service data to the first application, so that the first application is according to clothes
Business data pair information card processes.
In an optional embodiment, above-mentioned instruction carries and release processes required process information.
Based on this, receiver module 81 specifically for: receive the first application call second and apply the access of externally offer to connect
The process information that mouth sends.Accordingly, processing module 82 specifically for: according to process information, to release
Process.
Further, above-mentioned process information includes: carry out release processing the processing parameter used.Based on this,
Receiver module 81 specifically for: receive in the first application call access interface with the process type phase to release
The processing parameter that the access interface of coupling sends.
Further, receiver module 81 specifically for: receive the first application call with process type matching
Access interface send processing parameter in card mark;Parameter inputting interface is sent to the first application;Receive
Other parameters in the processing parameter that first application is sent by parameter inputting interface.
Optionally, the instruction of above-mentioned process type is establishment to the process of release, and processing parameter includes: card
Mark, card title, service identifiers and card content;Service identifiers realizes pattern for identification information card.
Or
The instruction of above-mentioned process type is renewal to the process of release, and processing parameter includes: card mark, card
At least one in title, service identifiers and card content;Or
The instruction of above-mentioned process type is inquiry to the process of release, and processing parameter includes: card mark.Or
Person
The instruction of above-mentioned process type is deletion to the process of release, and processing parameter includes: card mark.
In an optional embodiment, processing module 82 specifically for: when process type indicate to release
When being processed as creating, according to the pattern resource that service identifiers is corresponding, card title and card content are rendered, with
Generate release view, background view, release view is added on background view, to obtain card
The release that mark is corresponding;Release corresponding for card mark is sent to the first application, for the first application exhibition
Now in current interface;Or release corresponding for card mark is presented in the current interface of the first application.
Optionally, above-mentioned background view is in translucent.
In an optional embodiment, above-mentioned instruction be first apply receiving and release binding the 3rd
During the business event of applications trigger or the rear notification message sent.Accordingly, processing module 82 specifically for:
According to notification message, obtain the process logic that the business event preset is corresponding;According to processing logic, it is right to obtain
Release carries out processing required process information, and according to the information of process, processes release.
Optionally, above-mentioned service data include release processes required process logic.
The release processing means that the present embodiment provides, is arranged in the second application realization, with the first application
Match, receive the instruction that the first application sends, and according to the instruction received, at release
Reason, or, according to the instruction received, return service data to the first application, so that the first application root
Process according to service data pair information card so that need not be switched to release from the first application corresponding
Application, directly can carry out release process under the first applied environment, improve process electronic information card
Motility, and treatment effeciency is higher.
The structural representation of the release processing means that Fig. 9 provides for another embodiment of the application.This information
Card processing unit may be disposed in the first application and realizes, as it is shown in figure 9, this device includes: receiver module
91 and processing module 92.
Receiver module 91, for receiving for triggering the trigger event that release is processed, the first application
It is different from the application that release is corresponding;
Processing module 92, for interacting with the second application, to process release;Second application
It it is the application that release can be processed.
In an optional embodiment, receiver module 91 specifically for: receive user first application work as
Before the triggering command that sends on the interface that represents.
In an optional embodiment, the interface that the first application currently represents includes the inlet region of release
Territory.Based on this, receiver module 91 specifically for: receive the triggering command that sent by entrance area of user.
In an optional embodiment, receiver module 91 specifically for: receive and the of release binding
The business event of three applications trigger.
In an optional embodiment, processing module 92 specifically for:
Instruction release processed for instruction is sent to the second application;
Receive the service data that the second application returns according to instruction;
According to service data, release is processed.
In an optional embodiment, processing module 92 specifically for: to second application transmission be used for referring to
Show the instruction that release is processed, to indicate the second application that release is processed.
Optionally, above-mentioned instruction carries and release processes required process information.Based on this,
Processing module 92 specifically for: call the access interface that the second application externally provides, to second application send
Process information, so that release is processed by the second application according to process information.
The device of the present embodiment also includes: acquisition module, for applying, according to first, the interface currently represented
On information determine process information;Or, from trigger event, acquisition processes information.
In an optional embodiment, above-mentioned process information includes: release processes required place
Reason parameter.Based on this, processing module 92 specifically for: call in access interface with process to release
The access interface of type matching, is sent to the second application by processing parameter, so that the second application is according to place
Reason parameter carries out processing the process of type instruction to release.
Further, processing module 92 specifically for:
Call and process the access interface of type matching, the card in processing parameter is identified and joins as entrance
Number passes to the second application;Receive the parameter inputting interface that the second application sends;By parameter inputting interface,
Other parameters in processing parameter are supplied to the second application, so that the second application identifies and other according to card
Parameter processes the process of type instruction to release execution.
In an optional embodiment, above-mentioned instruction is first to apply and receiving and the of release binding
During the business event of three applications trigger or the rear notification message sent, notification message is for instruction the second application
According to the process logic that default business event is corresponding, release is processed.
Optionally, the instruction of above-mentioned process type is establishment to the process of release, and processing parameter includes: card
Mark, card title, service identifiers and card content;Service identifiers realizes pattern for identification information card.
Or
The instruction of above-mentioned process type is renewal to the process of release, and processing parameter includes: card mark, card
At least one in title, service identifiers and card content;Or
The instruction of above-mentioned process type is inquiry to the process of release, and processing parameter includes: card mark.Or
Person
The instruction of above-mentioned process type is deletion to the process of release, and processing parameter includes: card mark.
The release processing means that the present embodiment provides, is arranged in the first application realization, with the second application
Match, receive the trigger event processed for trigger message card, and under the triggering of this trigger event,
Interact with the second application, so that release is processed, it is not necessary to be switched to information from the first application
The application that card is corresponding, directly can carry out release process under the first applied environment, improves process electricity
The motility of sub-release, and treatment effeciency is higher.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the application 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 realize to use the form of hardware, it would however also be possible to employ hardware adds
The form of SFU software functional unit realizes.
The above-mentioned integrated unit realized 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
Make 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 application.And it is aforementioned
Storage medium include: USB flash disk, portable hard drive, read only memory (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.
Last it is noted that above example is only in order to illustrate the technical scheme of the application, rather than to it
Limit;Although the application being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of the application each embodiment technical scheme.