CN106648810A - Application program resource obtaining method and device - Google Patents

Application program resource obtaining method and device Download PDF

Info

Publication number
CN106648810A
CN106648810A CN201710055099.9A CN201710055099A CN106648810A CN 106648810 A CN106648810 A CN 106648810A CN 201710055099 A CN201710055099 A CN 201710055099A CN 106648810 A CN106648810 A CN 106648810A
Authority
CN
China
Prior art keywords
application
resource
installation kit
installation
application program
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
CN201710055099.9A
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710055099.9A priority Critical patent/CN106648810A/en
Publication of CN106648810A publication Critical patent/CN106648810A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application program resource obtaining method and device, relates to the technical field of terminal applications, and aims at saving the storage space of application installation packages. The method comprises the following steps of: obtaining an installation package identifier corresponding to an application program resource when the application program resource needs to be obtained by an application program; detecting whether the installation package identifier is an installation package identifier of a pre-configured general resource application installation package, wherein the general resource application installation package stores general application program resources of a plurality of application programs; if the detection result is positive, determining the application program resource to be obtained by the application program as the general application program resource; and obtaining the general application program resource from the general resource application installation package and transferring the generation application program resource to the application program. The method and device disclosed by the invention are suitable for the optimization of application program resources.

Description

The acquisition methods and device of application resource
Technical field
The present invention relates to a kind of terminal applies technical field, the acquisition methods of more particularly to a kind of application resource and Device.
Background technology
With the development of development of Mobile Internet technology, the use of mobile device is very common.User can be on the mobile apparatus Set up applications (Application, APP), to meet the various demands of user.I.e. mobile device passes through loading application programs Application installation package (AndroidPackage, APK), carry out the installation of application program.
At present, application program can only use the application resource or system application installation package in itself application installation package In application resource, if multiple application programs are required for using same application resource, and application program money When source is not the application resource in system application installation package, then will store in the application installation package of these application programs A identical application resource, and then the waste of the memory space of application installation package can be caused.
The content of the invention
In view of this, the invention provides the acquisition methods and device of a kind of application resource, main purpose is can To save the memory space of application installation package.
According to one aspect of the invention, there is provided a kind of acquisition methods of application resource, the method includes:
When application program needs to obtain application resource, the corresponding installation kit mark of the application resource is obtained Know;
Detect that the installation kit identifies whether the installation kit mark of the generic resource application installation package to be pre-configured with, it is described The general purpose application program resource of multiple application programs is preserved in generic resource application installation package;
If, it is determined that it is the general purpose application program resource that the application program needs the application resource for obtaining;
The general purpose application program resource is obtained from the generic resource application installation package and the application journey is passed to Sequence.
According to another aspect of the invention, there is provided a kind of acquisition device of application resource, the device includes:
Acquiring unit, for when application program needs to obtain application resource, obtaining the application resource pair The installation kit mark answered;
Detector unit, for detecting that the installation kit identifies whether the peace of the generic resource application installation package to be pre-configured with Dress bag mark, preserves the general purpose application program resource of multiple application programs in the generic resource application installation package;
Determining unit, if detecting that the installation kit is designated the generic resource being pre-configured with and answers for the detector unit Identified with the installation kit of installation kit, it is determined that it is the common application journey that the application program needs the application resource for obtaining Sequence resource;
The acquiring unit, is additionally operable to from the generic resource application installation package obtain the general purpose application program resource And pass to the application program.
By above-mentioned technical proposal, the acquisition methods and device of a kind of application resource that the present invention is provided are and current When multiple application programs are required for using same application resource, and the application resource is not system application installation package In application resource when, needs a identical application program will be stored in the application installation package of these application programs Resource is compared, and the general purpose application program resource of multiple application programs can be pre-stored in generic resource application and be installed by the present invention Bao Zhong, when application program needs to obtain application resource, can by the application resource corresponding installation kit mark with The installation kit mark of generic resource application installation package is matched, if the match is successful, can be installed from generic resource application Bag obtains the application resource that the application program needs to obtain, in this way without the need for the application peace in each application program Fill and all store in bag a identical application resource, reduce the size of application installation package, and then save using installation The memory space of bag.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows a kind of acquisition methods schematic flow sheet of application resource provided in an embodiment of the present invention;
Fig. 2 shows the acquisition methods schematic flow sheet of another kind of application resource provided in an embodiment of the present invention;
Fig. 3 shows a kind of acquisition device structural representation of application resource provided in an embodiment of the present invention;
Fig. 4 shows the acquisition device structural representation of another kind of application resource provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
A kind of acquisition methods of application resource are embodiments provided, the storage of application installation package can be saved Space, as shown in figure 1, the method includes:
101st, when application program needs to obtain application resource, the corresponding installation kit mark of application resource is obtained Know.
Wherein, application resource can be topology file, character string, picture, sound, video etc..Installation kit mark can Think the number on the ad-hoc location of resource identification number (Identity, ID), for example, installation kit mark (package ID) can Think the front two number of resource ID number.
For the executive agent of the embodiment of the present invention can be the device that correspondence is obtained with program resource, in the present invention In embodiment, the device can be configured so that the device can be supported self-defining beforehand through particular tool software Installation kit is identified, and when application program needs to obtain application resource, the device can obtain the application resource correspondence Installation kit mark, and corresponding application resource is obtained according to installation kit mark, so as to by the corresponding application program Resource transfer is used to application program.
102nd, detect that installation kit identifies whether the installation kit mark of the generic resource application installation package to be pre-configured with.
Wherein, the general purpose application program resource of multiple application programs is preserved in generic resource application installation package.
In embodiments of the present invention, the general purpose application program resource conservation of multiple application programs can be answered at one in advance With in installation kit, obtaining generic resource application installation package, and can be the corresponding peace of generic resource application installation package configuration Dress bag mark.For the embodiment of the present invention, when application program needs to obtain application resource, can be by the application program money The installation kit in source is identified and matched with the installation kit mark of generic resource application installation package, according to matching result, it is determined that using Program needs whether the application resource for obtaining is the general purpose application program resource preserved in the generic resource application installation package.
If the 103, detecting, installation kit is designated the installation kit mark of the generic resource application installation package being pre-configured with, really Determine application program to need the application resource for obtaining is general purpose application program resource.
For example, the installation kit of generic resource application installation package is designated mark A, if application program needs the application for obtaining When the corresponding installation kit mark of program resource is also mark A, it is exactly logical to illustrate that application program needs the application resource for obtaining With the general purpose application program resource preserved in resource application installation package.
104th, general purpose application program resource is obtained from generic resource application installation package and application program is passed to.
What is preserved in it is determined that the application resource that application program needs are obtained is exactly generic resource application installation package is logical After with application resource, general purpose application program resource can be obtained from the generic resource application installation package, then by it Pass to application program to be used.With at present when multiple application programs are required for using same application resource, and should When application resource is not the application resource in system application installation package, the application in these application programs is needed to install A identical application resource will be stored in bag to compare, by a kind of application resource provided in an embodiment of the present invention Acquisition methods, without the need for storing a identical application resource in the application installation package of each application program, so that it may To realize calling for general purpose application program resource, the size of application installation package is reduced, and then save depositing for application installation package Storage space.When the follow-up general purpose application program resource if necessary to multiple application programs is modified, can be directly to phase The general purpose application program resource in generic resource installation kit is answered to modify, without the need for carrying out related amendments behaviour to these application programs Make, the modification efficiency of general purpose application program resource can be improved.
In order to preferably understand the method shown in above-mentioned Fig. 1, as refinement and extension to above-mentioned embodiment, The acquisition methods of another kind of application resource are embodiments provided, as shown in Fig. 2 the method includes:
201st, by the general purpose application program resource conservation of multiple application programs in predetermined file folder.
Wherein, predetermined file folder can be configured according to the actual requirements.
For the embodiment of the present invention, can count in advance which application resource belong to multiple application programs be required for use The application resource for arriving, and then statistics obtains the general purpose application program resource of multiple application programs, then by the common application Program is stored in predetermined file folder.
202nd, packing process is carried out to predetermined file folder, obtains generic resource application installation package.
The predetermined file for preserving the general purpose application program resource of multiple application programs is pressed from both sides carries out packing process, is led to Use resource application installation package.
203rd, the installation kit mark of generic resource application installation package is created.
Wherein, the installation kit mark of the generic resource application installation package can be configured according to the actual requirements, and be needed It is different from the installation kit mark of application program own resource application installation package and the installation kit of system resource application installation package Mark.For example, the installation kit mark of system resource application installation package could be arranged to 0x01, application program own resource application peace The installation kit of dress bag is designated 0x7f, and the installation kit of generic resource application installation package mark can be defined as 0x01 and 0x7f with Outer mark.
204th, the installation kit of generic resource application installation package is identified, each application in multiple application programs is compiled into respectively In the corresponding resource transfer table of program.
Wherein, the installation kit of the application installation package that different application resources are located respectively is preserved in resource transfer table Mark.
In embodiments of the present invention, when application program needs to obtain application resource, can be in resource transfer table Search the installation kit mark of the application installation package that the application resource is located, so can be found according to installation kit mark it is right The application resource answered.
205th, when application program needs to obtain application resource, the corresponding installation kit mark of application resource is obtained Know.
The corresponding resource identification of application resource can specifically be obtained;Then extract on the precalculated position of resource identification Mark, as the corresponding installation kit mark of application resource.Wherein, precalculated position can be set according to the actual requirements It is fixed, for example, the front two or front three number of resource identification can be extracted, as the corresponding installation kit mark of application resource Know.
206th, detect that installation kit identifies whether the installation kit mark of the generic resource application installation package to be pre-configured with.
Wherein, the general purpose application program resource of multiple application programs is preserved in generic resource application installation package.
Step 206 specifically can include:Query resource call list is identified according to installation kit, determines that the installation kit is identified whether Match with the installation kit mark of the generic resource application installation package preserved in resource transfer table;If matching, it is determined that the installation Bag is designated the installation kit mark of generic resource application installation package, and then can identify that application program needs the application journey for obtaining Sequence resource is exactly the general purpose application program resource preserved in generic resource application installation package.
If it is not generic resource application to detect that application program needs to obtain the corresponding installation kit mark of application resource The installation kit mark of installation kit, then detect that the installation kit identifies whether the installation of the application installation package for application program own resource Bag mark;And/or detect that the installation kit identifies whether the installation kit mark of the application installation package for system resource;If the installation kit The installation kit mark of the application installation package of application program own resource is designated, is then installed from the application of application program own resource Application program is obtained in bag to be needed the application resource for obtaining and passes to application program;If the installation kit is designated system money The installation kit mark of the application installation package in source, then application program is obtained from the application installation package of system resource needs what is obtained to answer With program resource and pass to application program.
For example, the installation kit of the application installation package of application program own resource is designated 0x7f, and system resource application is installed The installation kit of bag is designated 0x01, if application program needs acquisition application resource, corresponding installation kit is designated 0x7f When, application program is obtained from the application installation package of application program own resource to be needed the application resource for obtaining and passes to The application program;If application program needs the corresponding installation kit of acquisition application resource to be designated 0x01, from system money Application program is obtained in the application installation package in source to be needed the application resource for obtaining and passes to the application program.
If the 207, detecting, installation kit is designated the installation kit mark of the generic resource application installation package being pre-configured with, really Determine application program to need the application resource for obtaining is general purpose application program resource.
For example, the installation kit of the generic resource application installation package for preserving in resource transfer table is designated mark B, if using When the corresponding installation kit mark of application resource that program needs are obtained is also mark B, illustrate that application program needs acquisition Application resource is exactly the general purpose application program resource preserved in generic resource application installation package.
208th, general purpose application program resource is obtained from generic resource application installation package and application program is passed to.
Further, in order to meet the demand being updated to general purpose application program resource, can also include:When receiving During to the more new command of generic resource application installation package, general purpose application program resource is obtained from generic resource application installation package, And fresh information corresponding with general purpose application program resource;General purpose application program resource is updated according to fresh information. For example, according to fresh information, resource or modification resource are replaced to general purpose application program resource, without the need for each application program All do application resource and update operation, the renewal efficiency of application resource can be improved.
The acquisition methods of another kind of application resource provided in an embodiment of the present invention, with present when multiple application programs all Need to use same application resource, and the application resource is not the application resource in system application installation package When, needs will store a identical application resource in the application installation package of these application programs and compare, the present invention Embodiment can be pre-stored in the general purpose application program resource of multiple application programs in generic resource application installation package, without the need for A identical application resource is stored in the application installation package of each application program, the big of application installation package is reduced It is little, and then save the memory space of application installation package;And when needing to be updated application resource, need to logical Accordingly updated with application resource, without the need for doing application resource to each application program operation, Ke Yiti are updated The renewal efficiency of high application resource.
Further, implementing as Fig. 1 methods describeds, embodiments provides a kind of application resource Acquisition device, as shown in figure 3, described device includes:Acquiring unit 31, detector unit 32, determining unit 33.
Acquiring unit 31, can be used for, when application program needs to obtain application resource, obtaining the application program The corresponding installation kit mark of resource.Acquiring unit 31 is the main of acquisition application resource correspondence installation kit mark in this device Functional module, after installation kit mark is acquired, can be operated with detection trigger unit 32.
Detector unit 32, can be used for detecting that the installation kit identifies whether that the generic resource application to be pre-configured with is installed The installation kit mark of bag, preserves the general purpose application program resource of multiple application programs in the generic resource application installation package. Detector unit 32 is for needing the application resource for obtaining correspondence installation kit mark to carry out according to application program in this device The main functional modules of inquiry place application installation package.In embodiments of the present invention, can in advance by the logical of multiple application programs It is stored in an application installation package with application resource, obtains generic resource application installation package, and can be general for this Resource application installation package configures corresponding installation kit mark.
Determining unit 33, if can be used for the detector unit 32 detects that the installation kit is designated be pre-configured with logical Identified with the installation kit of resource application installation package, it is determined that it is described logical that the application program needs the application resource for obtaining Use application resource.For example, the installation kit of generic resource application installation package is designated mark C, if application program needs to obtain When the corresponding installation kit mark of application resource for taking is also mark C, illustrate that application program needs the application program money for obtaining Source is exactly the general purpose application program resource preserved in generic resource application installation package.
The acquiring unit 31, can be also used for from the generic resource application installation package obtaining the common application journey Sequence resource simultaneously passes to the application program.
It should be noted that each function involved by a kind of acquisition device of application resource provided in an embodiment of the present invention Other corresponding descriptions of unit, may be referred to the correspondence description in Fig. 1, will not be described here.
A kind of acquisition device of application resource provided in an embodiment of the present invention, including:Acquiring unit, detector unit, Determining unit etc., and at present when multiple application programs are required for using same application resource, and the application resource When not being the application resource in system application installation package, needs will be stored in the application installation package of these application programs A identical application resource is compared, should without the need for storing a identical in the application installation package of each application program With program resource, it is possible to realize calling for general purpose application program resource, the size of application installation package is reduced, and then saved The memory space of application installation package.When the follow-up general purpose application program resource if necessary to multiple application programs is modified When, directly the general purpose application program resource in corresponding generic resource installation kit can be modified, without the need for applying journey to these Sequence carries out related amendments operation, can improve the modification efficiency of general purpose application program resource.
Further, implementing as Fig. 2 methods describeds, embodiments provides another kind of application program money The acquisition device in source, as shown in figure 4, described device includes:Acquiring unit 41, detector unit 42, determining unit 43.
Acquiring unit 41, can be used for, when application program needs to obtain application resource, obtaining the application program The corresponding installation kit mark of resource.
Detector unit 42, can be used for detecting that the installation kit identifies whether that the generic resource application to be pre-configured with is installed The installation kit mark of bag, preserves the general purpose application program resource of multiple application programs in the generic resource application installation package.
Determining unit 43, if can be used for the detector unit 42 detects that the installation kit is designated be pre-configured with logical Identified with the installation kit of resource application installation package, it is determined that it is described logical that the application program needs the application resource for obtaining Use application resource.
The acquiring unit 41, can be also used for from the generic resource application installation package obtaining the common application journey Sequence resource simultaneously passes to the application program.
Further, the general purpose application program money of multiple application programs is preserved in order to realize generic resource application installation package Source, described device also includes:Storage unit 44, processing unit 45, creating unit 46, compilation unit 47.
Storage unit 44, can be used for pressing from both sides the general purpose application program resource conservation of multiple application programs in predetermined file In.
Processing unit 45, can be used for carrying out packing process to predetermined file folder, obtain generic resource application installation Bag.
Creating unit 46, can be used for creating the installation kit mark of the generic resource application installation package.Wherein, this is general The installation kit mark of resource application installation package can be configured according to the actual requirements, and need to be different from application program itself The installation kit mark of resource application installation package and the installation kit mark of system resource application installation package.
Compilation unit 47, can be used for identifying the installation kit of the generic resource application installation package, and institute is compiled into respectively In stating the corresponding resource transfer table of each application program in multiple application programs, different answering is preserved in the resource transfer table The installation kit mark of the application installation package being located respectively with program resource.In embodiments of the present invention, when application program needs to obtain When taking application resource, the installation kit of the application installation package that the application resource is located can be searched in resource transfer table Mark, and then corresponding application resource can be found according to the installation kit mark.
The detector unit 42, specifically can be used for according to the installation kit mark inquiry resource transfer table, it is determined that The installation kit identifies whether the installation kit mark with the generic resource application installation package preserved in the resource transfer table Match;If matching, it is determined that the installation kit is designated the installation kit mark of the generic resource application installation package, Jin Erke It is exactly the common application preserved in generic resource application installation package with the application resource for identifying application program to need and obtaining Program resource.
The detector unit 42, if can be also used for detecting that the installation kit mark is not the generic resource being pre-configured with The installation kit mark of application installation package, then detect that the installation kit identifies whether the application peace for the application program own resource The installation kit mark of dress bag;And/or detect that the installation kit identifies whether the installation kit mark of the application installation package for system resource Know.
The acquiring unit 41, if can be also used for the application that the installation kit is designated the application program own resource The installation kit mark of installation kit, then obtain the application program needs from the application installation package of the application program own resource The application resource of acquisition simultaneously passes to the application program.
The acquiring unit 41, if can be also used for the installation that the installation kit is designated the application installation package of system resource Bag mark, then the application program is obtained from the application installation package of the system resource needs the application resource for obtaining simultaneously Pass to the application program.
The acquiring unit 41, specifically can be used for obtaining the corresponding resource identification of the application resource;Extract institute The mark on the precalculated position of resource identification is stated, as the corresponding installation kit mark of the application resource.Wherein, pre-determined bit Putting to be set according to the actual requirements, for example, can extract the front two or front three number of resource identification, as The corresponding installation kit mark of application resource.
It should be noted that each work(involved by the acquisition device of another kind of application resource provided in an embodiment of the present invention Other corresponding descriptions of energy unit, may be referred to the correspondence description in Fig. 2, will not be described here.
The acquisition device of another kind of application resource provided in an embodiment of the present invention, including:Acquiring unit, detection are single Unit, determining unit, storage unit, processing unit, creating unit, compilation unit etc., and at present when multiple application programs are required for Use same application resource, and the application resource is not when being the application resource in system application installation package, Needs will store a identical application resource in the application installation package of these application programs and compare, and the present invention is implemented Example can be pre-stored in the general purpose application program resource of multiple application programs in generic resource application installation package, without the need for every A identical application resource is all stored in the application installation package of individual application program, the size of application installation package is reduced, Further save the memory space of application installation package;And when needing to be updated application resource, need to general Application resource is accordingly updated, and without the need for doing application resource to each application program operation is updated, and can be improved The renewal efficiency of application resource.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
It is understood that said method and the correlated characteristic in device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be, for distinguishing each embodiment, and not represent the quality of each embodiment.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing a kind of acquisition of application resource according to embodiments of the present invention The some or all functions of some or all parts in method and device.The present invention is also implemented as performing this In described method some or all equipment or program of device (for example, computer program and computer program Product).Such program for realizing the present invention can be stored on a computer-readable medium, either can be with one or many The form of individual signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with Any other form is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of acquisition methods of application resource, it is characterised in that include:
When application program needs to obtain application resource, the corresponding installation kit mark of the application resource is obtained;
Detect that the installation kit identifies whether the installation kit mark of the generic resource application installation package to be pre-configured with, it is described general The general purpose application program resource of multiple application programs is preserved in resource application installation package;
If, it is determined that it is the general purpose application program resource that the application program needs the application resource for obtaining;
The general purpose application program resource is obtained from the generic resource application installation package and the application program is passed to.
2. acquisition methods of application resource according to claim 1, it is characterised in that the detection installation kit Before identifying whether that the installation kit of the generic resource application installation package to be pre-configured with is identified, methods described also includes:
By the general purpose application program resource conservation of multiple application programs in predetermined file folder;
Packing process is carried out to predetermined file folder, generic resource application installation package is obtained;
Create the installation kit mark of the generic resource application installation package;
The installation kit of the generic resource application installation package is identified, each application in the plurality of application program is compiled into respectively In the corresponding resource transfer table of program, the application that different application resources are located respectively is preserved in the resource transfer table The installation kit mark of installation kit.
3. acquisition methods of application resource according to claim 2, it is characterised in that the detection installation kit The installation kit mark of the generic resource application installation package to be pre-configured with is identified whether, is specifically included:
According to the installation kit mark inquiry resource transfer table, determine that the installation kit is identified whether and the resource transfer The installation kit mark of the generic resource application installation package preserved in table matches;
If matching, it is determined that the installation kit is designated the installation kit mark of the generic resource application installation package.
4. acquisition methods of application resource according to claim 1, it is characterised in that the detection installation kit After identifying whether that the installation kit of the generic resource application installation package to be pre-configured with is identified, methods described also includes:
If it is not, then detecting that the installation kit identifies whether the installation kit mark of the application installation package for the application program own resource Know;And/or
Detect that the installation kit identifies whether the installation kit mark of the application installation package for system resource;
If the installation kit is designated the installation kit mark of the application installation package of the application program own resource, answer from described The application program is obtained in application installation package with program own resource to be needed the application resource for obtaining and passes to institute State application program;
If the installation kit is designated the installation kit mark of the application installation package of system resource, from the application of the system resource The application program is obtained in installation kit to be needed the application resource for obtaining and passes to the application program.
5. acquisition methods of the application resource according to any one of Claims 1-4, it is characterised in that the acquisition The corresponding installation kit mark of the application resource, specifically includes:
Obtain the corresponding resource identification of the application resource;
The mark on the precalculated position of the resource identification is extracted, as the corresponding installation kit mark of the application resource.
6. a kind of acquisition device of application resource, it is characterised in that include:
Acquiring unit, for when application program needs to obtain application resource, obtaining the application resource corresponding Installation kit is identified;
Detector unit, for detecting that the installation kit identifies whether the installation kit of the generic resource application installation package to be pre-configured with Mark, preserves the general purpose application program resource of multiple application programs in the generic resource application installation package;
Determining unit, if detecting that the installation kit is designated the generic resource application being pre-configured with peace for the detector unit The installation kit mark of dress bag, it is determined that it is general purpose application program money that the application program needs the application resource for obtaining Source;
The acquiring unit, is additionally operable to from the generic resource application installation package obtain the general purpose application program resource and pass Pass the application program.
7. the acquisition device of application resource according to claim 6, it is characterised in that described device also includes:
Storage unit, for by the general purpose application program resource conservation of multiple application programs predetermined file folder in;
Processing unit, for carrying out packing process to predetermined file folder, obtains generic resource application installation package;
Creating unit, the installation kit for creating the generic resource application installation package is identified;
Compilation unit, for by the installation kit of generic resource application installation package mark, the plurality of application being compiled into respectively In program in the corresponding resource transfer table of each application program, in the resource transfer table different application resources are preserved The installation kit mark of the application installation package being located respectively.
8. the acquisition device of application resource according to claim 7, it is characterised in that
The detector unit, specifically for according to the installation kit mark inquiry resource transfer table, determining the installation kit Identify whether to match with the installation kit mark of the generic resource application installation package preserved in the resource transfer table;
If matching, it is determined that the installation kit is designated the installation kit mark of the generic resource application installation package.
9. the acquisition device of application resource according to claim 6, it is characterised in that
The detector unit, if being additionally operable to detect that the installation kit mark is not the generic resource application installation package being pre-configured with Installation kit mark, then detect that the installation kit identifies whether the installation of the application installation package for the application program own resource Bag mark;And/or detect that the installation kit identifies whether the installation kit mark of the application installation package for system resource;
The acquiring unit, if being additionally operable to the peace that the installation kit is designated the application installation package of the application program own resource Dress bag mark, then obtain the application that the application program needs to obtain from the application installation package of the application program own resource Program resource simultaneously passes to the application program;
The acquiring unit, if being additionally operable to the installation kit mark that the installation kit is designated the application installation package of system resource, The application program is obtained from the application installation package of the system resource to be needed the application resource for obtaining and passes to institute State application program.
10. the acquisition device of the application resource according to any one of claim 6 to 9, it is characterised in that
The acquiring unit, specifically for obtaining the corresponding resource identification of the application resource;
The mark on the precalculated position of the resource identification is extracted, as the corresponding installation kit mark of the application resource.
CN201710055099.9A 2017-01-24 2017-01-24 Application program resource obtaining method and device Pending CN106648810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710055099.9A CN106648810A (en) 2017-01-24 2017-01-24 Application program resource obtaining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710055099.9A CN106648810A (en) 2017-01-24 2017-01-24 Application program resource obtaining method and device

Publications (1)

Publication Number Publication Date
CN106648810A true CN106648810A (en) 2017-05-10

Family

ID=58841307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710055099.9A Pending CN106648810A (en) 2017-01-24 2017-01-24 Application program resource obtaining method and device

Country Status (1)

Country Link
CN (1) CN106648810A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315602A (en) * 2017-05-12 2017-11-03 广东网金控股股份有限公司 The upgrade method and terminal of a kind of application program
CN108037933A (en) * 2017-11-03 2018-05-15 链家网(北京)科技有限公司 The collocation method and system of urban service in a kind of building service application program
CN108491213A (en) * 2018-03-26 2018-09-04 广东小天才科技有限公司 Software continuous integrated approach, software continuous integrating device and electronic equipment
CN109934609A (en) * 2017-12-18 2019-06-25 深圳市慧动创想科技有限公司 The associated method, apparatus of ad data, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946415A (en) * 2012-10-18 2013-02-27 北京华胜鸣天科技有限公司 Implementation method and device for local application of mobile terminal
CN104077146A (en) * 2014-07-11 2014-10-01 北京金和软件股份有限公司 Personalized customization method and system for application programs of mobile terminal
CN105159788A (en) * 2015-09-11 2015-12-16 Tcl集团股份有限公司 Method and system for dynamic resource sharing between Android applications
CN105989091A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 JS (JavaScript) file loading method, device and system used for page display
CN106095518A (en) * 2016-06-28 2016-11-09 东软集团股份有限公司 Application program installation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946415A (en) * 2012-10-18 2013-02-27 北京华胜鸣天科技有限公司 Implementation method and device for local application of mobile terminal
CN104077146A (en) * 2014-07-11 2014-10-01 北京金和软件股份有限公司 Personalized customization method and system for application programs of mobile terminal
CN105989091A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 JS (JavaScript) file loading method, device and system used for page display
CN105159788A (en) * 2015-09-11 2015-12-16 Tcl集团股份有限公司 Method and system for dynamic resource sharing between Android applications
CN106095518A (en) * 2016-06-28 2016-11-09 东软集团股份有限公司 Application program installation method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315602A (en) * 2017-05-12 2017-11-03 广东网金控股股份有限公司 The upgrade method and terminal of a kind of application program
CN107315602B (en) * 2017-05-12 2021-02-12 广东网金控股股份有限公司 Application program upgrading method and terminal
CN108037933A (en) * 2017-11-03 2018-05-15 链家网(北京)科技有限公司 The collocation method and system of urban service in a kind of building service application program
CN108037933B (en) * 2017-11-03 2020-07-21 贝壳找房(北京)科技有限公司 Method and system for configuring urban service in real estate service application program
CN109934609A (en) * 2017-12-18 2019-06-25 深圳市慧动创想科技有限公司 The associated method, apparatus of ad data, computer equipment and storage medium
CN109934609B (en) * 2017-12-18 2021-06-08 深圳市慧动创想科技有限公司 Advertisement data association method and device, computer equipment and storage medium
CN108491213A (en) * 2018-03-26 2018-09-04 广东小天才科技有限公司 Software continuous integrated approach, software continuous integrating device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106648810A (en) Application program resource obtaining method and device
US10387169B2 (en) Plug-in packaging method, device, terminal and storage media
US8793660B2 (en) Automated testing of programming code for a web service
CN105117289A (en) Task allocation method, device and system based on cloud testing platform
CN105279017B (en) Method for allocating tasks, apparatus and system based on cloud test platform
CN107872528A (en) Information push method and device
CN105224396B (en) A kind of business data processing method and device
CN105893097A (en) Method and device for processing option information of BIOS (basic input output system)
CN108279947B (en) Method and device for adapting SP installation package of financial self-service equipment
CN106897072A (en) Traffic engineered call method, device and electronic equipment
CN107797923A (en) Code coverage rate analysis method and application server
CN105183564A (en) Equipment scheduling method, device and system based on cloud testing platform
CN108460271B (en) Terminal identification method and device
CN110225078A (en) A kind of application service update method, system and terminal device
CN103529988A (en) Mobile terminal touch screen multi-firmware setting method and system
CN109376142A (en) Data migration method and terminal device
CN106021101A (en) Method and device for testing mobile terminal
CN105068851A (en) Secure packaging method and system for mobile terminal ROM packets and mobile terminal
CN105447072A (en) Configurable interface framework as well as searching method and system utilizing framework
CN105825172A (en) Mobile-terminal-based multi-fingerprint matching method and system
CN108897678B (en) Static code detection method, static code detection system and storage device
WO2015126079A1 (en) Method and apparatus for detecting repackaging
CN105975306A (en) Application program starting management method and application program starting management apparatus for electronic device
CN105988785A (en) RPC (remote procedure call) service development method and device
CN102799528A (en) Script debugging method, script debugging device and system thereof for circuit board level test

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510