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.
Related
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 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)
I am working on an App which is selecting a single picture at a time from the gallery. Right Now I have used the intent to open the gallery. But I do not want to use this. This is just because of the Use Case which is as below :
If the user Selects the Picture which is not in Portrait then my app should show him dialog to warn him that he is selecting the wrong Photo. Only Portrait photos are allowed.
So for this, I think If I would open the gallery by intent I can not achieve this, So I moved to another Idea , to bring all the photos from the gallery into the app. For this I tried using the Universal image loader, But Unfortunately it is slow and not looking good.
So is there any way to open the device Gallery into the app directly so please guide me share me the code or any link. thanks
Does anyone know how to force an image to reload in Android webkit?
I'm building and HTML-app with phonegap, where the user is allows to change his/her profile photo by uploading a new one from the camera. But the browser keeps displaying the old image until I browse to another page and back to the "profile page". Very annoying!
I've tried adding a timestamp to the url as below, which I know work with most desktop browsers. Not here though.
actual url:
/my/image/url.jpg
switched to:
/my/image/url.jpg?12345678 (<-- current time in millis)
Any ideas on what to do?
Once the image is uploaded I use window.location = same/url/again.jsp to reload the page. But no luck there. The image is only reloaded once I browse to another page and back again..
I am working on an application in which I have to show the preview of image attachments, I have online path of the images. How can I show the preview of the image from that path in android application?
If you want to have images, you have to hit the server to get them. What I suggest to run AsyncTask and get that image and show it as you want.