发明名称 Method and terminal for loading picture resources by JAVA virtual machine
摘要 The present invention provides a method and a terminal for loading picture resources by a JAVA virtual machine. The method includes: obtaining the picture resources required by the JAVA virtual machine, decoding the picture resources into original data and then storing the original data; and reading the original data of the picture that requires loading to load the picture after receiving a loading picture event in normal operation of the JAVA virtual machine. According to the present invention, the picture loading speed of the JAVA virtual machine can be controlled, thereby guaranteeing the start speed of the JAVA virtual machine.
申请公布号 US8863121(B2) 申请公布日期 2014.10.14
申请号 US201013380621 申请日期 2010.11.01
申请人 ZTE Corporation 发明人 Zhao Xiaona;Liu Gang;Gou Dingyong
分类号 G06F9/455;G06F3/00;H04N19/00;G06T1/00 主分类号 G06F9/455
代理机构 Ling and Yang Intellectual Property 代理人 Yang Stephen;Wu Ling;Ling and Yang Intellectual Property
主权项 1. A method for loading picture resources by a JAVA virtual machine, comprising: obtaining the picture resources required by the JAVA virtual machine, decoding the picture resources into original data, and storing the original data obtained from decoding in a file system instead of integrating the original data into an executable file or a library of the JAVA virtual machine; wherein the step of storing the original data obtained from the decoding into the file system comprises: putting original data files of different pictures into the file system under different resource paths according to styles of an interface represented by the pictures; and reading the original data of a picture that requires loading to load the picture after receiving a loading picture event in normal operation of the JAVA virtual machine; wherein the step of reading the original data of the picture that requires loading to load the picture comprises: converting a current resource path into the resource path where the original data of the picture that requires loading are located, and obtaining the original data file of the picture that requires loading from the file system under the resource path after conversion; and reading the original data from the original data file that is obtained to load the picture.
地址 Shenzhen, Guangdong Province CN