US 12,360,948 B2
File generation method and electronic device
Shen Wang, Shenzhen (CN); and Yang Gao, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 18/027,035
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Sep. 6, 2021, PCT No. PCT/CN2021/116745
§ 371(c)(1), (2) Date Mar. 17, 2023,
PCT Pub. No. WO2022/057663, PCT Pub. Date Mar. 24, 2022.
Claims priority of application No. 202010991909.3 (CN), filed on Sep. 18, 2020.
Prior Publication US 2023/0376459 A1, Nov. 23, 2023
Int. Cl. G06F 16/16 (2019.01); G06F 16/13 (2019.01); G06F 16/957 (2019.01)
CPC G06F 16/16 (2019.01) [G06F 16/13 (2019.01); G06F 16/957 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
obtaining a combination file;
comparing a length of the combination file to a preset threshold;
splitting, in response to the length of the combination file being greater than the preset threshold, the combination file into at least two files having lengths less than or equal to the preset threshold, wherein the at least two files comprise a first file and a second file, wherein resource files in the first file are of a first content type, and wherein resource files in the second file are of a second content type;
obtaining first information based on a resource index file, wherein the resource index file comprises indexes, file names, and first path information of resource files, wherein the resource files comprise a first resource file and a second resource file, wherein the first information comprises second path information of the first file and a file name of the first file, wherein the first file is based on the first resource file and the second resource file that are each of the first content type, and wherein the first resource file and the second resource file belong to a first page;
loading the first file based on the first information;
obtaining the first resource file and the second resource file from the first file by using second information to extract the first resource file and the second resource file from the first file; and
displaying the first page based on the first resource file and the second resource file.