The present disclosure relates to the field of mobile terminal technology, and more particularly to a method for re-skinning a third party's application.
With the development of mobile device technology, the mobile device has become an indispensable personal electronic device in people's everyday life, whereby people can gain access to information, conduct their office work and be entertained. Since the types and models of mobile devices are small in relation to the size of user groups, users have to constantly change the presentation effect of various applications on the mobile device to showcase their personality.
Some efforts have been made for re-skinning of existing applications in which some resource files are arranged in resource file packages when the applications are developed by program developers. Thereafter, when users employ the applications, the desired presentation effect can be selected from the different resource files. However, only limited preset resource files are available to the user for re-skinning Therefore, there are limited options for the users. Further updating options are not available.
The purpose of the present disclosure is to provide a method for re-skinning a third party's application which can provide unlimited resource files and improve the presentation effect of various applications.
To this end, the present disclosure adopts the following technical scheme:
A method for re-skinning a third party's application, suitable for an android system, comprising the following steps:
The resource file package of the third party's application includes resource files of the third party's application for presentation. If the operating system does not find the resource files of the third party's application to be replaced for presentation in the subject file package, the resource files for presentation are obtained from the resource file package.
With the technical scheme in the present disclosure, any individuals, including users, can add resource files into the third party's application. Accordingly, the presentation effect of the third party's application can be constantly updated.
Embodiments of the present disclosure are further described in detail with reference to the accompanying FIGURE.
Step 101. A resource file package for an application, such as a third party's application is established. The resource file package includes resource files of the third party's application for presentation, and includes a resource file ID, a resource file storage path and a mapping relation between them.
Step 102. A subject file package is established according to a directory structure in the resource file package of the third party's application. The subject file package includes resource files of the third party's application to be replaced for presentation. The resource files of the third party's application to be replaced for presentation share the same resource file storage path with the resource files of the resource file package.
Step 103. To generate a re-skinning presentation, the resource file ID for the re-skinning presentation is sent by the third party's application to an operating system.
Step 104. The operating system obtains a respective resource file storage path from the resource file package according to the resource file ID.
Step 105. The operating system obtains the resource files of the third party application to be replaced for presentation from the subject file package according to the resource file storage path.
If there are resource files to be replaced for presentation according to the corresponding resource storage path of the subject file package, the operating system obtains the resource files to be replaced for presentation.
If the operating system does not find resource files of the third party's application to be replaced for presentation from the corresponding resource file storage path of the subject file package, the resource files for presentation are obtained from the resource file package of the third party's application.
Step 106. The operating system sends the resource files of the third party's application to be replaced for presentation to the third party's application. The resource files of the third party's application to be replaced are presented by the third party's application for generating a re-skinning for presentation.
If the operating system does not find the resource files of the third party's application to be replaced for presentation from the corresponding storage path of the subject file package, the resource files for presentation of the resource file package are sent to the third party's application, and the resource files from the resource file package are presented by the third party's application.
The above is a detailed description of the technical features of the present disclosure based on a preferred embodiment. However, it should be appreciated that the present disclosure is capable of a variety of embodiments and various modifications by those skilled in the art, and all such variations or changes shall be embraced within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110181919.1 | Jun 2011 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN2012/072549 | 3/19/2012 | WO | 00 | 1/20/2014 |