Store Image in SD card and send to server - android

I need a help. In my android application, I have adding image option.Each time I can choose or take images and send the image to server. here
While sending the image ,I set the image to SD card and send it to server.
after successfully send to server,I removed the image from SD card.
after adding i am showing images from server to list view.
Each and every time I am adding images and showing it like this.
I can able to edit the images also by setting new images.
My problem is,
When editing how to solve cache problems in SD card
what library will be useful for this kind of process.
how to load the images from server in list view.
how to update the particular cell image.
how to manage efficient memory for storing images in SD card.

Related

Image library to download and show images from Amazon S3

I need to create one smooth and nice image gallery (images in a GridView and each image can be zoomed in viewpager (swipe left/right) ) in my android application.
My pictures are available to be downloaded on Amazon S3.
Now, my question is what is the best way to download pictures from S3 and show them. For the moment, I am downloading the pictures from S3 (if they are not yet on sd card, with their library, TransferManager, in an asynctask), once downloaded to a specific folder in SD Card, I am showing the image through UNiversalImageLoader library. But I find the process a bit slow, and not so smooth, app is bugging a bit when there are a few images to be loaded (even if they are already downloaded to sd card). What should I change in my process ? Is it better to generate a dynamic url with amazon and then download it through a library? Is it the File.exists check (to see if I have to download pic or not) which is slow?
I need the following features for my gallery:
- view images in gallery (gridview)
- see if images are on sd card, if not download from s3, if on sd card, show them in gallery
- download to specific sd card location
- view each image in viewpager (swipe left/right)
Thanks for your help,
Henry
You can use the Picasso library. It is used to load and cache images you don't have to manage the image cache, the library does that for you. Example as follows,
Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);

Android: Cache image by android class or manual way?

When i develop a android app with download and caching image from internet, i see many app use MemoryLruCache or DiskLruCache to cache image after download. But i want to know why they use them, why don't use the way like: download image, then save image into sd card and after get image from sd card to show it( it is manual way).
I'm newbie in android dev. So please help me to understand it?
Thanks many many times.
well downloading a list of images from url will consume time and also fill up the user memory also....so its better to dynamically load images from url and make its cache and then preview the images from cache..
I hope you did got my point....check some example of lazy loading of image

How to update images or save new images in web in Android

I am getting data from server, it works fine.Image successfully getting display with application. But, Now I want to take new photo from camera or from SD card and update that images which is getting from web.Here , Image must be save on server and replace old web images to new photo that is take from camera or SD card.
I did not have much more idea behind this trick, could you please give me basic idea.How to update current images to new images.

download image from web and store in sd card. then after retrieve this from sd card and want to show in list view

This is an image based project.
In this I want to download image from web and store in sd card. Then after I want to retrieve this from sd card and want to show in list view. Also I want to use bitmap method to compress the file. Also cache to fast the process.
Any one can give advice for this project??
You can use lazy list concept for solving this problem i am sharing the link of this concept with you use it.
https://github.com/thest1/LazyList
I hope its helpful to you.

Thumbnail location of Images/Videos in sdcard

I would like to know the location of the stored thumbnails in android sdcard. I used the adb push service to upload images and videos to the sdcard. But even after deleting few images, my application is loading the thumbnails of the deleted images which is creating problems. When I click the thumbnails, instead of the corresponding image, some other image is opening. How to delete/ re-populate the thumbnails? Also How to load the original image of the clicked thumbnail? How does android retrieve the original image corresponding to its thumbnail? what's the mapping between these two?
Thanks in advance.
Well, if you are are using system intents, like ACTION_PICK, then you probably need run media scanner ( Applications > Dev Tools > Media Scanner )

Categories

Resources