Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for updating pictures in an Android native application by using a caching framework and a timestamp

A native application, timestamp technology, applied in the field of mobile applications, can solve problems such as insufficient experience and untimely updates

Active Publication Date: 2019-01-08
INSPUR COMMON SOFTWARE
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this case, the change of the user's avatar will not take effect for a long time, which leads to the problem that the update is not timely and the experience is not good enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for updating pictures in an Android native application by using a caching framework and a timestamp
  • A method for updating pictures in an Android native application by using a caching framework and a timestamp

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The content of the present invention is described in more detail below:

[0017] Its specific implementation is exemplified as follows:

[0018] 1. Introduce ImageLoader into the project.

[0019] compile

[0020] 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

[0021] 2. Initialize the configuration of ImageLoader in MyApplication

[0022]

[0023] 3. Encapsulate ImageLoader management class

[0024] 4. Get updates with lastQueryTime.

[0025] apiService.getContactUserList(contactUserLastQuetyTime);

[0026] 5. The server side checks whether there is any update content between the last update and this update, and returns the update record if there is.

[0027] 6. Update lastQueryTime after receiving the update and store it in the database

[0028] 7. Assemble the address for accessing the picture, splice the picture address and lastQueryTime, put lastQueryTime behind the picture address, and get a combined address of the picture address and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for updating pictures in an Android native application by using a caching framework and a timestamp. The invention belongs to the technical field of mobile application.When entering an application, the invention takes lastQueryTime to check the picture change situation, and returns a new lastQueryTime if there is a change. When a picture is used, a time string is stitched together after the address of the picture to distinguish whether a network request is required.

Description

technical field [0001] The invention relates to mobile application technology, in particular to a method for updating pictures by using a cache frame and a time stamp in an Android native application. Background technique [0002] For mobile applications, it is inevitable to use colorful icons. Applications with IM functions will have pictures such as address book and conversation list avatars. It is unrealistic for all these pictures to exist on the mobile client, so use the picture loading framework It is an inevitable choice. There are various implementations of the image loading framework, but the principle is roughly the same. They all use a certain amount of internal and external memory space and appropriate algorithms, such as LRU algorithm, FIFO algorithm, etc., to manage the image cache. This is a common and relatively good approach. However, in the actual application process, in some application scenarios, these image loading frameworks have some defects. For exam...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/957G06F16/958G06F16/51
Inventor 于富昌
Owner INSPUR COMMON SOFTWARE