0
Hello, I have a folder with images on an external server, have to take the link of this folder and open the images that are in it(slide type) in an Activity in the case in android studio?
0
Hello, I have a folder with images on an external server, have to take the link of this folder and open the images that are in it(slide type) in an Activity in the case in android studio?
0
You can recover the image through an Inputstream and use the Bitmapfactory.decodeStream () to create a bitmap from Inputstream, and then use setImageBitmap() for the image view to display the image.
But I would personally use the Glide to speed up this process.
Browser other questions tagged android imageview
You are not signed in. Login or sign up in order to post.
but using Inputstream it can take images from a folder only by the link of the folder? for example www.meusite.com.br/Imagenslegal and load the images you have in this folder
– Marlos Trinidad
if I put the images in a database it will take a long time, because they are a lot of images, so I was thinking about this idea of the folder, but I do not know how to do
– Marlos Trinidad
I would list the files in the folder filtering by images, then download them or use Glide to quickly list in imageview
– Samuel Ives
my biggest doubt Samuel is in this part " would list the folder files filtering by images" because I am using the Firebase database, then I would put the links of the folders with images there, but ae how I will move to android and he understand that is to see the images that have in the folder?
– Marlos Trinidad
Is your website made in php? If yes I would create a json in the image folder, whenever an image was sent to the server I would add its path in an array in json, then download that json with android and recover that array with the urls. But if you are going to use firebase, I think this may help you: http://javasampleapproach.com/android/firebase-storage-get-list-files-display-image-firebase-ui-database-android https://stackoverflow.com/questions/37335102/how-to-get-a-listof-all-files-in-cloud-storage-a-firebase-app
– Samuel Ives
Samuel I have a linux server where is stored photos and pdfs, I am not storing directly in Firebase for financial question because the files are coming to 30gb, and on this server I gained this space,the app lists these pdfs and opens in the app up to ae all right, but also have these folders with images, and as are many I would waste a lot of time putting one by one in firebase,
– Marlos Trinidad
so I’m looking for a solution to just take the link from the folder on the linux server and play on firebase and the application scan these folder and list the images, I have no website, only the linux server and firebase that is taking the pdfs and playing in the application. managed to understand?
– Marlos Trinidad
I want to do so: register the link from the example folder 192.57.14.25/ww/images and the application scans the folder and lists the images it contains
– Marlos Trinidad
can do json and I’m getting the string urls, how to convert to image?
– Marlos Trinidad
Com Jsonobject https://developer.android.com/reference/org/json/JSONObject Example of a site: http://www.matera.com/blog/post/received-dados-via-json-em-um-aplicativo-android
– Samuel Ives