US 10,891,142 B2
Method and device for preloading application, storage medium, and terminal device
Yan Chen, Guangdong (CN); and Yaoyong Liu, Guangdong (CN)
Assigned to GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD., Dongguan (CN)
Filed by Guangdong Oppo Mobile Telecommunications Corp., Ltd., Guangdong (CN)
Filed on Nov. 13, 2018, as Appl. No. 16/188,929.
Claims priority of application No. 2017 1 1396149 (CN), filed on Dec. 21, 2017.
Prior Publication US 2019/0196849 A1, Jun. 27, 2019
Int. Cl. G06F 9/445 (2018.01); G06F 9/48 (2006.01); G06F 9/448 (2018.01); H04L 29/08 (2006.01)
CPC G06F 9/44578 (2013.01) [G06F 9/445 (2013.01); G06F 9/4491 (2018.02); G06F 9/485 (2013.01); H04L 29/08 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A method for preloading an application, comprising:
collecting, in a preset collection period, historical state feature information of a terminal device at each time point at which a target application is closed, as samples of the target application;
monitoring whether the target application is launched within a preset time period starting from the each time point at which the target application is closed;
recording monitoring results as sample labels of the samples;
acquiring current state feature information of the terminal device, in response to the target application being detected to be closed;
comparing the current state feature information with the historical state feature information of the terminal device when the target application was closed, the historical state feature information corresponding to historical usage regularities of the target application;
determining, from within the historical state feature information, target historical state feature information closest to the current state feature information according to a comparison result; and
preloading the target application, in response to determining that the target application is about to be launched again according to a historical usage regularity corresponding to the target historical state feature information;
wherein comparing the current state feature information with the historical state feature information of the terminal device when the target application was closed comprises calculating distances between the current state feature information and each of the historical state feature information;
wherein determining, from within the historical state feature information, the target historical state feature information closest to the current state feature information according to the comparison result comprises determining historical state feature information corresponding to the smallest distance as target historical state feature information; and
wherein preloading the target application, in response to determining that the target application is about to be launched again comprises preloading the target application, in response to a sample label corresponding to the target historical state feature information indicating “launch”.