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)
Related
I am creating an App where i want the users to upload the pictures themselves(like their display pictures), But i have no idea to do it. I want to achieve the task for Android and IOS in Xamarin. From this code below i am only able to source to images which are present in Resources.
I'm using multi_image_picker to allow picking images in my Flutter app.
I've noticed odd behavior when I download an image and store in the Download folder of the device, and the following things happen:
After I download an image, I trigger the image picker (by running MultiImagePicker.pickImages).
Image Picker doesn't show the image, which is odd since I've downloaded the image.
I'm navigating to the Android Files app and I do find the image.
Restarting my app and navigating again to the Image Picker, but still - image not exists.
Opening Google Photos app and after a second the image appears.
Navigating back to my app -> Image Picker, and then I see the image.
I know it sounds odd. I have no idea how or why it happens. I'm using Flutter 1.10.3 and a fresh Android API 28 emulator. I ran the app in an Android Q too and the results are the same.
Looks like your download directory and your GooglePhotos sync directory are in two different places and MultiImage.pickImages is looking at the GooglePhotosSync directory (which might also be the devices CameraRoll directory).
So you are dependent on GooglePhotos uploading the photo from one place and downloading it to another.
Most of my work is ios so sorry I cant be more specific.
I observed similar behavior in terms of some photos not showing when picking image from gallery.
I just found the cause 5 minutes ago before asking "Have you found out the solution?"
It turns out, the flutter image pickter starts from "Recent" folder, the photos I have recently downloaded have much older timestamp. So these photos are futher down in the list.
I will look into a solution.
I want to sync image or video to my ionic app as soon as user captures image or video. I got many solutions to capture image from ionic app. I even got the answer for manually selecting the picture from gallery, but I do not need that.
I want to achieve something as described by below image.
enter image description here
ShoeBox an app that is automatically syncs that image into their app after user takes a photo.
I want to do exactly the same. Any help would be appreciated.
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.
I need to add gallery to my android app. I used gallery in standard way, when pictures are in my folder, but now I need to show pictures when I have just pictures URLs(pictures are on some distant server). How can I achieve that ?
Is the server yours?
You might need to make an API to get the images from the server served to you.