Try this
Bitmap ThumbImage = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(imagePath), THUMBSIZE, THUMBSIZE);
This Utility is available from API_LEVEl 8. [Source]
More Related Contents:
- How to restart Activity in Android
- How to handle a lost KeyStore password in Android?
- Steps to create APK expansion file
- How to add SHA-1 to android application
- Android LinearLayout : Add border with shadow around a LinearLayout
- How to set Internet options for Android emulator?
- Generate Apk file from aab file (android app bundle)
- Volume Control in android application
- How to wrap the height of a ViewPager to the height of its current Fragment?
- CMUSphinx PocketSphinx – Recognize all (or large amount) of words
- Change background color of android menu [duplicate]
- android BluetoothDevice.getName() return null
- How to record screen and take screenshots, using Android API?
- How to get all child’s data in firebase database?
- Android ACTION_SHUTDOWN Broadcast not working
- Android: xml layout for a listview with different items
- How to check if APK is signed or “debug build”?
- Disable home button in android toddler app?
- Failed to find style ‘mapViewStyle’ in current theme
- Change Checkbox value without triggering onCheckChanged
- How do I change date time format in Android?
- Coordinator Layout with Toolbar in Fragments or Activity
- android: stretch image in imageview to fit screen
- Show ImageView programmatically
- Widget.AppCompat.Button colorButtonNormal shows gray
- Disabling text selection in PhoneGap
- SharedPreferences in BroadcastReceiver seems to not update?
- org.json.simple.JSONObject cannot be cast to org.json.JSONObject
- Skinning Android app with Maven build profiles
- Newer versions of Android Studio add only two drawable directories – drawable and drawable-v21