I want to categorize the images on my device and display it in different albums where the albums look like a stack or deck of images. This is quite a common feature in the default gallery, or applications like QuickPic etc.
How is this achieved? Is it a straightforward effort?
What is the estimated time reqiured for this effort?
You can get the images from the device and put them into different folders. Your app logic would recognize each folder as an album. Then a layout would be created which would display each album with the top 3 or 5 random images in it as a deck of cards (use a relative layout for this to place images on top of one another and use can use a transform function to rotate them slightly if you want also). For each album you would have one deck of cards,and when the user selects an album, you would launch another activity which would be your custom android gallery for displaying the images in a particular album. Here's a good tutorial for how to build one of these custom galleries:
http://mobile.tutsplus.com/tutorials/android/android-sdk-displaying-images-with-an-enhanced-gallery/
As for the time requirement, it's really depends on your skill level. It can range from about a week to 2 months or more I suppose. It isn't very hard to do once you get the hang of the basics of the android file system, a bit of graphics and manipulating the gallery.
Hope this helps :-)
Related
I am creating an image gallery application and you want to sort images by date, but when I use the method lastModified() 5000 files in folders or more, the list becomes very slow. My question is, as the native Android Gallery and other apps like QuickPic can do the listing by date so fast, even with many files?
The answer to my question is in use of the media store images!
Get list of photo galleries on Android
I am building an Android app that shows full screen images in a carousel. The app downloads 100 objects from the server and stores them in the app. Each object is represented by a full-screen image and some text.
The user will see all downloaded objects as full screen images.
Question: is it more efficient to use lazy loading one image at the time when the user goes through the carousel or download images in full batches?
Google suggests using batching and pre-fetching:
http://developer.android.com/training/efficient-downloads/efficient-network-access.html#BatchTransfers
Also, it is my understanding that one of the key benefits of lazy loading is avoiding downloading images that will not be used. In my case, the user will see all images of the all downloaded objects.
Thanks!
The first target is that the user sees the images without delay. By creating a batch starting from the first image it is probable that he will have the following images loaded when he scrolls through them. If in your case the user can scroll fast through the images, you can change the batch list and set a higher priority on the images he is going to see (like 3 plus and minus from the current position).
I am new to Android development and trying to develop an app with information on collectibles.
In short: the app contains information on thousands of collectible items, each with its own information and properties.
For this I want to set up a pre filled SQLITE database containing all the information. However each item also has an image connected to it.
The app will contain a listview showing all the items of a certain category (max 2k items per category).
Each listview item will have some basic information like Title, Short description and a thumbnail.
The problem is now, that I don't know which is the correct way to handle the images. Searching the internet I already concluded that I should not
add the images themselves to the database, which makes sense.
I do know I can add images to the resources/drawable folders, but having thousands and thousands of images added here, does not feel as the correct way.
If I want to save paths of the images into the database (which is pre filled), where should I save all the images, so they are accessible with the newly shipped app?
Thank you in advance.
I still dealing with my OutOfMemoryError problem, and now I'm in a hurry because we are reaching the project time limit.
I'm developing for an All-in-one android tablet (1920x1080 resolution)
My application consists on 3 views:
Book Category menu - Book menu (the list of books in the selected category) - Book pages display.
Book category, and book menu, are very similar:
One Horizontal Scroll View, that displays the list of (categories/books) (ImageViews added dynamically for each category/book in category).
When you click in one category, the application takes you to the book menu of that category, and when you click on a book, the application takes you to the book view.
The book view, is a copy of Android image_detail_pager and image_detail_fragment (Android's Displaying bitmaps efficiently Tutorial)
The 3rd screen (Book view), shows 4 images 1920x1080px resolution (full screen)
If I put that images in Android example project, OutOfMemoryError occurs again.
So, if Android's project fails, what can I do in my app?.
The other thing, in Android's example project, it loads the image from Internet, my images are already on disk.
Any ideas?.
Or I have to switch my application design to a Windows PC with a touch screen monitor and forget about android?.
thanks in advance.
You are running out of Bitmap memory. Can you use smaller images?
You need to manage the Memory Cache and the Disk Cache for your bitmaps to avoid OutOfMemoryError.
Look at his Google Developer link, Caching Bitmaps. You will find good practices to help you.
And you should also read this:
Loading Large Bitmaps Efficiently
Managing Bitmap Memory
If you need more info, ask me. I will complet my answer.
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.