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.
Related
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 :)
There is someting i'm not guessing. How does photo lock apps work. In which directory do they move the photos so that they are no longer available in the gallery?
There are a lot of ways to do that. I think the simplest solution is to make the image not recognizable for the system, in that way the gallery app won't be able to find it. Simple encryption algorithm should do it.
Good day, I have a requirement to create a kind of book app with pdfs, images and videos worth up to 10gb and more on a tablet locally. Now there is no intention to sell it on the android market or any other store, its completely in house, so i think issue with apk size has been clarified. What am asking is, where is the best place to put all this contents so that i can readily load them up and use them accordingly?
Should i be using the raw folder and create sub-folders for each images, videos and pdfs?
Should i create folders on an sdcard(assuming there is one in place)? or
Please if you have any other solution or ideas on how to implement this, I would gladly like to hear this. Thanks for your responses in advance.
P.S by the way, since its a tablet specific app, is there any need to have a multi-pane layout fragment or ii can just use all the space. thank you
I suppose you can use a RAW folder, but it would also make the APK size huge from what I understand because all the files in the RAW folder need to be packaged with the application.
From what I've seen in the past, most applications, actually most games, that have lots of extra data will download the additional data on first launch. Basically:
The application launches
It checks whether or not you have all the additional data (Books, pdfs, images)
If not, it starts downloading that data to the SDCARD.
It may not make sense in your situation, but doing it this way gives you more finite control over how much data needs to be downloaded. If function A only requires package A of additional data, then you only need to download package A, you don't need to download everything. Or perhaps you could let the user choose what packages of additional data they want to download, which would also save bandwidth, time and resources.
I am planning to develop an android app. This will be my first app if I upload it.
I have pretty good idea , what my app should do , But I lack design skills and have no one to ask around. So asking android experts here.
App objective : very simple , have a listview with proper titles , on clicking it(list items) , it will show an appropriate image.
Approaches which I thought.
Have a relation between title(or a tag) and image names and have all images in drawable folder. whenever list item is clicked, point to appropriate drawable and show it.
Pros: easy to do it.
Cons: Seems like not scalable.
Store id,title,drawable reference( drawable ids ) in database and use it.
Pros: (different approach than prev one)
Cons: Creating database is painful if number of items are more !
I want some guidance in this approach, how people create huge database(for android) which
works offline.
Have a server, database there , provide an API for my app , whenever update is pressed ,
local database is synced !
Pros: Seems like scalable approach.
Cons: Hell lot of work for a simple app !
Should one consider storing images in database as BLOB data ?
Or none of these approach is correct.
Any advice will be helpful.
How many images are we talking about? Is this set of images static? If so, I'd go with the first option. Especially if these images are small in size.
If you have to modify the set of images (add/remove images from it somehow), and/or the images are huge I'd use the SD card solution too.
I would go with first option with storing the images on the SD card in a folder.
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