CN104572278A - Method, device and equipment for light application to call local end capability - Google Patents
Method, device and equipment for light application to call local end capability Download PDFInfo
- Publication number
- CN104572278A CN104572278A CN201410806989.5A CN201410806989A CN104572278A CN 104572278 A CN104572278 A CN 104572278A CN 201410806989 A CN201410806989 A CN 201410806989A CN 104572278 A CN104572278 A CN 104572278A
- Authority
- CN
- China
- Prior art keywords
- page
- local side
- light application
- side ability
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention provides a method, a device and equipment for a light application to call local end capability. The method for the light application to call the local end capability comprises the following steps of receiving a request of a light application calling entry; according to the configuration information, determining a webpage corresponding to the entry as a light application webpage; loading the light application webpage corresponding to the entry, and loading a local end capability interface library for the light application webpage, wherein the local end capability interface library for the light application webpage comprises the interface information of the called local end capability, so as to enable the light application to call the local end capability according to the interface information of the local end capability. The method provided by the method has the advantage that the light application webpage corresponding to the calling entry is loaded, and the local end capability interface library is loaded for the light application webpage, so the light application can call the local end capability according to the interface information of the local end capability contained in the local end capability interface library, and the favorable condition is provided for the perfect development of the light application.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of method of light application call local side ability, device and equipment.
Background technology
Light application is a kind of global function application (App) without the need to downloading, namely searching namely, based on retrieval and the intelligent dispense characteristics of search, solves the problem that requirements of mobile subscribers docks with developer.Client provides Native ability (local side ability) as the carrier of light application, and light application uses Native ability by the interface (being generally JS interface, i.e. Javascript interface) of access local side ability.But, due to current light application page Loading opportunity and process uncontrollable, therefore, its light application page loaded cannot obtain the interface message of complete local side ability, therefore cannot effectively access Native ability.
Summary of the invention
One of technical matters that the present invention solves is to provide a kind of method of light application call local side ability, device and equipment, effectively can access various local side ability to realize light application.
An embodiment according to an aspect of the present invention, provides a kind of method of light application call local side ability, comprising:
Receive light application and adjust entry request;
Determine that the page that described entrance is corresponding is for gently to apply the page according to configuration information; Then
Load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page, comprising in described local side ability interface storehouse can the interface message of invoked local side ability, so that light application calls local side ability according to the interface message of described local side ability.
Alternatively, described light application has been adjusted in entry request and has been carried light application identities, and described method also comprises:
Described configuration information is obtained from local or server according to described light application identities.
Alternatively, if obtain described configuration information from server, then described method also comprises:
The described configuration information obtained from server is saved in this locality.
Alternatively, determine that the page that described entrance is corresponding is that light applications pages face comprises according to configuration information:
If get described configuration information from local or server, then determine that the page that described entrance is corresponding is for gently to apply the page; Or
If get described configuration information from local or server, and in described configuration information, indicate the page that described entrance is corresponding for gently to apply the page, then determine that the page that described entrance is corresponding is for gently to apply the page.
Alternatively, load in face of light applications pages corresponding to described entrance, described method also comprises:
According to described configuration information identification user right;
Load according to the user right identified and gently apply page framework accordingly.
Alternatively, load local side ability interface storehouse to comprise:
For the described light application page provides link and the access rights in local side ability interface storehouse.
Alternatively, the interface message of local side ability comprises:
The method name of local side ability interface corresponding method and local side ability interface.
Alternatively, call local side ability according to the interface message of described local side ability to comprise:
Need the method name of the method called in local side ability base, find the local side ability interface of corresponding method title according to light application;
Access the described local side ability interface found and realize calling of local side ability.
An embodiment according to a further aspect of the invention, provides a kind of device of light application call local side ability, comprising:
The unit of entry request has been adjusted for receiving light application;
For determining that according to configuration information the page that described entrance is corresponding is the unit gently applying the page; Then
For loading the light application page corresponding to described entrance and the unit for described light application page loading local side ability interface storehouse, comprising in described local side ability interface storehouse can the interface message of invoked local side ability, so that light application calls local side ability according to the interface message of described local side ability.
Alternatively, described light application has been adjusted in entry request and has been carried light application identities, and described method also comprises:
Described configuration information is obtained from local or server according to described light application identities.
Alternatively, if obtain described configuration information from server, then described method also comprises:
The described configuration information obtained from server is saved in this locality.
Alternatively, determine that the page that described entrance is corresponding is that light applications pages face comprises according to configuration information:
If get described configuration information from local or server, then determine that the page that described entrance is corresponding is for gently to apply the page; Or
If get described configuration information from local or server, and in described configuration information, indicate the page that described entrance is corresponding for gently to apply the page, then determine that the page that described entrance is corresponding is for gently to apply the page.
Alternatively, load in face of light applications pages corresponding to described entrance, described method also comprises:
According to described configuration information identification user right;
Load according to the user right identified and gently apply page framework accordingly.
Alternatively, the method loading local side ability interface storehouse for the unit loading the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page comprises:
For the described light application page provides link and the access rights in local side ability interface storehouse.
Alternatively, the interface message of local side ability comprises:
The method name of local side ability interface corresponding method and local side ability interface.
Alternatively, also comprise:
For needing the method name of the method called to find the unit of the local side ability interface of corresponding method title in local side ability base according to light application;
The unit called of local side ability is realized for accessing the described local side ability interface found.
An embodiment according to a further aspect in the invention, additionally provides a kind of computer equipment, comprises the device of aforementioned light application call local side ability.
Because the embodiment of the present invention is receiving after light application adjusted entry request, whether the page having adjusted entrance corresponding to described light application is gently apply the page to confirm, under confirming that gently applying the page having adjusted entrance corresponding is light application page situation, load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page, thus light application can call local side ability according to the interface message of the local side ability comprised in local side ability interface storehouse, the development of light application is improved advantage is provided.
Those of ordinary skill in the art will understand, although detailed description is below carried out with reference to illustrated embodiment, accompanying drawing, the present invention is not limited in these embodiments.But scope of the present invention is widely, and be intended to limit scope of the present invention by means of only accompanying claim.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the process flow diagram of the method for light according to an embodiment of the invention application call local side ability.
Fig. 2 is the process flow diagram of the method for light in accordance with another embodiment of the present invention application call local side ability.
Fig. 3 is the structural representation of the device of light according to an embodiment of the invention application call local side ability.
Fig. 4 is the structural representation of the device of light in accordance with another embodiment of the present invention application call local side ability.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Application (App) refers generally to local installation or the application without the need to installing online use in mobile phone and panel computer.Object-oriented is divided into usually personal user apply (towards individual consumer) and enterprise-level application (To enterprises), mobile end system classification mainly comprises: xap and appx of iOSApp (as: synchronously pushing away), Android Apk (as: AirDroid, Baidu's application etc.) and windows phone.
Light application described in the embodiment of the present application is a kind of global function App without the need to downloading, namely searching namely, existing matching in excellence or beauty even surmounts the Consumer's Experience of local app, possesses again the characteristic of distributing with intelligence that is retrieved of online app, by the problem effectively solving high-quality application and service and dock with requirements of mobile subscribers.Light application has following features:
The first, without the need to downloading, namely searching and namely using.
Such as, a GT grand touring application being named as many interests, has money more than 500 to apply for different cities, different sight spot, and downloading and upgrading cost becomes the high sill lain across between developer and user.By light application, how interesting the user's request of search " Shanghai guide to visitors ", " Zhouzhuang guide to visitors " can directly adjust, and the everywhere of developer rear end upgrades and all automatically presents in front end, without the need to harassing user.
The second, broken shell is retrieved, intelligence distribution.
The application of developer's exploitation is no longer information island, and the content of the inside can be indexed, and this forms obvious difference with native applications.In application shop, only have user to input clear and definite App title, such as " tick and call a taxi ", this application can be distributed.And now, all and relevant demand of calling a taxi, such as " I will call a taxi ", " from international trade to Yonghe Palace Temple " etc. of naturally expressing in mobile search, all by the class application of calling a taxi of guiding developer exploitation, greatly increase exposure and the utilization rate of application, solve a distribution difficult problem from source.
3rd, powerful, all can experience.
Light application can be helped to apply and adjusted the mobile phone such as voice, camera, location, storage this locality or the multi abilities in high in the clouds, allow apply with better function.Gently be applied as example online with good doctor, developer not only can arrange speech exchange module, local camera can also have been adjusted to help user to take laboratory test report or affected part, thus provide identical with local App and even better experience.
4th, subscribe to and push, precipitation user.
Light application is not only supported to realize calling during user search, also supports that user initiatively subscribes to.If user has subscription demand and adds application, user just can precipitate by associated developer, and user is continued, accurately information and service push.Such as, the user of a lot of video class application has the demand chasing after play, and Baidu supports the function that user subscribes to, as long as user have subscribed application, whenever there being new acute renewal, developer can notify user the very first time, strengthen viscosity, thus set up more firmly firm relation with user.
Through number is a kind of light application.Through number is the official service account of businessman at Baidu's mobile platform.Based on various ways such as mobile search ,@account, map, personalized recommendations, allow hundreds of millions clients through merchant service whenever and wherever possible.Be understandable that, the light application described in the embodiment of the present application is not limited to through number.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the process flow diagram of the method for light according to an embodiment of the invention application call local side ability.Method in the present invention has been come mainly through the operating system in computer equipment or processing controller.Operating system or processing controller are called the device of light application call local side ability.This computer equipment include but not limited to following at least one: subscriber equipment, the network equipment.Subscriber equipment includes but not limited to computing machine, smart mobile phone, PDA etc.The network equipment includes but not limited to the server group that single network server, multiple webserver form or the cloud be made up of a large amount of computing machine or the webserver based on cloud computing, wherein, cloud computing is the one of Distributed Calculation, the super virtual machine be made up of a group loosely-coupled computing machine collection.
As shown in fig. 1, the method for described light application call local side ability mainly comprises the steps:
Entry request has been adjusted in S100, the light application of reception;
S110, determine that the page that described entrance is corresponding is for gently to apply the page according to configuration information; Then
S120, load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page, comprising in described local side ability interface storehouse can the interface message of invoked local side ability, so that light application calls local side ability according to the interface message of described local side ability.
Below above steps is described in further details.
Wherein, in step S100, receive light application and adjusted entry request, namely, receive light application page load request, this is gently applied to have adjusted in entry request and comprises URL (Uniform Resoure Locator: URL(uniform resource locator)) corresponding to light application and light application identities.
Wherein by last layer service logic determines this tune, entry request can be adjusted for gently applying by entry request.
In step S110, determine that the page that described entrance is corresponding is the step gently applying the page according to configuration information, namely verify whether the page that described entrance is corresponding is gently apply the page.The embodiment of the present application is when receiving light application and having adjusted entry request, for verifying whether the page that described entrance is corresponding is gently apply the page, first can obtain corresponding configuration information, thus verify whether the page that described entrance is corresponding is gently apply the page according to configuration information.
The method that a kind of embodiment of the application obtains configuration information comprises following operation:
First, judge whether this locality preserves described configuration information;
Concrete, corresponding configuration information can be obtained according to light application identities, such as, search the configuration information whether having adjusted the light application identities of carrying in entry request corresponding with described light application in the configuration information preserved in this locality, if existence, then the direct configuration information obtaining this correspondence from this locality.
If corresponding configuration information is not preserved in this locality, then obtain corresponding configuration information from server, and the described configuration information obtained from server can be kept at this locality, directly can get this configuration information from this locality so that follow-up.
If the configuration information corresponding with described light application identities can be got from local or server, then can determine that the page that this entrance is corresponding is for gently to apply the page.
Step S120, verify that the page that described entrance is corresponding is in light application page situation in step S110, complete the operation loading the light application page, can be that the described light application page loads local side ability interface storehouse while loading the light application page corresponding to described entrance.Wherein, the method loading local side ability interface storehouse comprises: for the described light application page provides link and the access rights in local side ability interface storehouse.Comprising in this local side ability interface storehouse can the interface message of invoked local side ability, wherein, the interface message of local side ability comprises: the method name of local side ability interface corresponding method and local side ability interface, and interface wherein can be the run time version of this interface corresponding method.
Corresponding local side ability can be accessed, to realize gently applying calling local side ability by this local side ability interface information.The method calling local side ability according to the interface message of described local side ability in the present embodiment comprises the steps:
First, need the method name of the method called in local side ability base, find the local side ability interface of corresponding method title according to light application;
Afterwards, access the described local side ability interface found, realize calling of local side ability.
Namely the described local side ability interface that access finds, performs the code that this local side ability interface is corresponding, by performing local side ability corresponding to this code call.
The method of the light application call local side ability described in the present embodiment, under confirming that gently applying the page having adjusted entrance corresponding is light application page situation, load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page, thus light application can call local side ability according to the interface message of the local side ability comprised in local side ability interface storehouse, the development of light application is improved advantage is provided.
As shown in Figure 2, be the process flow diagram of the method for light in accordance with another embodiment of the present invention application call local side ability, the method mainly comprises the steps:
Entry request has been adjusted in S200, the light application of reception;
Receive gently application and adjusted entry request, that is, receive light application page load request, this is gently applied to have adjusted in entry request and comprises URL corresponding to light application and light application identities.
Wherein by last layer service logic determines this tune, entry request can be adjusted for gently applying by entry request.
S210, obtain configuration information to determine that the page that described entrance is corresponding is for gently to apply the page;
The embodiment of the present application has adjusted entry request for the light application received, light application can be used to open agreement (baiduboxapp: //laopen? url=& appid=...) trigger acquisition configuration information, thus verify whether the page that described entrance is corresponding is gently apply the page.
Wherein, the present embodiment is when receiving light application and having adjusted entry request, for verifying whether the page that described entrance is corresponding is gently apply the page, first can obtain corresponding configuration information, thus verifying whether the page that described entrance is corresponding is gently apply the page according to configuration information.The method that a kind of embodiment of the application obtains configuration information comprises following operation:
First, judge whether this locality preserves described configuration information;
Concrete, corresponding configuration information can be obtained according to light application identities, such as, search the configuration information whether having adjusted the light application identities of carrying in entry request corresponding with described light application in the configuration information preserved in this locality, if existence, then the direct configuration information obtaining this correspondence from this locality.
If corresponding configuration information is not preserved in this locality, then obtain corresponding configuration information from server, and the described configuration information obtained from server can be kept at this locality, directly can get this configuration information from this locality so that follow-up.
A kind of embodiment, if the configuration information corresponding with described light application identities can be got from local or server, then can determine that the page that this entrance is corresponding is for gently to apply the page, namely, configuration information is specifically designed to preservation and gently applies corresponding informance in such cases, comprise light application identities, URL that light application is corresponding etc.
Another kind of embodiment, determine whether the page that described entrance is corresponding is gently apply the page according to the record in the configuration information obtained, under this kind of scene, can record the page corresponding to application identities in configuration information is gently apply the page or the non-light application page.
If determine that the page that described entrance is corresponding is for gently to apply the page, then continue flow process below according to configuration information, if not gently apply the page, then conventionally scheme operation, the present embodiment is not specifically limited this.
S220, according to configuration information identification user right, with determine load light application page framework;
Whether be gently apply except the information of the page except comprising in configuration information described in the present embodiment, user right information can also be comprised, different user right correspondences loads different light application page framework, such as, if VIP is (very important person, honored guest) authority user, then the simple version loading described entrance corresponding gently applies browsing pages framework, otherwise loads master corresponding to described entrance and gently apply browsing pages framework.
The present embodiment can arrange user right, and can load the light application browsing pages framework of different mode for the user of different rights, enhances the experience of light user application.
S230, load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page.Wherein, the method loading local side ability interface storehouse comprises: for the described light application page provides link and the access rights in local side ability interface storehouse.Comprising in this local side ability interface storehouse can the interface message of invoked local side ability, wherein, the interface message of local side ability comprises: the method name of local side ability interface corresponding method and local side ability interface, and interface wherein can be the run time version of this interface corresponding method.
Corresponding local side ability can be accessed, to realize gently applying calling local side ability by this local side ability interface information.The method calling local side ability according to the interface message of described local side ability in the present embodiment comprises the steps:
First, need the method name of the method called in local side ability base, find the local side ability interface of corresponding method title according to light application;
Afterwards, access the described local side ability interface found, realize calling of local side ability.
Namely the described local side ability interface that access finds, performs the code that this local side ability interface is corresponding, by performing local side ability corresponding to this code call.
It should be noted that, there is no priority time restriction according to the operation of the light application page framework of user right loading correspondence and the loading light application page in the present embodiment, it can perform simultaneously.
The method of the light application call local side ability described in the present embodiment, under confirming that gently applying the page having adjusted entrance corresponding is light application page situation, corresponding light application page framework can be loaded according to different user authority, and be that the described light application page loads local side ability interface storehouse while loading the light application page corresponding to described entrance, thus light application can call local side ability according to the interface message of the local side ability comprised in local side ability interface storehouse, the development of light application is improved advantage is provided.
Based on the thinking that said method is same, the embodiment of the present application also provides a kind of device of light application call local side ability, and be described apparatus structure schematic diagram as shown in Figure 3, this device mainly comprises:
The unit 300 of entry request has been adjusted, hereinafter referred to as request reception unit 300 for receiving light application; This request reception unit 300 receives gently application and has adjusted entry request, that is, receive light application page load request, and this is gently applied to have adjusted in entry request and comprises URL corresponding to light application and light application identities.
Wherein by last layer service logic determines this tune, entry request can be adjusted for gently applying by entry request.
For determining that according to configuration information the page that described entrance is corresponding is the unit 310 gently applying the page, hereinafter referred to as determining unit 310;
This determining unit 310 is for verifying whether the page that described entrance is corresponding is gently apply the page.Wherein this determining unit of a kind of embodiment can comprise:
For obtaining the subelement 311 of described configuration information from local or server according to described light application identities, subelement 311 is obtained hereinafter referred to as configuration information, request reception unit 300 receive light application adjusted entry request time, for verifying whether the page that described entrance is corresponding is gently apply the page, subelement 311 can be obtained by configuration information and first obtain corresponding configuration information, thus verify whether the page that described entrance is corresponding is gently apply the page according to configuration information.
The method that a kind of embodiment of the application configuration information acquisition subelement 311 obtains configuration information comprises following operation:
First, judge whether this locality preserves described configuration information;
Concrete, corresponding configuration information can be obtained according to light application identities, such as, search the configuration information whether having adjusted the light application identities of carrying in entry request corresponding with described light application in the configuration information preserved in this locality, if existence, then the direct configuration information obtaining this correspondence from this locality.
If corresponding configuration information is not preserved in this locality, then configuration information obtains subelement 311 and obtains corresponding configuration information from server.Now this determining unit 310 can comprise further:
For the described configuration information obtained from server being saved in local subelement 312, the described configuration information obtained can be saved in this locality, so that subsequent configuration acquisition of information subelement 311 directly can get this configuration information from this locality from server.
This determining unit 310 determines that the page that described entrance is corresponding is that the method gently applying the page comprises:
If can get the configuration information corresponding with described light application identities from local or server, then determining unit 310 can determine that the page that this entrance is corresponding is for gently to apply the page.Or
If get described configuration information from local or server, and indicate the page that described entrance is corresponding for gently to apply the page in described configuration information, then determining unit 310 determines that the page that described entrance is corresponding is for gently to apply the page.
For loading the light application page corresponding to described entrance and the unit 320 for described light application page loading local side ability interface storehouse, hereinafter referred to as page loading unit 320.
This page loading unit 320 verifies that the page that described entrance is corresponding is in light application page situation in determining unit 310, load and gently apply the page, and can be that the described light application page loads local side ability interface storehouse while loading the light application page corresponding to described entrance.Wherein, the method that page loading unit 320 loads local side ability interface storehouse comprises: for the described light application page provides link and the access rights in local side ability interface storehouse.Comprising in this local side ability interface storehouse can the interface message of invoked local side ability, wherein, the interface message of local side ability comprises: the method name of local side ability interface corresponding method and local side ability interface, and interface wherein can be the run time version of this interface corresponding method.
Corresponding local side ability can be accessed, to realize gently applying calling local side ability by this local side ability interface information.Device described in the present embodiment also can comprise as lower unit for according to as described in the interface message of local side ability call local side ability:
For needing the method name of the method called to find the unit of the local side ability interface of corresponding method title in local side ability base according to light application;
For accessing the described local side ability interface found, realize the unit called of local side ability.Namely the described local side ability interface that this unit access finds, performs the code that this local side ability interface is corresponding, by performing local side ability corresponding to this code call.
As shown in Figure 4, be the apparatus structure schematic diagram of light according to another embodiment of the present invention application call local side ability, as shown in Figure 4, this device, except comprising above-mentioned each unit, also can comprise:
For the unit 330 according to described configuration information identification user right, hereinafter referred to as authority recognition unit 330; Whether being gently apply except the information of the page except comprising in the configuration information described in the present embodiment, can also comprising user right information, this authority recognition unit 330 namely for resolving configuration information, thus identifies user right.
For loading the unit 340 of corresponding light application page framework according to the user right identified, hereinafter referred to as page framework loading unit 340.In the embodiment of the present application, page framework loading unit 340 can load different page framework for different user rights, such as, if VIP is (very important person, honored guest) authority user, the simple version then loading described entrance corresponding gently applies browsing pages framework, otherwise loads master corresponding to described entrance and gently apply browsing pages framework.
It should be noted that, the operation that this page framework loading unit 340 loads light application page framework loads light operation of applying the page with page loading unit 330 and there is no existing time restriction, and it can perform simultaneously.
The present embodiment can arrange user right, and can load the light application browsing pages framework of different mode for the user of different rights, enhances the experience of light user application.
In sum, the method of the light application call local side ability described in the present embodiment, under confirming that gently applying the page having adjusted entrance corresponding is light application page situation, and be that the described light application page loads local side ability interface storehouse while loading the light application page corresponding to described entrance, thus light application can call local side ability according to the interface message of the local side ability comprised in local side ability interface storehouse, the development of light application is improved advantage is provided.
It should be noted that the present invention can be implemented in the assembly of software and/or software restraint, such as, special IC (ASIC), general object computing machine or any other similar hardware device can be adopted to realize.In one embodiment, software program of the present invention can perform to realize step mentioned above or function by processor.Similarly, software program of the present invention (comprising relevant data structure) can be stored in computer readable recording medium storing program for performing, such as, and RAM storer, magnetic or CD-ROM driver or flexible plastic disc and similar devices.In addition, steps more of the present invention or function can adopt hardware to realize, such as, as coordinating with processor thus performing the circuit of each step or function.
In addition, a part of the present invention can be applied to computer program, such as computer program instructions, when it is performed by computing machine, by the operation of this computing machine, can call or provide according to method of the present invention and/or technical scheme.And call the programmed instruction of method of the present invention, may be stored in fixing or moveable recording medium, and/or be transmitted by the data stream in broadcast or other signal bearing medias, and/or be stored in the working storage of the computer equipment run according to described programmed instruction.At this, comprise a device according to one embodiment of present invention, this device comprises the storer for storing computer program instructions and the processor for execution of program instructions, wherein, when this computer program instructions is performed by this processor, trigger this plant running based on the aforementioned method according to multiple embodiment of the present invention and/or technical scheme.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.In addition, obviously " comprising " one word do not get rid of other unit or step, odd number does not get rid of plural number.Multiple unit of stating in system claims or device also can be realized by software or hardware by a unit or device.First, second word such as grade is used for representing title, and does not represent any specific order.
Claims (17)
1. a method for light application call local side ability, wherein, comprising:
Receive light application and adjust entry request;
Determine that the page that described entrance is corresponding is for gently to apply the page according to configuration information; Then
Load the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page, comprising in described local side ability interface storehouse can the interface message of invoked local side ability, so that light application calls local side ability according to the interface message of described local side ability.
2. method according to claim 1, wherein said light application has been adjusted in entry request and has been carried light application identities, and described method also comprises:
Described configuration information is obtained from local or server according to described light application identities.
3. method according to claim 2, if wherein obtain described configuration information from server, then described method also comprises:
The described configuration information obtained from server is saved in this locality.
4. method according to claim 1 and 2, wherein determine that the page that described entrance is corresponding is that light applications pages face comprises according to configuration information:
If get described configuration information from local or server, then determine that the page that described entrance is corresponding is for gently to apply the page; Or
If get described configuration information from local or server, and in described configuration information, indicate the page that described entrance is corresponding for gently to apply the page, then determine that the page that described entrance is corresponding is for gently to apply the page.
5. method according to claim 1 and 2, wherein load in face of light applications pages corresponding to described entrance, described method also comprises:
According to described configuration information identification user right;
Load according to the user right identified and gently apply page framework accordingly.
6. method according to claim 1, wherein loads local side ability interface storehouse and comprises:
For the described light application page provides link and the access rights in local side ability interface storehouse.
7. method according to claim 1, wherein the interface message of local side ability comprises:
The method name of local side ability interface corresponding method and local side ability interface.
8. method according to claim 7, wherein call local side ability according to the interface message of described local side ability and comprise:
Need the method name of the method called in local side ability base, find the local side ability interface of corresponding method title according to light application;
Access the described local side ability interface found and realize calling of local side ability.
9. a device for light application call local side ability, wherein, comprising:
The unit of entry request has been adjusted for receiving light application;
For determining that according to configuration information the page that described entrance is corresponding is the unit gently applying the page; Then
For loading the light application page corresponding to described entrance and the unit for described light application page loading local side ability interface storehouse, comprising in described local side ability interface storehouse can the interface message of invoked local side ability, so that light application calls local side ability according to the interface message of described local side ability.
10. device according to claim 9, wherein said light application has been adjusted in entry request and has been carried light application identities, described for determining that according to configuration information the page that described entrance is corresponding is that the unit gently applying the page comprises:
For obtaining the subelement of described configuration information from local or server according to described light application identities.
11. devices according to claim 10, wherein for determining that according to configuration information the page that described entrance is corresponding is that the unit gently applying the page also comprises:
For the described configuration information obtained from server being saved in local subelement.
12. devices according to claim 9 or 10, wherein for determine according to configuration information the page that described entrance is corresponding be the unit of gently applying the page specifically for:
If get described configuration information from local or server, then determine that the page that described entrance is corresponding is for gently to apply the page; Or
If get described configuration information from local or server, and in described configuration information, indicate the page that described entrance is corresponding for gently to apply the page, then determine that the page that described entrance is corresponding is for gently to apply the page.
13. devices according to claim 9 or 10, wherein said device also comprises:
For the unit according to described configuration information identification user right;
For loading the unit of corresponding light application page framework according to the user right identified.
14. devices according to claim 9, wherein comprise for the method that the unit loading the light application page corresponding to described entrance and load local side ability interface storehouse for the described light application page loads local side ability interface storehouse:
For the described light application page provides link and the access rights in local side ability interface storehouse.
15. devices according to claim 9, wherein the interface message of local side ability comprises:
The method name of local side ability interface corresponding method and local side ability interface.
16. devices according to claim 15, wherein also comprise:
For needing the method name of the method called to find the unit of the local side ability interface of corresponding method title in local side ability base according to light application;
The unit called of local side ability is realized for accessing the described local side ability interface found.
17. 1 kinds of computer equipments, comprise the device according to the light application call local side ability of any one in claim 9-16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410806989.5A CN104572278B (en) | 2014-12-22 | 2014-12-22 | The method, device and equipment of light application calling local side ability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410806989.5A CN104572278B (en) | 2014-12-22 | 2014-12-22 | The method, device and equipment of light application calling local side ability |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572278A true CN104572278A (en) | 2015-04-29 |
CN104572278B CN104572278B (en) | 2018-11-23 |
Family
ID=53088425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410806989.5A Active CN104572278B (en) | 2014-12-22 | 2014-12-22 | The method, device and equipment of light application calling local side ability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572278B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881308A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | Application program handling method and device |
CN105786567A (en) * | 2016-02-25 | 2016-07-20 | 四川长虹电器股份有限公司 | Middleware for information interaction of light application and main application and iOS application sub-module dynamic updating method |
CN106201582A (en) * | 2016-06-28 | 2016-12-07 | 安徽科成信息科技有限公司 | A kind of data background update system |
CN107682238A (en) * | 2017-09-15 | 2018-02-09 | 广州神马移动信息科技有限公司 | Smart home platform device and terminal electronic device |
CN108108369A (en) * | 2016-11-24 | 2018-06-01 | 腾讯科技(深圳)有限公司 | Common interface storehouse call error treating method and apparatus |
CN108153848A (en) * | 2017-12-20 | 2018-06-12 | 广东神马搜索科技有限公司 | Light searching method, equipment and the electronic equipment for applying data |
CN108173846A (en) * | 2017-12-27 | 2018-06-15 | 北京小米移动软件有限公司 | login method and device |
CN108762817A (en) * | 2018-05-29 | 2018-11-06 | 北京五八信息技术有限公司 | Using configuration method, device, equipment and the storage medium adjusted |
CN110909319A (en) * | 2019-11-29 | 2020-03-24 | Oppo(重庆)智能科技有限公司 | Application processing method and related product |
CN111083093A (en) * | 2018-10-22 | 2020-04-28 | 中国移动通信集团浙江有限公司 | Method and device for calling terminal capability |
CN111158695A (en) * | 2019-12-19 | 2020-05-15 | 广州华多网络科技有限公司 | Interface positioning method and device, computer equipment and storage medium |
CN111367635A (en) * | 2020-02-28 | 2020-07-03 | 北京百度网讯科技有限公司 | Method, apparatus, device and medium for implementing application interface in host platform layer |
CN111526111A (en) * | 2019-02-02 | 2020-08-11 | 腾讯科技(深圳)有限公司 | Control method, device and equipment for logging in light application and computer storage medium |
CN112596922A (en) * | 2020-12-17 | 2021-04-02 | 百度在线网络技术(北京)有限公司 | Communication management method, apparatus, device, medium, and program product |
CN112637116A (en) * | 2020-10-30 | 2021-04-09 | 彩讯科技股份有限公司 | Page-based terminal capability calling method, device, terminal and storage medium |
US11698823B2 (en) | 2020-02-28 | 2023-07-11 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Application interface implementation method in a host platform layer, device, and medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053994A (en) * | 2009-11-10 | 2011-05-11 | 阿里巴巴集团控股有限公司 | Language parser and parsing method using same |
CN102647462A (en) * | 2012-03-29 | 2012-08-22 | 奇智软件(北京)有限公司 | Application acquisition and sending method and device |
US8447813B2 (en) * | 2010-07-26 | 2013-05-21 | Scott Redmond | Mobile multi-network communications device |
KR101378001B1 (en) * | 2012-11-12 | 2014-03-26 | 주식회사 아이디시스 | Method of driving a smart phone |
CN103678508A (en) * | 2013-11-21 | 2014-03-26 | 北京奇虎科技有限公司 | Webpage opening method and device |
CN103809857A (en) * | 2014-02-24 | 2014-05-21 | 联想(北京)有限公司 | Information processing method and electronic device |
KR20140077999A (en) * | 2012-12-13 | 2014-06-25 | 조은총 | App(application) integrated management and resale business |
CN103970573A (en) * | 2014-05-21 | 2014-08-06 | 百度在线网络技术(北京)有限公司 | Light application program system for mobile device and program loading system and method thereof |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN104156233A (en) * | 2014-07-21 | 2014-11-19 | 小米科技有限责任公司 | Method, device and terminal for updating light applications in offline manner |
-
2014
- 2014-12-22 CN CN201410806989.5A patent/CN104572278B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053994A (en) * | 2009-11-10 | 2011-05-11 | 阿里巴巴集团控股有限公司 | Language parser and parsing method using same |
US8447813B2 (en) * | 2010-07-26 | 2013-05-21 | Scott Redmond | Mobile multi-network communications device |
CN102647462A (en) * | 2012-03-29 | 2012-08-22 | 奇智软件(北京)有限公司 | Application acquisition and sending method and device |
KR101378001B1 (en) * | 2012-11-12 | 2014-03-26 | 주식회사 아이디시스 | Method of driving a smart phone |
KR20140077999A (en) * | 2012-12-13 | 2014-06-25 | 조은총 | App(application) integrated management and resale business |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN103678508A (en) * | 2013-11-21 | 2014-03-26 | 北京奇虎科技有限公司 | Webpage opening method and device |
CN103809857A (en) * | 2014-02-24 | 2014-05-21 | 联想(北京)有限公司 | Information processing method and electronic device |
CN103970573A (en) * | 2014-05-21 | 2014-08-06 | 百度在线网络技术(北京)有限公司 | Light application program system for mobile device and program loading system and method thereof |
CN104156233A (en) * | 2014-07-21 | 2014-11-19 | 小米科技有限责任公司 | Method, device and terminal for updating light applications in offline manner |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881308B (en) * | 2015-05-18 | 2019-03-29 | 百度在线网络技术(北京)有限公司 | A kind of processing method and processing device of application program |
CN104881308A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | Application program handling method and device |
CN105786567A (en) * | 2016-02-25 | 2016-07-20 | 四川长虹电器股份有限公司 | Middleware for information interaction of light application and main application and iOS application sub-module dynamic updating method |
CN105786567B (en) * | 2016-02-25 | 2019-01-11 | 四川长虹电器股份有限公司 | IOS application submodule dynamic update method and its intermediate system |
CN106201582A (en) * | 2016-06-28 | 2016-12-07 | 安徽科成信息科技有限公司 | A kind of data background update system |
CN108108369A (en) * | 2016-11-24 | 2018-06-01 | 腾讯科技(深圳)有限公司 | Common interface storehouse call error treating method and apparatus |
CN108108369B (en) * | 2016-11-24 | 2021-09-07 | 腾讯科技(深圳)有限公司 | Method and device for processing calling error of common interface library |
CN107682238A (en) * | 2017-09-15 | 2018-02-09 | 广州神马移动信息科技有限公司 | Smart home platform device and terminal electronic device |
CN108153848A (en) * | 2017-12-20 | 2018-06-12 | 广东神马搜索科技有限公司 | Light searching method, equipment and the electronic equipment for applying data |
CN108173846A (en) * | 2017-12-27 | 2018-06-15 | 北京小米移动软件有限公司 | login method and device |
CN108762817A (en) * | 2018-05-29 | 2018-11-06 | 北京五八信息技术有限公司 | Using configuration method, device, equipment and the storage medium adjusted |
CN111083093A (en) * | 2018-10-22 | 2020-04-28 | 中国移动通信集团浙江有限公司 | Method and device for calling terminal capability |
CN111526111A (en) * | 2019-02-02 | 2020-08-11 | 腾讯科技(深圳)有限公司 | Control method, device and equipment for logging in light application and computer storage medium |
CN111526111B (en) * | 2019-02-02 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Control method, device and equipment for logging in light application and computer storage medium |
CN110909319A (en) * | 2019-11-29 | 2020-03-24 | Oppo(重庆)智能科技有限公司 | Application processing method and related product |
CN110909319B (en) * | 2019-11-29 | 2022-03-29 | Oppo(重庆)智能科技有限公司 | Application processing method and related product |
CN111158695A (en) * | 2019-12-19 | 2020-05-15 | 广州华多网络科技有限公司 | Interface positioning method and device, computer equipment and storage medium |
CN111158695B (en) * | 2019-12-19 | 2023-07-25 | 广州方硅信息技术有限公司 | Interface positioning method, device, computer equipment and storage medium |
CN111367635A (en) * | 2020-02-28 | 2020-07-03 | 北京百度网讯科技有限公司 | Method, apparatus, device and medium for implementing application interface in host platform layer |
WO2021169150A1 (en) * | 2020-02-28 | 2021-09-02 | 北京百度网讯科技有限公司 | Application interface implementation method and apparatus in host platform layer, and device and medium |
US11698823B2 (en) | 2020-02-28 | 2023-07-11 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Application interface implementation method in a host platform layer, device, and medium |
CN112637116A (en) * | 2020-10-30 | 2021-04-09 | 彩讯科技股份有限公司 | Page-based terminal capability calling method, device, terminal and storage medium |
CN112596922A (en) * | 2020-12-17 | 2021-04-02 | 百度在线网络技术(北京)有限公司 | Communication management method, apparatus, device, medium, and program product |
CN112596922B (en) * | 2020-12-17 | 2024-04-05 | 百度在线网络技术(北京)有限公司 | Communication management method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN104572278B (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572278A (en) | Method, device and equipment for light application to call local end capability | |
US11146502B2 (en) | Method and apparatus for allocating resource | |
US20180165458A1 (en) | Method and apparatus for repairing kernel vulnerability | |
US11232392B2 (en) | Method for processing orders and electronic device | |
CN106528578B (en) | Information display method and device | |
CN103577207A (en) | Loading method and loading device for interface components in custom interface system | |
CN107798064B (en) | Page processing method, electronic device and computer readable storage medium | |
CN109857577B (en) | Access control method, device, medium, and electronic apparatus | |
CN104756080A (en) | Augmenting capabilities of a host device | |
CN104052809A (en) | Distribution control method and device for web testing | |
CN104268229A (en) | Resource obtaining method and device based on multi-process browser | |
CN107463422A (en) | Code dispositions method and device, electronic equipment | |
CA3059719A1 (en) | Payment processing method, device, medium and electronic device | |
CN104598266A (en) | Client application service logic updating method and device and equipment | |
CN109325192B (en) | Advertisement anti-shielding method and device | |
CN105335313A (en) | Basic data transmission method and apparatus | |
CN113821307A (en) | Method, device and equipment for quickly importing virtual machine mirror image | |
CN111475230B (en) | Application function configuration method and device and electronic equipment | |
CN103354927A (en) | Method and apparatus for managing content in a processing device | |
CN109302641B (en) | Video watching request method, medium and device | |
CN104866301A (en) | Method and device for calling and auxiliary calling of local end capacity | |
CN106548331B (en) | Method and device for determining release sequence | |
CN103309941A (en) | Application update method, device and system | |
CN108255556B (en) | Interface sharing method and device for multiple interfaces | |
US9323511B1 (en) | Splitting application permissions on devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |