Application activation method and apparatus
AssigneeTencent Technology (Shenzhen) Company Limited
InventorLinyuan Deng
Life of this patent
Estimating the term…
Abstract
An application activation method is provided. The method includes obtaining a first compressed file, where the first compressed file contains activation information of an application and compressed content of a code package of the application. The method also includes extracting the compressed content from the first compressed file; generating a second compressed file by using the compressed content without decompressing the compressed content; and loading the second compressed file, and activating the application according to the activation information in the first compressed file.
Claims16
An application activation method, comprising:
- obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main- package comprising at least one activation entry program in a decompressed state;
- extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
- generating a second compressed file by using the compressed content without decompressing the compressed content;
- activating the main-package and displaying an activation interface that changes a current screen;
- loading the second compressed file asynchronously after displaying the activation interface;
- and
- activating the application according to the activation information in the first compressed file, including:
- executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
- wherein the sub-package comprises a non-activation entry program;
- and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.
A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
- obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main- package comprising at least one activation entry program in a decompressed state;
- extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
- generating a second compressed file by using the compressed content without decompressing the compressed content;
- activating the main-package and displaying an activation interface that changes a current screen;
- loading the second compressed file asynchronously after displaying the activation interface;
- and activating the application according to the activation information in the first compressed file, including:
- executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
- wherein the sub-package comprises a non-activation entry program;
- and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.
An application activation apparatus, comprising:
- a memory;
- and
- a processor coupled to the memory and configured to perform:
- obtaining a first compressed file, the first compressed file containing activation information of an application and compressed content of a code package of the application, the activation information comprising a code main-package, and the main-package comprising at least one activation entry program in a decompressed state;
- extracting the compressed content from the first compressed file, the compressed content being a code sub-package in the first compressed file;
- generating a second compressed file by using the compressed content without decompressing the compressed content;
- activating the main-package and displaying an activation interface that changes a current screen;
- loading the second compressed file asynchronously after displaying the activation interface;
- and
- activating the application according to the activation information in the first compressed file, including:
- executing the at least one activation entry program in the main-package, and displaying a main interface of the application upon detecting that the second compressed file is completely loaded;
- wherein the sub-package comprises a non-activation entry program;
- and the non-activation entry program allocated in the sub-package in the first compressed file and the activation entry program allocated in the main-package in the first compressed file are obtained according to a preset classification rule during installation and compiling of the application.
Dependencies are inferred from the claim text.