CN106855816A - The resource file loading method and device of application program in terminal - Google Patents
The resource file loading method and device of application program in terminal Download PDFInfo
- Publication number
- CN106855816A CN106855816A CN201611149038.0A CN201611149038A CN106855816A CN 106855816 A CN106855816 A CN 106855816A CN 201611149038 A CN201611149038 A CN 201611149038A CN 106855816 A CN106855816 A CN 106855816A
- Authority
- CN
- China
- Prior art keywords
- application program
- resource file
- resource
- application
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 66
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000037430 deletion Effects 0.000 claims description 18
- 238000012217 deletion Methods 0.000 claims description 17
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The disclosure discloses the resource file loading method and device of application program in a kind of terminal, belongs to field of computer technology.The first application program that methods described is used in terminal carries out resource file treatment, including:Receive the loading instruction of resource file in the first application program, judge whether first application program possesses and simplify identification information, if first application program possesses is simplified identification information, then resource file of second application program to the first Application sharing is loaded in determination terminal from the resource bundle of second application program to the second application program of the first Application sharing resource file.The loading method of resource file can make application program retain application program identical resource file without storage and resource in above-mentioned application program, it is to avoid individually storage causes the problem that terminal storage space is wasted for each application resource file.
Description
Technical field
This disclosure relates to field of computer technology, the resource file loading method of application program in more particularly to a kind of terminal
And device.
Background technology
With the high speed development of Internet technology, the application program in terminal is increasingly enriched.In the prior art, each application
After program is installed in the terminal, respective resource file is separate storage.When application program is run, by loading certainly
Resource file in body resource bundle and realize its specific function.
However, as the application program installed in terminal is more and more, the resource file occupied terminal of each application program
Storage is also more and more.In prior art, having some application programs is developed simultaneously as a series, for example, such should
There is the resource files such as identical background colour, control button (button), or picture with program, that is to say, that prior art
In middle part application program there is certain uniformity in the resource file on public resource, therefore, according to doing for prior art
Method, when the resource file to each application program is independently stored at present, causes the repetition of part resource file to store, and causes end
Hold the waste of memory space.
The content of the invention
Terminal storage space wave is caused in order to solve each application resource file separate storage present in correlation technique
The technical problem taken, present disclose provides the resource file loading method and device of application program in a kind of terminal.
On the one hand, this application provides a kind of resource file loading method of application program in terminal, methods described includes:
Receive the loading instruction of the first application resource file;
If first application program possesses is simplified identification information, identification information is simplified according to and searches the end
To the second application program of the first Application sharing resource file in end;Wherein described identification information of simplifying is to delete
With the identification information added in the application program after the second application program identical resource file;
The resource file that first application program is deleted is loaded from the resource bundle of second application program.
On the other hand, this application provides a kind of resource file loading device of application program in terminal, described device bag
Include:
Loading command reception module, the loading instruction for receiving the first application resource file;
Judge module is simplified, identification information is simplified for judging whether first application program possesses;
Second applies determining module, if possess simplifying identification information for first application program, according to described
Simplify identification information and search the second application program in from the terminal to the first Application sharing resource file;Wherein institute
It is to delete and addition in the application program after the second application program identical resource file to state and simplify identification information
Identification information;
Resource file load-on module, journey is applied for the resource bundle loading described first from second application program
The resource file that sequence is deleted.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In terminal, the loading instruction of resource file in the first application program is received, judge whether the first application program possesses
Identification information is simplified, if the first application program possesses is simplified identification information, it is determined that to the first Application sharing in terminal
Second application program of resource file, the resource text that the first application program is deleted is loaded from the resource bundle of the second application program
Part.Simplified due to possessing the first application program of identification information carry out some resource files load when, its own resource text
These resource files are deleted in part bag, the resource to the second application program of its shared resource file from terminal is literary
These deleted resource files are loaded in part bag, thus without storage and the second application program identical in the first application program
Resource file, it is to avoid part resource file repeats storage and causes what terminal storage space wasted to ask between each application program
Topic.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets implementation of the invention
Example, and be used to explain principle of the invention together in specification.
Figure 1A is the resource file loading method of application program in a kind of terminal according to an exemplary embodiment
Flow chart;
Figure 1B is the resource file loading method of application program in a kind of terminal according to an exemplary embodiment
Flow chart;
Fig. 2 is the resource file loading method of application program in a kind of terminal according to another exemplary embodiment
Flow chart;
Fig. 3 is that the one kind according to an exemplary embodiment is used for other application program shared resource file in terminal
Application program in resource file loading method flow chart;
Fig. 4 is that the one kind according to another exemplary embodiment is used for other application program shared resource text in terminal
The flow chart of resource file loading method in the application program of part;
Fig. 5 is the frame of the resource file loading device of application program in a kind of terminal according to an exemplary embodiment
Figure;
Fig. 6 is the resource file loading device of application program in a kind of terminal according to another exemplary embodiment
Block diagram;
Fig. 7 is the resource file loading device of application program in a kind of terminal according to another exemplary embodiment
Block diagram;
Fig. 8 is that the one kind according to an exemplary embodiment is used for other application program shared resource file in terminal
Application program in resource file processing unit block diagram;
Fig. 9 is the resource file loading device of application program in a kind of terminal according to another exemplary embodiment
Block diagram.
Specific embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Figure 1A and Figure 1B are the resource file loadings of application program in a kind of terminal according to an exemplary embodiment
Two kinds of method realize flow chart.As shown in Figure 1A, the resource file loading method of application program is used in terminal in the terminal
The first application program carry out resource file treatment, may comprise steps of.
In step S101, the loading instruction of the first application resource file is received;
In step s 102, if the first application program possesses simplifies identification information, searched according to identification information is simplified
To the second application program of the first Application sharing resource file in terminal;
Wherein simplify identification information be delete with the application program after the second application program identical resource file
The identification information of addition;
In step s 103, the resource text of the first application program deletion is loaded from the resource bundle of the second application program
Part.
More specifically, as shown in Figure 1B, the resource file loading method of application program is used in terminal in the terminal the
One application program carries out resource file treatment, can also be realized by following steps.
In step s 110, the loading instruction of resource file in the first application program is received.
Similar to step S101, application program is mounted to the software program in terminal.Various applications are there are in terminal
Program, each application program has its respective resource file.
In application program operation, instructed by the loading for receiving resource file and perform resource file and operate accordingly, from
And realize its specific function.
Following table is a resource file for application program according to an exemplary embodiment.
In the step s 120, judge whether the first application program possesses and simplify identification information, if it has, then performing step
S130, if it has not, then performing step S160.
When the function of application program is increasingly enriched, the storage shared by its own resource file is also increasing, wherein
The resource file such as including various pictures, audio, video.
It is because different application programs has each different functional characteristics thus different for different application programs
There is certain difference in the resource file of application program.But, for common resource files such as background colour, buttons in certain applications
There is certain uniformity in program.
In one exemplary embodiment, Manifest files are included in the resource bundle of each application program, should
Application program race where the Manifest file records application programs.Normally, the public resource in same application race
File is identical.
Between two application programs different in terminal, when two application programs have same asset file, at it
In in an application program addition simplify identification information, the addition is simplified in the application program of identification information, identical resource text
Part is deleted.
When application program is run and loads resource file, first judging whether the application program possesses simplifies identification information,
When the application program possesses simplifies identification information, in addition to the resource file stored in loading the application program, also need to determine
To the application program of the Application sharing resource file, that is, possess in the first application program for receiving resource file loading instruction
When simplifying identification information, it is determined that to the second application program of the first Application sharing resource file;If the application program does not have
It is standby to simplify identification information, then load the resource file in the resource bundle of the application program itself storage.
In step s 130, search in terminal to the of the first Application sharing resource file according to simplifying identification information
Two application programs,.
Second application program is the application program to the first Application sharing resource file.
Determine there is various to the mode of the second application program of the first Application sharing resource file in terminal, can be with root
According to the identification information of simplifying in the first application program, the application program to its shared resource file in the first application program is searched
Directional information;Answering to the first Application sharing resource file can also be searched in the application race belonging to the first application program
Use program;Can also determine to apply journey to the second of the first Application sharing resource file in terminal in other way
Sequence.
In step S140, the resource text that the first application program is deleted is loaded from the resource bundle of the second application program
Part.
Simplify identification information when the first application program possesses, when the first application program carries out the loading of resource file, except plus
It is downloaded from outside the resource file in body resource bundle, will also loads resource text of second application program to the first Application sharing
Part, i.e., the resource file deleted from the first application package when setting and simplifying mark, the deleted resource file and the
Part resource file in two application packages is identical, thus the one the second application programs can be provided using the second application program
Application program in source file bag, so as to ensure the normal operation of the first application program.
In step S160, the resource file in the first application program own resource file bag of loading.
Identification information is simplified when the first application program does not possess, when the first application program carries out the loading of resource file, will
Carry out the loading of resource file in own resource file bag.
Using method as described above, in the terminal, this method embodiment resource file in the first application program is received
Loading instruction after, judge whether the first application program possesses and simplify identification information, if the first application program possesses simplifies mark
Knowledge information, it is determined that to the second application program of the first Application sharing resource file in terminal, from the second application program
Resource bundle loads the resource file that the first application program is deleted.The first application program that identification information is simplified due to possessing is entered
During row some resource files loading, these resource files are deleted in the resource bundle of its own, will be from terminal
These deleted resource files, thus first are loaded in resource bundle to the second application program of its shared resource file
Without storage and the second application program identical resource file in application program, it is to avoid part resource text between each application program
Part repeats the problem for storing and causing terminal storage space waste.
Fig. 2 is the resource file loading method flow of application program in a kind of terminal according to an exemplary embodiment
Figure.As shown in Fig. 2 in Fig. 1 before S110 steps, in the terminal resource file loading method of application program can also include with
Lower step.
In step S210, for the first application program, judge to whether there is default second application program in terminal, if
It is yes, then performs step S220, if it has not, then performs step S310.
Default second application program can be an application program being randomly assigned in advance;Can also be by default
The application program that method determines, for example, according to the resource file storage size of each application program in terminal, choosing storage most
A big application program is used as default second application program;Second application program can also be default in other way
's.
Judge that the mode in terminal with the presence or absence of default second application program has various.Can be each in terminal by checking
Whether whether application program has the shared information set to other application programs shared resource file, so that it is determined that being deposited in terminal
In default second application program;Can also respectively possess the directional information in the application program for simplifying identification information by inspection,
Determine that the application program indicated in its directional information is default second application program;End can also in other way be determined
Whether there is default second application program in end.
In a specific exemplary embodiment, the application program race belonging to the first application program, Jin Er are first searched
Default second application program is judged whether in the application program race.Application program race is the application program of same series
Set, in same application race there is certain difference in the function of each application program, but each application program generally has unification
Style, thus there is largely uniformity between the resource file of each application program.Have in each application file
Its unique identifier, the application program race of each application program is judged by identifier.For example, being stored with application program
Manifest files, the identifier in manifest files may determine that the application program race belonging to the first application program,
And according to application program race, search all application programs in the application program race.And then should in all of the application program race
With between program, according to whether there is application program has the shared information set to other application programs shared resource file,
Or possess and simplify the modes such as identification information, judge whether default second application program.
In step S220, the comparison of resource file is carried out between the first application program and the second application program, it is determined that
First application program and the second application program identical resource file therebetween.
It is understood that the resource file of the second application program is stored in the resource bundle of its own.
The comparison of resource file is carried out between the first application program and the second application program, is by the first application program money
The resource file in resource file and the second application resource file bag in source file bag carries out Comparison one by one, judges
With the presence or absence of identical resource file.
In step S230, identical resource file is deleted in the first application program, and add in the first application program
Plus simplify identification information.Simplify identification information corresponding with the second application program.
Identification information is simplified for being identified to the application program that resource file is partly or entirely deleted.By simplifying
Identification information, indicates application program when resource file loading is carried out, it is determined that to the second application program of its shared resource file,
And load resource file of second application program to the Application sharing.
In step S310, the comparison of resource file is carried out between all application programs in the terminal;The purpose is to obtain
Take the difference of resource file between each application program.
When not existing default second application program in terminal, the second application program will be in the terminal determined, by second
Resource file in application program is shared to the other application programs in terminal in addition to the second application program.
The difference of resource file is the similarities and differences of resource file between each two application program between each application program.
In step s 320, determining in all application programs in the terminal can be to other application programs shared resource file
Most application programs is used as the second application program.
It should be noted that in terminal, there are two or more application programs, and in the terminal, should by one
With program as the second application program.In other application programs of the terminal in addition to the second application program, deleting should with second
With program identical resource file.Therefore, the second application program need in the terminal be determined.
In the terminal, the difference according to resource file between each application program determines that the second of shared resource file applies journey
The mode of sequence has various.Each application program can be directed to, obtain other application programs has identical money with the application program
The number of applications of source file, and then the second application program is determined according to population size;Journey can also be applied for each
Sequence, is obtained and other application programs identical resource file size, and the second application program is determined according to total resource file size;
The second application program can also in other way be determined.
For example, terminal includes application program A, application program B, application program C, resource text is included in application program A
Part A1, A2, A3, A4, include resource file B1, B2, B3 in application program B, include in application program C resource file C1,
C2.Wherein, resource file A1, B1 is identical resource file, and resource file A2, C2 are identical resource file.With application journey
It is B, C that sequence A has the application program of same asset file, is A with the application program that application program B has same asset file,
It is A with the application program that application program C has same asset file, according to the application with application program with same asset file
Program population size, determines that the resource file that application program A can share to other application programs is most, determines that application program A is
To the second application program of application program B, C shared resource file.
Using method as described above, in the terminal, this method embodiment resource file in the first application program is received
Loading instruction after, judge whether the first application program possesses and simplify identification information, if the first application program possesses simplifies mark
Knowledge information, it is determined that to the second application program of the first Application sharing resource file in terminal, from the second application program
Resource bundle loads the resource file that the first application program is deleted.The first application program that identification information is simplified due to possessing is entered
During row some resource files loading, these resource files are deleted in the resource bundle of its own, will be from terminal
These deleted resource files, thus first are loaded in resource bundle to the second application program of its shared resource file
Without storage and the second application program identical resource file in application program, it is to avoid part resource text between each application program
Part repeats the problem for storing and causing terminal storage space waste.
Further, after the loading problem for solving resource file, the method for the present embodiment also includes:
In step S401, the resource file more new command that the second application program sends is received.
For the second application program, if server or user's resource file to the second application program in need
It is updated, updates including increasing resource file, deleting various situations such as resource file, modification resource file, second applies journey
Sequence is before the resource file to itself is updated, it is necessary to notify the first application program fresh information, now, first applies journey
Sequence can receive the more new command, and perform the steps.
In step S402, the first application program is obtained from the resource bundle of the second application program and is simplified for addition
Identification information and the resource file deleted.
The embodiment of foregoing loading method is referred to, is deleted with the first application program due to having in the second application package
The resource file identical resource file for removing, the change of resource file can be caused due to updating operation, in the case of one kind, if the
Some resource files are carried out deletion action by two application programs, and these deleted resource files are probably to update preceding first application
Program needs the content of loading, and the first application program can be caused to load, and causes the first application program to start when serious.
Therefore, for the first application program, after the resource file more new command for receiving the transmission of the second application program, need
Will be to obtaining the resource that the first application program is simplified identification information and deleted in addition in the resource bundle of the second application program
File.
In step S403, send resource file to the second application program and obtain completion instruction, resource file is obtained and completed
Instruct for so that the second application program determines whether to carry out resource file renewal upon receipt of the instructions.
Because the second application program may be differed to the content that other application programs are shared, therefore, the second application program
After needing to wait all first application programs all to add resource file reduction, then determine to carry out the renewal behaviour of resource file
Make.
In step s 404, after the second application program completes to update, rejudge and provided with the second application program identical
Whether source file has renewal.
In step S405, if so, will then be deleted with the second application program identical resource file after renewal.
On the other hand, the embodiment of the present application also provides another kind and carries out resource file more from the second application program angle
New method, as shown in figure 3, the resource file loading method of application program carries out resource for the second application program in the terminal
File process, the second application program is the application program to the other application program shared resource file in terminal, in the terminal
The resource file loading method of application program may comprise steps of.
In step S410, the resource file more new command of the second application program is received.
More new command is used for the renewal for indicating the second application program to carry out resource file.
Carrying out the renewal of resource file includes that the deletion of part resource file, the increase of resource file, resource file are repaiied
The resource file treatment such as change.
In the step s 420, resource response file more new command, obtain the second application program in the updated with update before it
Between resource file difference.
When second application program of the application program for carrying out resource file renewal for shared resource file, due in terminal
Possess the resource file of the application program of Application sharing second for simplifying identification information, therefore, to avoid the second application program
The change of middle resource file is impacted to these application programs, and before resource file renewal is carried out, need to first obtain second should
With program in the updated with renewal before difference, to carry out difference assessment.
Second application program in the updated and before updating between resource file difference include updating after increased resource
File, the resource file deleted, resource file of modification etc..
In step S430, according to difference, determine identical between the other application programs in terminal and the second application program
Resource file.
When the application program that instruction updates not is the second application program, the renewal of its own resource file will not be in terminal
Other application programs impact, therefore by the application program update before resource file directly replace with update after money
Source file.After resource file replacement, according to the resource file after replacement, the identical between the second application program is redefined
Resource file between resource file, and then realization and the second application program is shared.
The application program for updating is indicated when being the second application program, need to according to after the second application program update and before updating it
Between file difference, redefine in terminal identical resource file between other application programs and the second application program.
According to after the second application program update with renewal before between resource file difference, and update before resource file,
Other application programs and the second application program are carried out with the contrast of resource file, other application programs should with second in determining terminal
With identical resource file between program.
In step S440, shared information is added in the second application program, information of sharing is used for identical resource text
Part is shared to other application program.
In step S450, by sharing the addition of information, the resource file before being updated in the second application program is replaced
It is the resource file after renewal.
Using method as described above, in the application program for carrying out resource file renewal for the second of shared resource file should
When using program, to before carrying out resource file renewal, obtain the second application program in the updated with renewal before between resource file
Difference, according to difference, redefine in terminal identical resource file between other application programs and the second application program, enter
And the resource file that the second application program is shared to other application programs is updated, so as to ensure that after the second application program update
The normal operation of other application programs is not influenceed, it is ensured that the correctness of resource file treatment.
Further, the method for the present embodiment also includes:
In step S501, the resource file deletion instruction that the second application program sends is received.
For the second application program, if server or user's resource file to the second application program in need
Deleted, the second application program the resource file to itself delete it is preceding, it is necessary to notify shared second application program in
The application program of resource file, now, can receive as the first application program of resource file in shared second application program
The deletion is instructed, and performs the steps.
In step S502, the first application program is obtained from the resource bundle of the second application program and is simplified for addition
Identification information and the resource file deleted.
The embodiment of foregoing loading method is referred to, is deleted with the first application program due to having in the second application package
The resource file identical resource file for removing, because the resource file deletion action of the second application program will cause the first application
Program cannot be loaded, and cause the first application program to start when serious.
Therefore, for the first application program, after the resource file for receiving the transmission of the second application program deletes instruction, need
Will be to obtaining the resource that the first application program is simplified identification information and deleted in addition in the resource bundle of the second application program
File.
In step S503, after deleted resource file is obtained, the mark of simplifying deleted in the first application program is believed
Breath.
Because the second application program may be differed to the content that other application programs are shared, therefore, the second application program
After needing to wait all first application programs all to add resource file reduction, then determine to carry out the deletion behaviour of resource file
Make.
After the first application program obtains the resource file deleted, now, the first application program is without shared second application
Identification information is simplified in resource file in program, therefore the first application program of deletion.
Fig. 4 is the resource file loading flow chart of application program in a kind of terminal according to an exemplary embodiment.
As shown in figure 4, the resource file loading method of application program can also be comprised the following steps in the terminal.
In step S510, the resource file deletion instruction that the second application program sends is received.
Resource file deletes instruction for telling that first the second application program of application program can carry out resource file deletion.
In step S520, the first application program is obtained from the resource bundle of the second application program and is simplified for addition
Identification information and the resource file deleted;
Namely for each application program of resource file in shared second application program, by the money of Application sharing
Source file is reduced to application program respectively.
When resource file deletes instruction indicates the second application program to carry out the deletion of resource file, to avoid resource file
Delete and the application program of resource file in shared second application program is impacted, the second application program carries out resource file
Before deletion, the resource file shared to other application programs in terminal is reduced to corresponding application program.
For example, include resource file A1, A2, A3, A4 in the second application program A, wherein, the second application program A will be provided
Source file A1, A2 share to application program B, and resource file A1, A3 are shared into application program C.When system or user indicate the
When two application program A carry out resource file deletion, before deleting resource file, the second application program should be by resource file
A1, A2 are reduced and are given application program B, resource file A1, A3 are reduced and gives application program C.
In step S530, after deleted resource file is obtained, the mark of simplifying deleted in the first application program is believed
Breath.
By method as described above, when before the deletion that the second application program carries out resource file, second is got
Application sharing is correspondingly reduced the file of the second Application sharing to it to the resource file of other application programs
His application program, it is to avoid other application programs are impacted because of the deletion of resource file in the second application program, so as to protect
The normal operation of the other application programs after the second application program carries out resource file deletion is demonstrate,proved.
Following is disclosure device embodiment, can be used for performing the resource file loading of application program in this above-mentioned terminal
Embodiment of the method.For the details not disclosed in disclosure device embodiment, the money of application program in disclosure terminal is refer to
Source file loading method embodiment.
Fig. 5 is the frame of the resource file loading device of application program in a kind of terminal according to an exemplary embodiment
Figure, as shown in figure 5, the first application program that the resource file loading device of application program is used in terminal in the terminal is provided
Source file treatment, the device is included but is not limited to:Load command reception module 110, simplify the application of judge module 120, second really
Cover half block 130 and resource file load-on module 140.
Loading command reception module 110, the loading instruction for receiving the first application resource file;
Judge module 120 is simplified, identification information is simplified for judging whether the first application program possesses;
Second applies determining module 130, if possess simplifying identification information for the first application program, basis simplifies mark
To the second application program of the first Application sharing resource file in knowledge information searching terminal;Wherein simplify identification information be
The identification information for deleting and being added in the application program after the second application program identical resource file;
Resource file load-on module 140, deletes for loading the first application program from the resource bundle of the second application program
The resource file for removing.
The function of modules and the implementation process of effect specifically refer to application program in above-mentioned terminal in said apparatus
The implementation process of correspondence step, will not be repeated here in resource file loading method.
Optionally, as shown in fig. 6, the device is included but is not limited to:There is judge module 210, resource file in the second application
Comparing module 220 and simplify removing module 230.
There is judge module 210 in the second application, default for for the first application program, judging to whether there is in terminal
Second application program;
Resource file comparing module 220, for being provided between the first application program and default second application program
The comparison of source file, determines the first application program and the second application program identical resource file therebetween;
Removing module 230 is simplified, for deleting identical resource file in the first application program, and journey is applied first
Addition is corresponding with the second application program in sequence simplifies identification information.
Optionally, as shown in fig. 7, not existing default second application program in terminal, device in Fig. 6 is also included but not
It is limited to:Difference acquisition module 310 and second applies determining module 330.
Difference acquisition module 310, the comparison for carrying out resource file between all application programs in the terminal;
Second applies determining module 320, according to the result that difference acquisition module is contrasted, all application programs in the terminal
Middle determination can be to the most application program of other application programs shared resource file as the second application program.
Optionally, the device in Fig. 6 also includes:
Receiver module is updated, for receiving the resource file more new command that the second application program sends;
First deletes file acquisition module, for obtaining described first from the resource bundle of second application program
Application program is used to add the resource file simplified identification information and delete;
File acquisition completes instruction sending module, refers to for sending resource file acquisition completion to second application program
Order, the resource file is obtained and completes instruction for causing that second application program determines whether to carry out upon receipt of the instructions
Resource file updates;
Same asset file updates determining module, for after the second application program completes resource file renewal, sentencing again
Whether identical resource file has renewal between second application program after disconnected and renewal;
Same asset file removing module, for if so, then will be identical between second application program after renewal
Resource file deleted.
Optionally, the device in Fig. 6 also includes:
Command reception module is deleted, instruction is deleted for receiving the resource file that second application program sends;
Second deletes file acquisition module, for obtaining described first from the resource bundle of second application program
Application program is used to add the resource file simplified identification information and delete;
Mark removing module is simplified, journey is applied for after the deleted resource file is obtained, deleting described first
Identification information is simplified in sequence.
Optionally, Fig. 8 is the resource file loading of application program in a kind of terminal according to an exemplary embodiment
The block diagram of device, resource file treatment is carried out for the second application program, and the second application program is to the other application journey in terminal
Sequence shared resource file.As shown in figure 8, the device is included but is not limited to:Update command reception module 410, update difference acquisition
Module 420, shared file determining module 430, shared information add module 440 and application update module 450.
Command reception module 410 is updated, the resource file more new command for receiving the second application program;
Difference acquisition module 420 is updated, for resource response file more new command, the second application program is obtained in the updated
And before renewal between resource file difference;
Shared file determining module 430, for according to difference, determining other application programs and the second application program in terminal
Between identical resource file;
Shared information add module 440, for adding shared information in the second application program, sharing information is used for phase
Same resource file is shared to other application program;
Using update module 450, for the addition by sharing information, the resource text before being updated in the second application program
Part replaces with the resource file after updating.
Optionally, as shown in figure 9, the device in Fig. 8 is also included but is not limited to:Delete command reception module 510, file also
Grand master pattern block 520 and file removing module 530.
Command reception module 510 is deleted, the resource file for receiving the second application program deletes instruction;
File recovery module 520, for each application program for resource file in shared second application program, will
The resource file of Application sharing is reduced to application program respectively;
File removing module 530, for deleting all resource files in the second application program.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, this
Art personnel can without departing from the scope perform various modifications and changes.The scope of the present invention only will by appended right
Ask to limit.
Claims (10)
1. in a kind of terminal application program resource file loading method, it is characterised in that methods described includes:
Receive the loading instruction of the first application resource file;
If first application program possesses is simplified identification information, the identification information lookup terminal is simplified according to described
To the second application program of the first Application sharing resource file;Wherein it is described simplify identification information be delete with
The identification information added in application program after the second application program identical resource file;
The resource file that first application program is deleted is loaded from the resource bundle of second application program.
2. method according to claim 1, it is characterised in that the identification information of simplifying is especially by methods described below
Addition, methods described includes:
For first application program, judge to whether there is default second application program in the terminal, if it is,
Then
The comparison of resource file is carried out between first application program and default second application program, it is determined that the two
Between identical resource file;
The identical resource file, and addition and institute in first application program are deleted in first application program
State that the second application program is corresponding to simplify identification information.
3. method according to claim 2, it is characterised in that with the presence or absence of default described in the judgement terminal
After second application program, also include:
If it is not, then contrasting the resource file of all application programs in the terminal;
Determining in all application programs in the terminal can be to the most application journey of other application programs shared resource file
Sequence is used as the second application program.
4. method according to claim 2, it is characterised in that methods described also includes:
Receive the resource file more new command that second application program sends;
First application program is obtained from the resource bundle of second application program and simplifies identification information for addition
And the resource file deleted;
Resource file being sent to second application program and obtaining completion instruction, the resource file acquisition completes instruction to be used to make
Second application program is obtained to determine whether to carry out resource file renewal upon receipt of the instructions;
After the second application program completes resource file renewal, the phase between second application program after renewal is rejudged
Whether same resource file has renewal;
If so, then by renewal after second application program between identical resource file deleted.
5. method according to claim 2, it is characterised in that methods described also includes:
Receive the resource file deletion instruction that second application program sends;
First application program is obtained from the resource bundle of second application program and simplifies identification information for addition
And the resource file deleted;
After the deleted resource file is obtained, identification information is simplified in deletion first application program.
6. in a kind of terminal application program resource file loading device, it is characterised in that described device includes:
Loading command reception module, the loading instruction for receiving the first application resource file;
Judge module is simplified, identification information is simplified for judging whether first application program possesses;
Second applies determining module, if possess simplifying identification information for first application program, is simplified according to
To the second application program of the first Application sharing resource file in the identification information lookup terminal;Wherein described essence
Simple identification information is in the mark for deleting with added in the application program after the second application program identical resource file
Information;
Resource file load-on module, deletes for loading first application program from the resource bundle of second application program
The resource file for removing.
7. device according to claim 6, it is characterised in that described device also includes:
There is judge module in the second application, for for first application program, judging in the terminal with the presence or absence of presetting
Second application program;
Resource file comparing module, for being provided between first application program and default second application program
The comparison of source file, it is determined that identical resource file therebetween;
Removing module is simplified, for deleting the identical resource file in first application program, and described first
Added in application program and corresponding with second application program simplify identification information.
8. device according to claim 7, it is characterised in that apply journey in the absence of default described second in the terminal
Sequence, described device also includes:
Difference acquisition module, applies the comparison that resource file is carried out between all application programs in the terminal;
Second applies determining module, and using the result contrasted according to the difference acquisition module, all in the terminal should
Can be to the most application program of other application programs shared resource file as the second application program with determination in program.
9. device according to claim 7, described device also includes:
Command reception module is updated, for receiving the resource file more new command that the second application program sends;
File acquisition module is deleted, for obtaining first application program from the resource bundle of second application program
For adding the resource file simplified identification information and delete;
File acquisition completes instruction sending module, and completion instruction is obtained for sending resource file to second application program,
The resource file is obtained and completes instruction for causing that second application program determines whether to be provided upon receipt of the instructions
Source file updates;
Same asset file update determining module, for after the second application program complete resource file update after, rejudge with
Whether identical resource file has renewal between second application program after renewal;
Same asset file removing module, for if so, then by renewal after second application program between identical money
Source file is deleted.
10. device according to claim 7, it is characterised in that described device also includes:
Command reception module is deleted, instruction is deleted for receiving the resource file that second application program sends;
Second deletes file acquisition module, for obtaining first application from the resource bundle of second application program
Program is used to add the resource file simplified identification information and delete;
Simplify mark removing module, for after the deleted resource file is obtained, deleting first application program in
Simplify identification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611149038.0A CN106855816B (en) | 2016-12-13 | 2016-12-13 | Resource file loading method and device of application program in terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611149038.0A CN106855816B (en) | 2016-12-13 | 2016-12-13 | Resource file loading method and device of application program in terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106855816A true CN106855816A (en) | 2017-06-16 |
CN106855816B CN106855816B (en) | 2020-10-13 |
Family
ID=59125754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611149038.0A Active CN106855816B (en) | 2016-12-13 | 2016-12-13 | Resource file loading method and device of application program in terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106855816B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124480A (en) * | 2019-12-19 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Application package generation method and device, electronic equipment and storage medium |
WO2022111469A1 (en) * | 2020-11-24 | 2022-06-02 | 华为技术有限公司 | File sharing method and apparatus, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149958A1 (en) * | 2002-02-06 | 2003-08-07 | Shumeet Baluja | Automatic code generation for applications which run on common platforms |
CN104793998A (en) * | 2014-01-20 | 2015-07-22 | 中兴通讯股份有限公司 | Terminal system resource management method and device |
CN105159788A (en) * | 2015-09-11 | 2015-12-16 | Tcl集团股份有限公司 | Method and system for dynamic resource sharing between Android applications |
CN105867947A (en) * | 2016-04-25 | 2016-08-17 | 青岛海信电器股份有限公司 | Data processing method and device after upgrades of preset applications |
CN106095518A (en) * | 2016-06-28 | 2016-11-09 | 东软集团股份有限公司 | Application program installation method and device |
-
2016
- 2016-12-13 CN CN201611149038.0A patent/CN106855816B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149958A1 (en) * | 2002-02-06 | 2003-08-07 | Shumeet Baluja | Automatic code generation for applications which run on common platforms |
CN104793998A (en) * | 2014-01-20 | 2015-07-22 | 中兴通讯股份有限公司 | Terminal system resource management method and device |
CN105159788A (en) * | 2015-09-11 | 2015-12-16 | Tcl集团股份有限公司 | Method and system for dynamic resource sharing between Android applications |
CN105867947A (en) * | 2016-04-25 | 2016-08-17 | 青岛海信电器股份有限公司 | Data processing method and device after upgrades of preset applications |
CN106095518A (en) * | 2016-06-28 | 2016-11-09 | 东软集团股份有限公司 | Application program installation method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124480A (en) * | 2019-12-19 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Application package generation method and device, electronic equipment and storage medium |
CN111124480B (en) * | 2019-12-19 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Method and device for generating application program package, electronic equipment and storage medium |
WO2022111469A1 (en) * | 2020-11-24 | 2022-06-02 | 华为技术有限公司 | File sharing method and apparatus, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106855816B (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106802803B (en) | Application data processing method and device | |
CN109873804A (en) | Service identification method, device, equipment and the readable storage medium storing program for executing of Behavior-based control | |
CN108133008B (en) | Method, device, equipment and storage medium for processing service data in database | |
CN107330035B (en) | Operation log synchronization method in database, mobile terminal and computer readable storage medium | |
CN101571877B (en) | Point of interest search device and point of interest search method | |
CN105975864A (en) | Operation system starting method and device, and terminal | |
JP3954642B1 (en) | Screen storage system | |
CN110598441B (en) | User privacy protection method and device | |
CN103294572A (en) | Electronic device to restore MBR, and method thereof | |
CN103136027B (en) | Immediate updating device and immediate updating method | |
CN105760522A (en) | Information search method and device based on application program | |
CN104216802B (en) | Memory database recovery method and device | |
CN106803032A (en) | Realize method, device and client device that website fingerprint is logged in | |
CN106855816A (en) | The resource file loading method and device of application program in terminal | |
CN106528300A (en) | Console game synchronizing method, device and terminal | |
CN103701653A (en) | Processing method for interface hot plugging and unplugging configuration data and network configuration server | |
CN109471786B (en) | A kind of collecting method, device, equipment and storage medium | |
CN103838731B (en) | The method of a kind of data process and terminal | |
CN117130697B (en) | Method and device for fixing application on taskbar | |
CN102662801A (en) | Method, client and system for recovering program through instant communication tool | |
CN115878138A (en) | Application pre-downloading method and device, computer and storage medium | |
EP3385872B1 (en) | Anti-counterfeiting method, device, storage medium and apparatus based on invalid map data | |
CN107977221A (en) | A kind of mobile terminal software update method and system | |
US20170155702A1 (en) | Client and method for recommending file opening tool | |
CN111371818B (en) | Data request verification method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266000, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |