Android GalleryPicker or Gallery? - android

I downloaded Android 2.2 (proyo) source code and compiled it.
I looked at the app folder and I found Gallery and Gallery3D.
I created an Android project from existing source code(Gallery) on Eclipse. It appears on Eclipse as GalleryPicker with errors. If I created an Android project from Gallerry3D then it doesn't complain.
My question is what is the difference between Gallery and GalleryPicker (Gallery3d and Gallery in Android source code).
Also, how do I get rid of errors on the GalleryPicker?
Thanks in advance..

If I follow your question correctly Gallery3d is an application (loaded from your app drawer) for viewing images and Gallery (android.widgets.Gallery, I believe) is a widget which displays a filmstrip of images above a blow up of the selected image.

Related

Multi Image Picker doesn't locate my image until I open Google Photos in Flutter

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.

Android Image viewer app test

I am trying to follow the link below for the code for a Image viewing app in android.
android image "viewer" app
But I am getting an error with the r.raw.image1. (also on raw.image2 and image3). I have saved the images in the asset folder. Error says raw cannot be resolved or is not a field. I have checked various documentations for this but am unable to understand what i am doing wrong. The code is exactly the same as in the above link.
Try to save your image into res/raw folder.

When I try to push a photo onto the android emulator, I am not able to see the photo in Albums

I am new to Android and now trying to retrieve contact photo (thumb nail) from a content provider and set it onto my app. But for that as i am running on an AVD, i pushed some .png photos onto my 2.2 version. Now i tried to create a contact with the photo, but the Gallery is showing "No Media Found", hence i am stuck here.
Please help me in getting the photo visible in gallery.
Note : I am aware of the following facts :
I have restarted my AVD to force the Media Scanner to do its initial mockups.
Also i have seen the .png file through the File Explorer View of Eclipse Framework.
But strangely, I am not able to pull the file off the phone.
I have taken help of the link get the path of a Gallery Folder in Android for understanding the general view on Media Scanner.
I believe this is because the application doesn't know if there are images inside /data.
Try to put your images in:
/mnt/sdcard/Pictures

JPG file not showing in Android Application

I have been working on a Yahtzee app that displays the dice jpg files as the dice rolled. These dice are only showing as black boxes instead of the jpg files.
I am using a Google Nexus 7 android device.
Here is an example of how I am posting the images in code.
mDieImageView[i].setImageResource(R.drawable.d0a);
d0a being the name of one of the jpgs. It is a native file.
Thanks for any help you can give.
Jake

How Android Open Gallery With Our own Image URLs?

I have downloaded the Android 3D Gallery Source from Github. I If i have run that code in Eclipse Its opening the images which are all already Available in the mobile.
I Just want to use that gallery source in my sample app and also want that .. if i click click gallery button means it should open the images which i am giving (URLs ) or (Images from internal memory ).
So please help me . i have go-ogled lot and tried some ways but couldn't found the right one .
All the ideas and hints are always welcome. Thanks in advance.
Github URL : https://github.com/CyanogenMod/android_packages_apps_Gallery3D

Categories

Resources