Select multiple images from device's gallery in Hybrid application - android

I am developing an application for Android I want the button in the .html file to show the device's native gallery (in my case is android) which user can select multiple images and present it's thumbnails in the html page.
I already watch the video in This Website and I still get confusing.
Thank you for all suggestion and solutions.
Ps. I found the solution of select multiple images Here but I am not sure how to use it. ;(

Unfortunately, this is not possible with the current Gallery application of Android.
Within the Gallery application, you can select multiple photos and you can share them using SEND_MULTIPLE Intent. But that is different.
When you select photo from your application, that is called PICKER. And PICKER Intent does not support multiple selection.

Related

Can I use my phonegap app as an image chooser on android?

I have a phonegap app in which you can really easily sort your images and videos, however, I want to be able to let a user choose an image from my app, just as he would choose an image in the gallery.
For example, if he wanted to share an image via WhatsApp or Facebook, you have a button which allows you to add an image. On Android, you will then be able to choose between 'Gallery' and 'Images' (similar app from Google I suppose). After that, you will be taken to the one you've chosen, and then you can pick an image.
Now I want my app to function as the gallery, or at least be an option in this list. Is this possible?
You need to use cordova plugins for this purpose. There are options available:
Camera Plugin: Behaves like the Gallery, but may have memory problems on old devices.
Image Picker Plugin: A simple one to pick an image.
Both of them are also available by using ngCordova (a wrapper around common plugins)

Android open gallery with local (from 'res' folder) images

Is it possible to open Android Gallery for image selection (like ACTION_PICK intent for images from camera and other apps) but make it to show ONLY images stored locally in our app ('res' folder)?
The use case for this is to provide option to select app background from provided images.
No, it is not possible. App assets are not available to standard Gallery application
The standard "gallery" <intent-filter> does not include support for app resources at all.
The use case for this is to provide option to select app background from provided images.
Use your own ViewPager, or GridView, or StaggeredGridView, or AndroidStaggeredGrid, or whatever.
Closest I can think of is using a custom content provider, and maybe using ACTION_PICK with a uri that your content provider responds too?
This is more of a guess than an answer.

Add online album to Android Gallery App

I have a large amount of online images stored on my server. I have created a small java server backend to provide album lists and images per album, including a small management console.
I want to use/view these images on my Android device, by using the standard photo/gallery application. Apps like Google Picasa and Facebook do the same thing.
Eg. When I open up the gallery app, there's a tab called "Albums" where a number of folders are visible, including Picasa/Facebook. Most of these folders can be found on my SD card, but the albums by Picasa/Facebook are only online. Entering these online albums clearly shows the "album structure" you have with that provider ("Profile Pictures" at Facebook for instance).
The question:
How did Picasa/Facebook end up there, and how can I recreate said functionality?
I am almost certain it is done using Content Providers, but I can't even find a simple example when used for images. And unfortunatly, most answers here are providing solutions to the wrong problem.
The secondary question: Would this also be possible with Android's Movie and Music players?

Android Dynamic Image Gallery

Is it possible to build a dynamic image gallery for Android. I have a bunch of pages that describe beaches and it have a bunch of images particular to each beach?
If this is possible would I be able to give the user the option to download then images after they have downloaded the application?
Another option is, I have an HTML5 gallery that works in a web view, is there a way to embed that in my app?

Use the Android gallery to display Media RSS

I know that the native Gallery application of Android can display pictures stored from a Picasa Web account. I have searched the SDK but could not figure out if there is a way to make media rss available in the native gallery applications (and ideally would work with any gallery application).
I thought of creating a ContentProvider, to make these available but the gallery seems to only display what is added through the MediaStore.
If you have any idea, let me know.
Thank you very much.
Unfortunately it is not possible to add Media RSS in the native gallery without modifying its source code. No API allows that.

Categories

Resources