简体   繁体   中英

How to download and store image in device while upgrading database in android application?

Is there any way to download image from internet and store it in SD Card / Phone Memory and use it for future while upgrading database in Android application? I'm using HTML5 / Phonegap / jQuery Mobile.

You can use "Lazy Loaders", Here you will find fedorvlasov's lazy image loader. It also has file cache and memory cache, so you can store the images you downloaded and use later on when your device is not connected to the internet.

Take a look here

http://www.helloandroid.com/tutorials/how-download-fileimage-url-your-device

And then you can save path file inside an DB by SQLite. Look for SQLite Android tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM