JPG file not showing in Android Application - android

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

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.

Do we need to have different sizes of Button icon(Share image, Delete image on actionbar) in the android app?

I'm uploading an app to google play store. However I have this one doubt before uploading. I'm using the share and camera image from here.
My question is do i need to have all different sizes for such small images as well? Right now I've just kept my ic_share and ic_screenshot files directly in the drawable folder.
Any help is appreciated. Thank you

How do we generate thumbnails for uploaded images to Box?

I am using the old Box API to upload files.
When my users upload images to folder in their Box account using my Android app, they complain that thumbnails images are not generated for these images on the website. If they upload images using the Box app, they are generated fine.
I should point out, that the images are not corrupted and are transferred fully. If downloaded they are identical to the file previous to upload. So the issue is, that when uploading an image using the API, no thumbnail gets generated.
How can I fix it, so it does?
Just found out, which I should probably have done before asking, is that this seems to be fixed with the new Box V2 API, which the next version of my app will be using.
So using V2 API will fix this issue for me.

android- Converting pdf into images

I'm developing an Android application which involves reading pdf files.
Initially on syncing with the server a set of pdf files will be saved into the device's SD card.
Now, I have a requirement to convert this pdf file into images. Because on doing that the speed of loading the pages are faster..
can anyone help me with this and if possible give me links to some sample code..
I got this idea from here https://stackoverflow.com/a/4779852/1105585 ....
but i don't know how this works... help plz..
I'm currently working on an app that loads files and adds effects to the images. One of the formats suppose to support is PDF. I used leadtools libs for the rasterrizing pdfs (converting pdf into raster images) and some image effects.
Hope this helps.
PDF isn't made up of images, they're vectors,.
couple open-source java PDF to Image converters
http://www.jpedal.org/
http://code.google.com/p/pdfonejava/
On desktop I've used iText java library for that kind of task. Not sure if its Android compatible but worth of giving a shot as its easy to implement.

Android GalleryPicker or Gallery?

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.

Categories

Resources