I run my app in Ionic Framework using ionic run android.
What I need is to retrieve all the images in the sdcard of emulator and display it in my view.
I tried using camera.getPicture(), but in that function, a list of images in sdcard will be displayed first and from that list, I have to select the images that I need.
But what my requirement is that, I want all the photos from the sdcard to be displayed directly in my view. Is there any function to make it possible?
You cannot do this by using ionic framework only. Cordova is used to do this action which you need. following link may be helpful for you. :)
Related
My flutter app is successfully downloading media to 'android/media/com.example.testapp/testapp/images/'. I can see them via file explorer but for some reason I am not able to see them in gallery. Earlier I was storing images outside of the android storage at that time Images were showing in gallery. I'm using mediascanner for this.
print(directory.path);//outputs /storage/emulated/0/Android/media/com.example.testapp/testapp/images/image1.jpg
MediaScanner.loadMedia(path: directory.path);
I think the problem is that, you aren't telling the OS about new image or video, for this you need to use Android Intent or use this plugin https://pub.dev/packages/image_gallery_saver, it will update the media files every time you save your file using this plugin
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 am new to Ionic 2 and I am having some problems with images in my app.
Searching online I understood that the images must be put in the /src/assets folder inside the app. (correct?)
The images work fine using ionic serve and ionic lab commands but in the simulated devices or using Ionic View on an iPad they do not show up!
I reference the images in the code with:
<img src="../assets/img/ringing.png" class="circle_icons">
How can I solve this?
(Down are some screenshot of the problem)
Screenshot of the simulator with problems displaying images
Screenshot of the ionic serve without problems displaying images
After placing the images in your assets folder just reference them like this.
<img src="assets/images/MiTUCson-quick-search.png" alt="Consulta Rapida"
I am using cordova 3.5 and eclipse to develop a mobile application. Inside of an image stream I am downloading 30 images through jquery append (url). The storage information are displayed in the following figure.
Anyone knows how to clear the "DATA" (19.41MB) category programmatically?
I have the same issue with IOS, when I try to follow apples data storage guidelines...
best
M
I am trying to make a custom plugin for Cordova that will be used for Android. Now, in the src code of the plugin for Android, I have a drawable (icon) which I want to pass it to the Cordova side (The plugin returns a name and its drawable).
So far, the best idea that I could find was to save the image in a temporary folder and give the path back to cordova side. However, since it is never a big picture has anyone any other suggestions to give the drawable as a callback to Javascript side?
Thanks all
Someone contributed to the plugin for Cordova I have wrote, and added this functionality. But the way it was implemented was saving the image to sd card in the plugin and reading it from cordova.
You can check it at https://github.com/jmrezayi2/Applist