Slide-Show from storage images - android

So I´m new and still getting the hang of Android Studio.
What I´m trying to do is to create a "slide-show"apk in which you can add images to a specific storage folder on your device and the app will show you each image for a specific amount of time.
I´ve been trying to do this with the function: Animation list but I just found out you can´t add resources to drawable on runtime. So i´m not sure what´s the best way to tackle this... Hope someone has done something similar and is willing to help :)

Related

Load textures from images stored in StreamingDataPath

I'm trying very hard to understand how should i store and load some images in my Unity app for Android platform.
From what i understood, i should store them in the Application.streamingAssetsPath.
However i don't know how to access them.
Note: My images are in sub-folders within the streaming assets folder.
Here a some pages that I think might help you:
The docs:
https://docs.unity3d.com/Manual/StreamingAssets.html
Others:
https://answers.unity.com/questions/210909/android-streamingassets-file-access.html
https://forum.unity.com/threads/solved-loading-image-from-streamingassets.717869/
Personally, I do not develop on android so I can’t help you more unfortunately but I am hopping this can help a bit.

how to make folders in my android app

i have spent a lot of time now on searching on how to make folders in my app, what i usually found was how to make folders for my activities or for layout files but what i couldn't make google understand was i need folders just like we open the gallery in our phones and it has many folders like screenshots, whatsapp images, facebook images, camera images etc.. My query is somewhat similar.. I know in technical language it is called something else but i now wonder whether it is possible in android. If it is please enlighten me about it.
Any help is appreciated.
The gallery consists presumably of a GridView, GridLayout or TableLayout. There are no "folders" in Android.

What is the use of R.Drawable.Loader in android app while downloading image from URL

This might be a silly question, but i am stuck at a single place from quite some time and am not able to figure out the reason.
I am trying to download image from a URL to an android app. For this I am following this tutorial - http://www.androidhive.info/2012/07/android-loading-image-from-url-http/
The problem is that eclipse (I am doing coding in eclipse) is giving the error: Loader cannot be resolved or is not a field on the line where i have wriiten int load = R.drawable.loader
Any help would be appreciated.
Thanks in advance !
Going by the information given in the tutorial you linked to, R.drawable.loader is a place holder image used by the tutorial app to show to the user before the real image has finished downloading.
If the tutorial site allows you to download full projects, you can probably find this image in the /res/drawable(-something)/ directory. If not, you can pick any random placeholder image you like, rename it to loader. and put it in one of the res/drawable folders.

horizonalscrollview to many images?

sorry I'm really new at this, hopefully I posted in the right place.
I'm trying to make an app to change my wallpaper, but i'm stuck. If I add more than about seven images to my xml the app just closes itself. My images are 960x854. Does anyone know what i am doing wrong?
See these threads:
Android - how to improve HorizontalScrollView that has lots of views/images inside
http://groups.google.com/group/android-developers/browse_thread/thread/816292b2970f2ccd?pli=1
It would seem that you're running out of memory. Using Gallery instead of a HorizontalScrollView would be a more memory efficient way of handling what you're trying to do as it doesn't have to hold all images in memory.

How to store pictures within an app and call them to screen?

I want to create an app that has pictures Ive taken or created and allows users to browse through them. Ive got how to use buttons but I just cant figure out how to store the pictures within the apk file that gets uploaded to market. Im really new to android development and Ive been through some tutorials and have a couple books but for right now Im stuck and would greatly appreciate a push in the right direction. I know it should be easy to do but I just cant find anything describing what Im trying to do.
The easiest way would be for you to store your pictures in the res/drawable folder of your Android project. You can then access these images with myImageView.setResource(R.drawable.name_of_image_without_the_filetype);
Have a look at http://developer.android.com/guide/topics/resources/index.html

Categories

Resources