US2014208326A1PendingUtilityA1

File presenting method and apparatus for a smart terminal

Assignee: TENCENT TECH SHENZHEN CO LTDPriority: Jan 9, 2013Filed: Mar 24, 2014Published: Jul 24, 2014
Est. expiryJan 9, 2033(~6.4 yrs left)· nominal 20-yr term from priority
G06F 16/168G06F 9/46
44
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

A file presenting method and apparatus for a smart terminal is provided. The method includes determining whether it is to present a thumbnail of a file according to a type of the file, and setting loading information of the file in a loading queue if it is by a user interface thread; acquiring the loading information from the loading queue, determining whether a cache of the smart terminal stores the thumbnail of the file, generating the thumbnail of the file in accordance with the loading information and storing the generated thumbnail to the cache of the smart terminal if the cache of the smart terminal does not, and acquiring the thumbnail of the file from the cache of the smart terminal if the cache of the smart terminal does by a loading thread acquiring; presenting the thumbnail of the file as an icon of the file.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A file presenting method for a smart terminal, comprising:
 determining whether it is to present a thumbnail of a file according to a type of the file, and setting loading information of the file in a loading queue if it is by a user interface thread;   acquiring the loading information of the file from the loading queue, determining whether a cache of the smart terminal stores the thumbnail of the file, generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the cache of the smart terminal if the cache of the smart terminal does not, and acquiring the thumbnail of the file from the cache of the smart terminal if the cache of the smart terminal does by a loading thread; and   presenting the thumbnail of the file as an icon of the file.   
     
     
         2 . The file presenting method for a smart terminal of  claim 1 , wherein
 the step of setting the loading information of the file in the loading queue comprises setting a storage address of the file in the loading queue, and   the step of generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the cache of the smart terminal comprises:   acquiring the file from a memory of the smart terminal in accordance with the storage address of the file and generating the thumbnail of the file by using a Software Development Kit (SDK);   storing the generated thumbnail to the cache of the smart terminal.   
     
     
         3 . The file presenting method for a smart terminal of  claim 1 , wherein the step of the loading thread acquiring the loading information of the file from the loading queue comprises the loading thread acquiring the loading information of the file from the loading queue in a polling mode. 
     
     
         4 . The file presenting method for a smart terminal of  claim 1 , wherein the step of the loading thread determining whether the cache of the smart terminal stores the thumbnail of the file, generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the cache of the smart terminal if the cache of the smart terminal does not, and acquiring the thumbnail of the file from the cache of the smart terminal if the cache of the smart terminal does comprises:
 the loading thread determining whether a first level cache of the smart terminal stores the thumbnail of the file, acquiring the thumbnail of the file from the first level cache of the smart terminal if the first level cache of the smart terminal does, further determining whether a second level cache of the smart terminal stores the thumbnail of the file if the first level cache of the smart terminal does not, generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the second level cache of the smart terminal if the second level cache of the smart terminal does not, and acquiring the thumbnail of the file from the second level cache of the smart terminal if the second level cache of the smart terminal does.   
     
     
         5 . The file presenting method for a smart terminal of  claim 4 , wherein, after generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the second level cache of the smart terminal, the method comprises:
 storing the generated thumbnail to the first level cache of the smart terminal in accordance with a Least Recently Used (LRU) algorithm.   
     
     
         6 . The file presenting method for a smart terminal of  claim 1 , wherein the method further comprises:
 receiving a command to present a file management page;   emptying the loading queue.   
     
     
         7 . The file presenting method for a smart terminal of  claim 1 , wherein the method further comprises:
 when the user interface thread determines that it is not to present the thumbnail of the file according to the type of the file, presenting a preset default icon.   
     
     
         8 . The file presenting method for a smart terminal of  claim 1 , wherein the method further comprises:
 before presenting the thumbnail of the file as the icon of the file, presenting a preset default icon as the icon of the file.   
     
     
         9 . A file presenting apparatus for a smart terminal, the apparatus comprising a loading queue setting unit, a thumbnail acquiring unit, and a thumbnail presenting unit, wherein:
 the loading queue setting unit is configured to enable a user interface thread to determine whether it is to present a thumbnail of a file according to a type of the file, and set loading information of the file in a loading queue if it is;   the thumbnail acquiring unit is configured to enable a loading thread to acquire the loading information of the file from the loading queue, determine whether a cache of the smart terminal stores the thumbnail of the file, generate the thumbnail of the file in accordance with the loading information of the file and store the generated thumbnail to the cache of the smart terminal if the cache of the smart terminal does not, and acquire the thumbnail of the file from the cache of the smart terminal if the cache of the smart terminal does; and   the thumbnail presenting unit is configured to present the thumbnail of the file as an icon of the file.   
     
     
         10 . The file presenting apparatus for a smart terminal of  claim 9 , wherein
 the loading queue setting unit is configured to enable the user interface thread to set a storage address of the file in the loading queue;   the thumbnail acquiring unit is configured to enable the loading thread to acquire the file from a memory of the smart terminal in accordance with the storage address of the file, generate the thumbnail of the file by using a Software Development Kit (SDK), and store the generated thumbnail to the cache of the smart terminal.   
     
     
         11 . The file presenting apparatus for a smart terminal of  claim 9 , wherein
 the thumbnail acquiring unit is configured to enable the loading thread to acquire the loading information of the file from the loading queue in a polling mode.   
     
     
         12 . The file presenting apparatus for a smart terminal of  claim 9 , wherein
 the thumbnail acquiring unit is configured to enable the loading thread to determine whether a first level cache of the smart terminal stores the thumbnail of the file, acquire the thumbnail of the file from the first level cache of the smart terminal if the first level cache of the smart terminal does, further determine whether a second level cache of the smart terminal stores the thumbnail of the file if the first level cache of the smart terminal does not, generate the thumbnail of the file in accordance with the loading information of the file and store the generated thumbnail to the second level cache of the smart terminal if the second level cache of the smart terminal does not, and acquire the thumbnail of the file from the second level cache of the smart terminal if the second level cache of the smart terminal does.   
     
     
         13 . The file presenting apparatus for a smart terminal of  claim 12 , wherein
 the thumbnail acquiring unit is further configured to enable the loading thread to, after generating the thumbnail of the file in accordance with the loading information of the file and storing the generated thumbnail to the second level cache of the smart terminal, store the generated thumbnail to the first level cache of the smart terminal in accordance with a Least Recently Used (LRU) algorithm.   
     
     
         14 . The file presenting apparatus for a smart terminal of  claim 9 , wherein
 the thumbnail presenting unit is further configured to present a preset default icon when the user interface thread determines that it is not to present the thumbnail of the file.   
     
     
         15 . The file presenting apparatus for a smart terminal of  claim 9 , wherein
 the thumbnail presenting unit is further configured to present a preset default icon as the icon of the file before presenting the thumbnail of the file as the icon of the file.

Join the waitlist — get patent alerts

Track US2014208326A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.