npsonic Active Member Licensed User May 5, 2018 #1 Is there any way to get thumbnail path with image id? MediaBrowser lib doesn't help as it only provides Bitmap. I was trying with the 'queryMiniThumbnail', but just can't get it to work. Code: Copy queryMiniThumbnail(ContentResolver cr, long origId, int kind, String[] projection)
Is there any way to get thumbnail path with image id? MediaBrowser lib doesn't help as it only provides Bitmap. I was trying with the 'queryMiniThumbnail', but just can't get it to work. Code: Copy queryMiniThumbnail(ContentResolver cr, long origId, int kind, String[] projection)
Erel B4X founder Staff member Licensed User Longtime User May 6, 2018 #2 npsonic said: I was trying with the 'queryMiniThumbnail', but just can't get it to work. Click to expand... Where does this method come from? Upvote 0
npsonic said: I was trying with the 'queryMiniThumbnail', but just can't get it to work. Click to expand... Where does this method come from?
npsonic Active Member Licensed User May 6, 2018 #3 Erel said: Where does this method come from? Click to expand... It's mentioned in Google Developers docs "MediaStore.Images.Thumbnails" https://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails Upvote 0
Erel said: Where does this method come from? Click to expand... It's mentioned in Google Developers docs "MediaStore.Images.Thumbnails" https://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails
Erel B4X founder Staff member Licensed User Longtime User May 6, 2018 #4 It is a mistake to rely on file system paths when working with content providers. There are many cases where the resource doesn't come directly from the file system or it is not accessible. Upvote 0
It is a mistake to rely on file system paths when working with content providers. There are many cases where the resource doesn't come directly from the file system or it is not accessible.
npsonic Active Member Licensed User May 6, 2018 #5 Erel said: It is a mistake to rely on file system paths when working with content providers. There are many cases where the resource doesn't come directly from the file system or it is not accessible. Click to expand... How should I get all thumbnails fast as possible? If every thumbnail is get with MediaBrowser it will take too much time and create lag. I was using Picasso to show real pictures, but showing thumbnails would be much faster. Upvote 0
Erel said: It is a mistake to rely on file system paths when working with content providers. There are many cases where the resource doesn't come directly from the file system or it is not accessible. Click to expand... How should I get all thumbnails fast as possible? If every thumbnail is get with MediaBrowser it will take too much time and create lag. I was using Picasso to show real pictures, but showing thumbnails would be much faster.
Erel B4X founder Staff member Licensed User Longtime User May 7, 2018 #6 Don't load all the images at once. Only load them when you actually need to show them on the screen. Upvote 0