how to generate thumbnail of recently taken video from camera in android using camera2 API? -
mainactivity.java (this main class functionalities), need generate thumbnail of videos on corner of camera app & when thumbnail clicked play video. i have tried recycler view didnt worked. can me out ? import android.manifest; import android.annotation.targetapi; import android.content.context; import android.content.intent; import android.content.pm.packagemanager; import android.graphics.bitmap; import android.graphics.surfacetexture; import android.hardware.camera2.cameraaccessexception; import android.hardware.camera2.cameracapturesession; import android.hardware.camera2.cameracharacteristics; import android.hardware.camera2.cameradevice; import android.hardware.camera2.cameramanager; import android.hardware.camera2.capturerequest; import android.hardware.camera2.params.streamconfigurationmap; import android.media.mediarecorder; import android.media.thumbnailutils; import android.net.uri; import android.os.build; import android.os.bundle; import android.os.environment;