'Thumbnails of new images in android

I have tried code inside the below link under the function public static String getThumbnailPath(Context context, String path), but there are no thumbnails for recently captured images. Null is returned in case of recently capture images. How to deal with issue.

Get thumbnail Uri/path of the image stored in sd card + android

Thumbnails are created just after opening the WhatsApp app to see those recently captured images. So WhatsApp maybe initializing the process of creating thumbnails. How to do it in my app ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source