CN106557343A - Systematic function application and the method and device of loading resource - Google Patents

Systematic function application and the method and device of loading resource Download PDF

Info

Publication number
CN106557343A
CN106557343A CN201510640328.4A CN201510640328A CN106557343A CN 106557343 A CN106557343 A CN 106557343A CN 201510640328 A CN201510640328 A CN 201510640328A CN 106557343 A CN106557343 A CN 106557343A
Authority
CN
China
Prior art keywords
application
function
resource
unique identifier
routing 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.)
Pending
Application number
CN201510640328.4A
Other languages
Chinese (zh)
Inventor
黎三平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510640328.4A priority Critical patent/CN106557343A/en
Publication of CN106557343A publication Critical patent/CN106557343A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application is related to software technology field, the more particularly to method and device of systematic function application and loading resource.Wherein in the systematic function application stage, to the resource allocation unique identifier that the application of function is related to, and generate R files, the R files are added to into compiling in the code of application of function and generate the application of function, in the application of function operation phase, host program constructs the resource object of the application of function, and both are passed to into the application of function, so as to the application of function can obtain resource corresponding with the unique identifier using resource object, by above-mentioned the present processes and device, R files can be included in application of function, host program may not necessarily be updated during so as to being updated to application of function.

Description

Systematic function application and the method and device of loading resource
Technical field
The application is related to software technology field, the more particularly to method and device of systematic function application and loading resource.
Background technology
For the client application of platform class, ultimate challenge is but the modularization meeting the exploitation of extensive team with modularization Problems faced not exclusively operational division, more importantly code and the pro forma isolation of engineered tissue.For example, exist There are oneself a set of resource management and load mode in android system, but will dynamically go loading resource just to become one Very difficult technical problem.
Or by taking android system as an example, modularization is done on Android, needs to face the dynamic load problem of code and resource, But for the loading android system of code provides corresponding API (application programming interfaces) to solve, but for resource Process no corresponding method.The way of main flow has at present:
1. modularization is carried out for code, and resource (such as picture, text etc.) does not do module.It is most on the market at present Using being all to select this way, it is placed in resource set in host program, the R file accesss generated when modules are by compiling Host is loading resource.The problem of this way is, after host program is reached the standard grade, resource cannot update or change, and needs more New whole host program.
2. code, resource all do modularization, but this resource access mode is incompatible with existing android system, it is impossible to enough Using optimization method of the android system to resource management.
The content of the invention
In order to solve the problems referred to above in prior art, it is proposed that the method and device of systematic function application and loading resource, can be by Using resource module, in order to improve efficiency during resource updates, and application of function can be improved to the simultaneous of existing system Capacitive.
The embodiment of the present application provides a kind of method that application of function is generated, including,
To the resource allocation unique identifier (ID) that application of function is related to, the R files of the application of function, the R files are generated Record has resource indexing information;
The R files are added to into compiling systematic function application in the code of application of function.
The embodiment of the present application additionally provides a kind of method of application of function dynamic load resource, including,
When application of function is loaded in host program, construct the resource object of the application of function;
By the resource index in the resource object and the application of function, the application of function believes that acquisition is corresponding in specified path Resource.
The embodiment of the present application additionally provides a kind of generating means of application of function, including,
Signal generating unit, for the resource allocation unique identifier being related to application of function, generates the R files of the application of function, institute Stating R file records has resource indexing information;
Packaged unit, for the R files are added to compiling systematic function application in the code of application of function.
The embodiment of the present application additionally provides a kind of device of application of function dynamic load resource, including,
Host program unit, when loading application of function in host program, for constructing the resource object of the application of function;
Application of function unit, for being obtained in specified path by the resource indexing information in the resource object and the application of function Take respective resources.
The technical scheme provided from above the embodiment of the present application, can include R files, in application of function so as to function Using may not necessarily update host program when being updated, and developer can use resource, work(as developing native applications Applicable modularization is very thorough, and can improve the compatibility of application of function, continues enjoyment system to the excellent of resource management Change, and also increase the NameSpace of resource.
Certainly the arbitrary product or method for implementing the application must be not necessarily required to while reaching all the above advantage.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or prior art Needed for description, accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only note in the application Some embodiments for carrying, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 show a kind of flow chart of application of function generation method of the embodiment of the present application;
Fig. 2 show a kind of flow chart of application of function dynamic load resource allocation method of the embodiment of the present application;
Fig. 3 show a kind of generating means structural representation of application of function of the embodiment of the present application;
Fig. 4 show a kind of apparatus structure schematic diagram of application of function dynamic load resource of the embodiment of the present application;
Fig. 5 show a kind of flow chart of generation Android application of function concrete grammars of the embodiment of the present application;
Fig. 6 show another kind of flow chart for generating Android application of function concrete grammars of the embodiment of the present application;
Schematic diagrames of the Fig. 7 for the application resource unique identifier;
Fig. 8 show a kind of concrete grammar flow chart of Android application of function loading of the embodiment of the present application;
Fig. 9 show the concrete grammar flow chart of the embodiment of the present application another kind Android application of function loading.
Specific embodiment
The embodiment of the present application provides the method and device of systematic function application and loading resource.
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, rather than the embodiment of whole.Based on the embodiment in the application, ordinary skill people The every other embodiment obtained under the premise of creative work is not made by member, should all belong to the scope of the application protection.
A kind of flow chart of application of function generation method of the embodiment of the present application is illustrated in figure 1, in the present embodiment, work(is being generated (such as the remittance application of function in this host program of the Alipay) stage can be applied, to the resource point that the application of function is related to With unique identifier (ID), and generate R files (the main resource for including indicating corresponding relation between resource and unique identifier Index information), the R files are added to into packing in the code of application of function and generate the application of function (APK), wherein also The corresponding resource of application of function can be added to pack together systematic function application.
Specifically include as shown in Figure 1, step 101, to the resource allocation unique identifier (ID) that application of function is related to, generating should The R files of application of function, the R file records have resource indexing information;
Step 102, the R files are added in the code of application of function, compile systematic function application.
Used as one embodiment of the application, the resource allocation unique identifier being related to application of function is further included, described Unique identifier includes resource type and resource sequence number.
As one embodiment of the application, also there is in the unique identifier module I D indicated including the resource.Wherein, Module I D including the resource may be module I D of the application of function, or resource module ID.
Specifically, the unique identifier is 4 bytes, before several bytes can be resource type, several bytes below It can be resource sequence number;Or, front 1 byte be module I D, such as 01 be No. 01 function application module or be resource mould Block (module I D), subsequent 2nd byte are resource type, and such as 01 represents picture, and 02 represents text etc., below 2 Individual byte is resource sequence number, specifically may refer to the schematic diagram that accompanying drawing 7 is the application resource unique identifier.In some embodiments In, the resource that application of function is related to can be positioned in the module of the application of function, or be positioned in single resource module, Or be positioned in several resource modules, the unique identifier of the resource involved by same application of function be it is different, no With application of function involved by same resource unique identifier may it is identical, refer to latter embodiments.
R files in above-mentioned steps are similar with the R files in host program in prior art, including main contents for resource Index information, i.e., store the corresponding relation of resource and unique identifier in R files.
As one embodiment of the application, the R files are being added to into compiling systematic function application in the code of application of function In still further comprise, the routing information that the R files and the application of function are related to resource is added to into the application of function Systematic function application is compiled in code.Wherein, the application of function be related to resource routing information include application of function institute according to The resource path information of other bad application of function or host program, the application of function of such as mobile phone online recharge may relate to pay Some resources of money application of function, therefore the routing information of relied on resource has been recorded in the routing information file, i.e. it is used for When indicating that host program generates resource object, resource path information is obtained in the routing information file of application of function, will be relied on Resource location be written in resource object so that resource object can find the corresponding of the application of function in specified position Resource.
By above-mentioned embodiments herein method, R files can be included in application of function, so as to carry out more to application of function Host program may not necessarily be updated when new, and developer can equally use resource, the mould of application of function to exploitation native applications Blockization is very thorough, and can continue optimization of the enjoyment system to resource management, and also increases the NameSpace of resource.
A kind of flow chart of application of function dynamic load resource allocation method of the embodiment of the present application is illustrated in figure 2, in the application of function Operation phase, host program construct the resource object of the application of function, and resource object is passed to the application of function, from And the application of function can obtain corresponding with unique identifier resource using resource object, the application of function i.e. can be with Respective resources are obtained, the method can run on any intelligent terminal designed according to said system, such as panel computer, intelligence Mobile phone or other portable equipments.
Step 201 is specifically included, and when application of function is loaded in host program, constructs the resource object of the application of function;
Step 202, the application of function is by the resource indexing information in the resource object and the application of function in specified path Middle acquisition respective resources.
As one embodiment of the application, also include in the resource object of the construction application of function, by the application of function The routing information of correspondence resource is write in the resource object as specified path.Wherein, in the prior art, all it is by host The resource object of program searches for the resource requirement of the application of function in the resource of host program, in the technical scheme of the application, Search for during the resource of which module (or which module) is indicated to resource object, so as to can just find respective resources, because This, when the resource of certain application of function needs to update, can individually update application of function or corresponding resource in systems Module, it is to avoid need in the prior art to update whole host program.
As one embodiment of the application, the routing information of the application of function correspondence resource is write in the resource object and enters one Step includes, is written to the routing information of the application of function as specified path in the resource object;
Or, routing information is obtained according to the routing information file in the application of function, using the routing information as specified path It is written in resource object.
Wherein, it is written to the routing information of the application of function as specified path in the resource object, function of for example remitting money Using resource in need all generate the application of function when be added in the bag of the application of function, host program generate money During source object, can indicate that resource object finds respective resources in the bag of the remittance application of function according to the setting of acquiescence;
Routing information is obtained according to the routing information file in the application of function, the routing information is written to as specified path In resource object, routing information file is included in the bag that application of function is generated, record has the application of function institute in this document The routing information of all resources for relying on, when host program generates resource object, will analyze the routing information file and is owned The routing information of resource, is then written in resource object, obtains corresponding provide according to above-mentioned routing information in order to resource object Source.
As one embodiment of the application, also include in the resource object of the construction application of function, according to the function Resource indexing information using in obtains unique identifier, determines the specified path according to the unique identifier, by the finger Determine path to be written in resource object.Wherein, according to embodiment above, there is in unique identifier the module for including the resource ID, can obtain respective resources are found in which module according to module I D, and for example, module I D is 01, then resource object Go No. 01 module using finding and resource sequence number identical resource with resource type identical mode, module I D is 02, then resource Object goes No. 02 module using finding and resource sequence number identical resource with resource type identical mode.
Used as one embodiment of the application, the application of function is by the resource index in the resource object and the application of function Respective resources in information acquisition specified path are specifically included, and the application of function obtains unique mark from the resource indexing information Know symbol, the unique identifier is sent to into the context of the application of function, the context of the application of function will be described unique Identifier is sent to resource object, and the resource object obtains respective resources according to the unique identifier in specified path, The application of function obtains corresponding resource.Wherein context can include resource object, using name, can also include The contents such as some services, component.
By the method for above-mentioned the embodiment of the present application, its lower certain application of function can be updated while host program is not updated Or certain resource module, so as to realize updating respective resources, the efficiency of software upgrading is improve, and ensure that stablizing for software Property;Additionally, the modularization of application of function is very thorough, resource and code all belong to respective module, and each module is isolated very Totally, and optimization of the enjoyment system to resource management can be continued, and also increases the NameSpace of resource.
A kind of generating means structural representation of application of function of the embodiment of the present application is illustrated in figure 3, device in the figure can be with Constituted by logic circuit or application specific processor, the R files of the application of function are generated in the stage of systematic function application, to refer to Bright corresponding resource unique identifier when calling resource, as R files are added in each application of function, can need more Only update the application of function or corresponding resource module during new resources, the device can be integrated in the computer at developer end or In server, for generating the application of function.
Include in the Fig. 3, signal generating unit 301, it is for the resource allocation unique identifier (ID) being related to application of function, raw Into the R files of the application of function, the R file records have resource indexing information;
Packaged unit 302, for the R files are added to compiling systematic function application in the code of application of function.
Used as one embodiment of the application, the signal generating unit includes to the resource allocation unique identifier that application of function is related to Resource type and resource sequence number.
Also wrap in the resource allocation unique identifier being related to application of function as one embodiment of the application, the signal generating unit Include module I D of the resource.
Used as one embodiment of the application, the packaged unit is further used for being related to the R files and the application of function The routing information of resource compiles systematic function application in being added to the code of the application of function.
By the device of above-described embodiment, the work(with R files can be generated in the computer at developer end or server Can apply, so as to load in follow-up host program during the application of function, corresponding resource can be found according to R files unique Identifier, realizes quoting the function purpose of dynamic load resource.
A kind of apparatus structure schematic diagram of application of function dynamic load resource of the embodiment of the present application is illustrated in figure 4, it is shown in this Fig Device can run on the smart machine of user side, such as smart mobile phone, even panel computer, the equipment such as intelligent watch, These smart machines run intelligence system, when certain application of function is loaded in certain host program, by the device of the present embodiment The resource needed for the dynamic load application of function can be realized, and when these resources need to update, it is only necessary to update the function Using or corresponding resource module, without needing as in the state of the art to update whole host program.
Device shown in the figure includes, host program unit 401, when loading application of function in host program, for constructing The resource object of the application of function;
Application of function unit 402, for by the resource indexing information in the resource object and the application of function in specified path Middle acquisition respective resources.
Wherein, the host program unit 401 is located in the host program, and the application of function unit 402 is located at the work( In applying.
Used as one embodiment of the application, the host program unit is further used for application of function correspondence resource Routing information is write in the resource object as specified path.
Used as one embodiment of the application, the host program unit is further used for the routing information of the application of function It is written in the resource object as specified path;
Or, routing information is obtained according to the routing information file in the application of function, using the routing information as specified path It is written in resource object.
Used as one embodiment of the application, the host program unit is further used for according to the resource in the application of function Index information obtains unique identifier, determines the specified path according to the unique identifier, the specified path is written to In resource object.
Used as one embodiment of the application, the application of function unit is further used for obtaining unique from resource indexing information The unique identifier is sent to the context of the application of function by identifier, the context of the application of function will described in only One identifier is sent to resource object, and the resource object obtains corresponding money in the path formulated according to the unique identifier Source, the application of function unit obtain corresponding resource.
By the device of above-mentioned the embodiment of the present application, its lower certain application of function can be updated while host program is not updated Or certain resource module, so as to realize updating respective resources, the efficiency of software upgrading is improve, and ensure that stablizing for software Property;Additionally, the modularization of application of function is very thorough, resource and code all belong to respective module, and each module is isolated very Totally, and optimization of the enjoyment system to resource management can be continued, and also increases the NameSpace of resource.
A kind of flow chart of generation Android application of function concrete grammars of the embodiment of the present application is illustrated in figure 5, is retouched in the figure State the step of the computer systematic function application of developer end, application of function in the present embodiment is remittance application of function, will The remittance application of function resource requirement, corresponding R files generate remittance function in being added to the code of the remittance application of function together Using.
Specifically include, step 501, to the resource allocation unique identifier being related in application of function of remitting money.
Wherein, for example two pictures are needed in application of function of remitting money, respectively to two picture resource distribution unique identifiers, for example For 0x00010001 and 0x00010002, the 2nd expression resource of byte 01 of unique identifier in the present embodiment is picture Resource, the interface that picture need to be adopted related when calling be read out, below 0001 and 0002 be the suitable of the two picture resources Sequence is numbered, if the resource of text type, the 2nd byte can be adopted for 02 resource type, more picture resources Serial number can be continued.
Step 502, generates the R files of remittance application of function.
R files in the present embodiment are identical with R files of the prior art, wherein essential record active applicable program generation The corresponding relation of resource name and its corresponding resource unique identifier in code.
Step 503, by R files accessing respective resources in the code of remittance function.
Step 504, respective resources and R files are added in the code of the remittance application of function, and packing generates remittance function Using.
Another kind of flow chart for generating Android application of function concrete grammars of the embodiment of the present application is illustrated in figure 6, in the figure Describe the step of the computer systematic function application of developer end, application of function in the present embodiment still should for remittance function With R files being generated remittance application of function, by the remittance application of function resource requirement together with the code of the remittance application of function It is individually created a resource module.
Specifically include, step 601, to the resource allocation unique identifier being related in application of function of remitting money.
Wherein, for example two pictures are needed in application of function of remitting money, respectively to two picture resource distribution unique identifiers, for example For 0x01010001 and 0x01010002, the I of the 1st expression resource module of byte 01 of unique identifier in the present embodiment D, 01 expression resource of latter one byte is picture resource, and the interface that picture need to be adopted related when calling be read out, after The 0001 of face and 0002 is the serial number of the two picture resources, be may be referred to shown in Fig. 7, if the money of text type Source, the 2nd byte can be adopted for 02 resource type, more picture resources can continue serial number.
The resource module ID positions of the unique identifier of the resource can serve to indicate that the ID of resource module, it is also possible to be designated as this By 00, the ID of function application module, for example, represent that the related resource of the remittance application of function is located in the remittance application of function.
Step 602, generates the R files of remittance application of function.
R files in the present embodiment are identical with R files of the prior art, wherein essential record active applicable program generation The corresponding relation of resource name and its corresponding resource unique identifier in code.
Step 603, by R files accessing respective resources in the code of remittance application of function.
Step 604, the R files are added in the code of remittance application of function, generate remittance application of function.
Step 605, the resource packing that remittance application of function is related to generate resource module.
Wherein described resource module has above-mentioned resource module ID.
Above-mentioned steps 604 and 605 can in no particular order sequentially.
By above-mentioned two embodiment, the resource that application of function is related to can be stored in the application of function, or can also be deposited Store up in single resource module.
A kind of concrete grammar flow chart of Android application of function loading of the embodiment of the present application is illustrated in figure 8, in the embodiment In, the resource location routing information of the application of function is written as the host program of application of function the resource object of its construction, therefore Application of function can have access to the resource of correlation, illustrate in the present embodiment or by taking application of function of remitting money as an example, and The resource of application of function of remitting money in the present embodiment is stored in the remittance application of function.
Step 801, the resource object of host program construction remittance application of function.
Wherein, host program can obtain the context of the remittance application of function, obtain resource object therein by the context.
Step 802, writes resource location routing information in the resource object.
In this example, corresponding to embodiment illustrated in fig. 5, the resource location information of application of function of remitting money is in the remittance application of function.
Step 803, when application of function of remitting money needs to call respective resources, obtains resource unique mark from resource indexing information Symbol.
Content as R files have just been contained when compiling generates remittance application of function, therefore have in remittance application of function There is resource indexing information.
The title of resource, in the resource indexing information matching and resource name phase can be called according to remittance application of function wherein Corresponding resource unique identifier, in this example, the resource unique identifier of acquisition is 0x01010001.
Resource unique identifier is sent to the context by step 804.
Resource unique identifier is sent to resource object by step 805, the context.
Step 806, the resource object according to resource location routing information remittance application of function in resource in match with it is described The corresponding resource of resource unique identifier.
Wherein, resource object is according to resource unique identifier 0x01010001, with the picture acquisition modes for 01 resource type Obtain the picture resource of 0001 sequence number.
The resource that matching is obtained is sent to the context by step 807, the resource object.
The resource is sent to remittance application of function by step 808, the context.
The concrete grammar flow chart of the embodiment of the present application another kind Android application of function loading is illustrated in figure 9, in this enforcement Embodiment illustrated in fig. 6 is corresponded in example, resource is obtained from single resource module, so as to not affect application of function and host Can just realize individually updating resource module on the premise of program.
Specifically include step 901, the resource object of host program construction remittance application of function.
Step 902, writes resource location routing information in the resource object.
In this example, corresponding to embodiment illustrated in fig. 5, the resource location information of application of function of remitting money is single resource module.
Step 903, when application of function of remitting money needs to call respective resources, obtains resource unique mark from resource indexing information Symbol.
The title of resource, in the wording index information matching and resource name phase can be called according to remittance application of function wherein Corresponding resource unique identifier, in this example, the resource unique identifier of acquisition is 0x01010001.
Resource unique identifier is sent to the context by step 904.
Resource unique identifier is sent to resource object by step 905, the context.
Step 906, the resource object are matched in the resource of No. 01 resource module and the money according to resource location routing information The corresponding resource of source unique identifier.
Wherein, resource object is according to resource unique identifier 0x01010001, in No. 01 resource module, with for 01 resource The picture acquisition modes of type obtain the picture resource of 0001 sequence number.
The resource that matching is obtained is sent to the context by step 907, the resource object.
The resource is sent to remittance application of function by step 908, the context.
By the method and apparatus in above-mentioned the embodiment of the present application, certain under which can be updated while host program is not updated Application of function or certain resource module, so as to realize updating respective resources, improve the efficiency of software upgrading, and ensure that soft The stability of part;Additionally, developer can equally use resource, the modularization of application of function to primary Android applications are developed Very thoroughly, resource and code all belong to respective module, and each module isolation is very clean, and can continue to enjoy And Optimization of the roid systems to resource management, and also increase the NameSpace of resource.
For the improvement of a technology clearly can distinguish be improvement on hardware (for example, to diode, transistor, open Close etc. circuit structure improvement) or software on improvement (for the improvement of method flow).However, with the development of technology, The improvement of current many method flows can be considered as directly improving for hardware circuit.Designer nearly all passes through will Improved method flow is programmed in hardware circuit to obtain corresponding hardware circuit.Therefore, it cannot be said that a method flow Improvement cannot be realized with hardware entities module.For example, PLD (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) is exactly such a collection Into circuit, its logic function is determined to device programming by user.Voluntarily programmed a digital display circuit " collection by designer Into " on a piece of PLD, special IC chip 2 is designed and makes without asking chip maker.And, Nowadays, replace and manually make IC chip, " logic compiler (logic compiler) " is also used in this programming mostly instead Realizing, when it is write with program development, software compiler used is similar software, and the source code before will compiling is also Write with specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), And HDL is also not only a kind of, but there are many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、 MyHDL, PALASM, RHDL (Ruby Hardware Description Language) etc., are most commonly used at present It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art also will be apparent to the skilled artisan that and only need to method flow slightly programming in logic is compiled with above-mentioned several hardware description languages Journey is in integrated circuit, it is possible to be readily available the hardware circuit for realizing the logical method flow process.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processor and Storage can by the computer-readable medium of the computer readable program code (such as software or firmware) of (micro-) computing device, Gate, switch, special IC (Application Specific Integrated Circuit, ASIC), FPGA The form of controller and embedded microcontroller, the example of controller include but is not limited to following microcontroller:ARC 625D、Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller can be with quilt It is embodied as a part for the control logic of memory.
It is also known in the art that in addition to realizing controller in pure computer readable program code mode, completely can be with Controller is caused with gate, switch, special IC, FPGA control by method and step is carried out programming in logic The form of device processed and embedded microcontroller etc. is realizing identical function.Therefore this controller is considered a kind of Hardware Subdivision Part, and the device for realizing various functions to including in which can also be considered as the structure in hardware component.Or or even, can Will be used for realizing that the device of various functions is considered as not only being the software module of implementation method but also being the knot in hardware component Structure.
System, device, module or unit that above-described embodiment is illustrated, specifically can be realized by computer chip or entity, or Realized by the product with certain function.
For convenience of description, it is divided into various units with function when describing apparatus above to describe respectively.Certainly, implementing the application When the function of each unit can be realized in same or multiple softwares and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can be by soft Part adds the mode of required general hardware platform to realize.Based on such understanding, the technical scheme of the application is substantially in other words The part contributed to prior art can be embodied in the form of software product, and the computer software product can be stored in In storage medium, such as ROM/RAM, magnetic disc, CD etc., using including some instructions so that computer equipment (can be with It is personal computer, server, or network equipment etc.) perform some part institutes of each embodiment of the application or embodiment The method stated.
Each embodiment in this specification is described by the way of progressive, and between each embodiment, identical similar part is mutual Referring to what each embodiment was stressed is the difference with other embodiment.Especially for system embodiment Speech, as which is substantially similar to embodiment of the method, so description is fairly simple, part of the related part referring to embodiment of the method Illustrate.
The application can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, server Computer, handheld device or portable set, laptop device, multicomputer system, based on the system of microprocessor, top set Box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, including any of the above system or equipment DCE etc..
The application can be described in the general context of computer executable instructions, such as program module. Usually, program module include performing particular task or realize the routine of particular abstract data type, program, object, component, Data structure etc..The application is put into practice in a distributed computing environment can also, in these DCEs, by passing through Communication network and connected remote processing devices are performing task.In a distributed computing environment, program module may be located at bag Storage device is included in interior local and remote computer-readable storage medium.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have it is many deformation and change and Without departing from spirit herein, it is desirable to which appended claim includes these deformations and changes without deviating from spirit herein.

Claims (18)

1. a kind of method of systematic function application, it is characterised in that include,
To the resource allocation unique identifier ID that application of function is related to, the R files of the application of function, the R file records are generated There is resource indexing information;
The R files are added to into compiling systematic function application in the code of application of function.
2. method according to claim 1, it is characterised in that the unique identifier includes resource type and resource Sequence number.
3. method according to claim 2, it is characterised in that also have in the unique identifier and indicate including the money Module I D in source.
4. method according to claim 1, it is characterised in that in the code that the R files are added to application of function Still further comprise in middle compiling systematic function application, the routing information that the R files and the application of function are related to resource is added Enter in the code of the application of function compiling systematic function application.
5. a kind of method of application of function dynamic load resource, it is characterised in that include,
When application of function is loaded in host program, construct the resource object of the application of function;
The application of function obtains phase in specified path by the resource indexing information in the resource object and the application of function Answer resource.
6. method according to claim 5, it is characterised in that in the resource object of the construction application of function also Including using the routing information of application of function correspondence resource as in the specified path write resource object.
7. method according to claim 6, it is characterised in that by the routing information write of application of function correspondence resource The resource object further includes, is written to the resource object using the routing information of the application of function as specified path In;
Or, routing information is obtained according to the routing information file in the application of function, using the routing information as specified path It is written in resource object.
8. method according to claim 5, it is characterised in that in the resource object of the construction application of function also Including according to the resource indexing information acquisition unique identifier in the application of function, according to the unique identifier determines Specified path, the specified path is written in resource object.
9. the method according to any one in claim 6,7,8, it is characterised in that the application of function passes through institute The respective resources stated in resource object and the acquisition specified path of the resource indexing information in the application of function are specifically included, the function Unique identifier is obtained using from the resource indexing information, the unique identifier is sent to into the upper and lower of the application of function The unique identifier is sent to resource object by text, the context of the application of function, and the resource object is according to described unique Identifier obtains respective resources in specified path, and the application of function obtains corresponding resource.
10. a kind of device of systematic function application, it is characterised in that include,
Signal generating unit, for the resource allocation unique identifier being related to application of function, generates the R files of the application of function, institute Stating R file records has resource indexing information;
Packaged unit, for the R files are added to compiling systematic function application in the code of application of function.
11. devices according to claim 10, it is characterised in that the resource that the signal generating unit is related to application of function Distribution unique identifier includes resource type and resource sequence number.
12. devices according to claim 11, it is characterised in that the resource that the signal generating unit is related to application of function Module I D in distribution unique identifier also including the resource.
13. devices according to claim 10, it is characterised in that the packaged unit is further used for the R is literary Part and the application of function are related to compile systematic function application during the routing information of resource is added to the code of the application of function.
14. a kind of devices of application of function dynamic load resource, it is characterised in that include,
Host program unit, when loading application of function in host program, for constructing the resource object of the application of function;
Application of function unit, for being obtained in specified path by the resource indexing information in the resource object and the application of function Take respective resources.
15. devices according to claim 14, it is characterised in that the host program unit is further used for institute The routing information for stating application of function correspondence resource is write in the resource object as specified path.
16. devices according to claim 15, it is characterised in that the host program unit is further used for institute The routing information for stating application of function is written in the resource object as specified path;
Or, routing information is obtained according to the routing information file in the application of function, using the routing information as specified path It is written in resource object.
17. devices according to claim 14, it is characterised in that the host program unit is further used for basis Resource indexing information in the application of function obtains unique identifier, determines the specified path according to the unique identifier, The specified path is written in resource object.
18. devices according to any one in claim 15,16,17, it is characterised in that the application of function list Unit is further used for unique identifier is obtained from resource indexing information, and the unique identifier is sent to the application of function Context, the unique identifier is sent to resource object by the context of the application of function, and the resource object is according to institute State unique identifier and respective resources are obtained in the path formulated, the application of function unit obtains corresponding resource.
CN201510640328.4A 2015-09-30 2015-09-30 Systematic function application and the method and device of loading resource Pending CN106557343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510640328.4A CN106557343A (en) 2015-09-30 2015-09-30 Systematic function application and the method and device of loading resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510640328.4A CN106557343A (en) 2015-09-30 2015-09-30 Systematic function application and the method and device of loading resource

Publications (1)

Publication Number Publication Date
CN106557343A true CN106557343A (en) 2017-04-05

Family

ID=58417406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510640328.4A Pending CN106557343A (en) 2015-09-30 2015-09-30 Systematic function application and the method and device of loading resource

Country Status (1)

Country Link
CN (1) CN106557343A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109799970A (en) * 2018-12-06 2019-05-24 珠海西山居移动游戏科技有限公司 A kind of quoting resource relationship generation method and system
CN110245017A (en) * 2019-05-29 2019-09-17 华为技术有限公司 The distribution method and equipment of resource identification
CN110955474A (en) * 2018-09-27 2020-04-03 杭州海康威视系统技术有限公司 Method, device and equipment for adding and calling service in application system
CN111273910A (en) * 2020-01-14 2020-06-12 北京小米移动软件有限公司 Method, device and storage medium for acquiring resource number identifier

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329309A (en) * 2000-06-13 2002-01-02 微软公司 Multi-languages user interface for operating system
CN1609799A (en) * 2003-10-23 2005-04-27 微软公司 Resource manifest
JP2009104250A (en) * 2007-10-19 2009-05-14 Mitsubishi Electric Corp Execution system, program, and execution method
CN102722370A (en) * 2012-05-24 2012-10-10 南京华设科技股份有限公司 Modular development method for Android
CN104123151A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Plug-in management method and device for application program in mobile terminal and mobile terminal
CN104216751A (en) * 2014-09-30 2014-12-17 广州金山网络科技有限公司 Loading method and system of functional unit interface resource of application program
CN104714828A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Methods and devices for installing and operating application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329309A (en) * 2000-06-13 2002-01-02 微软公司 Multi-languages user interface for operating system
CN1609799A (en) * 2003-10-23 2005-04-27 微软公司 Resource manifest
JP2009104250A (en) * 2007-10-19 2009-05-14 Mitsubishi Electric Corp Execution system, program, and execution method
CN102722370A (en) * 2012-05-24 2012-10-10 南京华设科技股份有限公司 Modular development method for Android
CN104123151A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Plug-in management method and device for application program in mobile terminal and mobile terminal
CN104216751A (en) * 2014-09-30 2014-12-17 广州金山网络科技有限公司 Loading method and system of functional unit interface resource of application program
CN104714828A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Methods and devices for installing and operating application

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955474A (en) * 2018-09-27 2020-04-03 杭州海康威视系统技术有限公司 Method, device and equipment for adding and calling service in application system
CN110955474B (en) * 2018-09-27 2023-09-05 杭州海康威视系统技术有限公司 Method, device and equipment for adding and calling service in application system
CN109799970A (en) * 2018-12-06 2019-05-24 珠海西山居移动游戏科技有限公司 A kind of quoting resource relationship generation method and system
CN110245017A (en) * 2019-05-29 2019-09-17 华为技术有限公司 The distribution method and equipment of resource identification
CN110245017B (en) * 2019-05-29 2024-03-26 华为技术有限公司 Resource identifier allocation method and equipment
CN111273910A (en) * 2020-01-14 2020-06-12 北京小米移动软件有限公司 Method, device and storage medium for acquiring resource number identifier
CN111273910B (en) * 2020-01-14 2023-09-05 北京小米移动软件有限公司 Method, device and storage medium for acquiring resource number identifier

Similar Documents

Publication Publication Date Title
US10127218B2 (en) Object templates for data-driven applications
CN106970822A (en) A kind of container creation method and device
US8627274B2 (en) Software tool and method for generating a virtual appliance
TWI354900B (en) Method, system, and computer program product for a
CN111309335B (en) Compiling method and device of plug-in application and computer readable storage medium
CN108595187A (en) Method, device and the storage medium of Android installation kit integrated software development kit
CN108764864A (en) A kind of method, apparatus and equipment for configuring payment flow, executing payment flow
CN107203465A (en) System interface method of testing and device
CN110134668A (en) Data migration method, device and equipment applied to block chain
US20170052764A1 (en) Pluggable components for runtime-image generation
CN108282518A (en) A kind of customer terminal webpage generation method and device
CN106557343A (en) Systematic function application and the method and device of loading resource
CN106020877A (en) Automatic update method and apparatus for system environment configuration
CN108549562A (en) A kind of method and device of image load
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN110515647A (en) A kind of static resource management method, device, equipment and storage medium
CN109344619A (en) The hot restorative procedure and device of application program
CN107592334A (en) A kind of information popularization method, apparatus and equipment
CN108595246A (en) A kind of method, apparatus and equipment of operation application
CN108345536A (en) A kind of dispositions method, device and the equipment of continuous integrating environment
CN108255471A (en) A kind of system configuration item configuration device based on configuration external member, method and apparatus
CN112604273B (en) Data-driven game system function loading method, device and storage medium
CN107391099A (en) A kind of resource preprocess method and device
CN109409037B (en) Method, device and equipment for generating data confusion rule
CN110244964A (en) It is a kind of based on O&M application O&M method, O&M method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1235487

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170405

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1235487

Country of ref document: HK