How to download multiple images (only root address is known) - android

i got the following problem. I want to downlaod multiple images and display them into a gridview or gallery. I managed to download a single image from a specific address.
For example: "www.example.com/images/image1.jpg"
Now i want to download all images located at the root address "www.example.com/images/" but i dont know the names of the images, so i dont know the specific address for every image.
Would be nice if someone can help me with that.

if a html page references the images or the /images/ folder contents are visible in a web browser you could use wget or curl to retrieve the images. This in itself is another programming issue. WGET or CURL
To say it's not possible is like giving up.
Anything is possible :)

Related

add file to queue download multi file android

Currently I want to make a list like pictures and images on the server when I click on it, it will download the images to the memory device. If the image is downloaded, it will not download again and the image that is not there will be downloaded. Then I want to ask for a solution from everyone, how should I handle the download to be clean and good for performance. Or do you have an example for me to refer to? Thank you!
There are some ways to find out if your image already exists in your phone storage but the best way to find it out is by image name, compare image names before downloading.

Is it possible to create custom Viber stickers?

I have been thinking about developing my own custom Viber sticker but I can't get to any good source to give me some information about this.
Does anyone know how to do this? Or is it possible at all? If yes, please let me know what do I need to do so.
Thanks.
When you send/recieve a sticker, it doesnt really send it, just opens the image from the local store from your phone.
What I did on my Android is download a stickers set that I dont like.
Connect the phone to the computer and open the vyber folder, and search for the folder containing the set I downloaded.
Then I uploaded my custom stickers to this folder using the same names to overwrite the files.
Since vyber doesnt send the stickers, when you send the custom sticker people dont see your stikers, they see the original files on their phones. So I repeat the process on the phones of my boyfriend and my sister.
I can only use the stickers with them, but it is better than nothing.
Also you can just have a folder in your gallery and send them as image files is not the same, but it works.

how to display .jpg image in android?

I am using .net web services and I am having list of folders and files. I am successful in retrieving list of files(.jpg Image, .pdf, .TIF) but can anybody let me know how we can open .jpg, .pdf, .tif or other files format which I am getting from web services. Is there any specific code to open particular format or we can use path (/) to open that particular file?
Thanks.
if you need to download and display an image, check my answer on this post, that is probably what you are looking for. Common extensions for displaying images in Android are .png and .jpeg, you will not be able to show a .pdf file using an ImageView. You can also use the method mentioned in my answer inside an AsyncTask to perform the download in background and then update your UI thread

Android: How to get file list from url

I want to list files from url. For example, there are some jpeg files inside http://www.example.com/jpegfile/ that i want to list these files on my android app.
I know how to list files inside the phone, but i dont know how to list from url.
thank!!!
Well, before you can list your files from URL, you need to download them. Check this link, it will help you properly download your images, then you'll have to just show them where you want.
Multithreading for Performance

Gallery of pictures from distant site - Android

I need to add gallery to my android app. I used gallery in standard way, when pictures are in my folder, but now I need to show pictures when I have just pictures URLs(pictures are on some distant server). How can I achieve that ?
Is the server yours?
You might need to make an API to get the images from the server served to you.

Categories

Resources