Get thumbnail and image in Android

Rodrigo Martins
5 min readFeb 17, 2018

Hello, My name is Rodrigo, and I’m a mobile developer, today I’ll teach you how to get images from android camera, there are two ways to get one picture from the native camera app from your device, get a thumbnail, small picture with low resolution just to show to user in tiny image view, and the full image resolution.

Fun fact, why you can’t use always the full resolution image, well there are some problems around that, think in this situation, you get the full-sized image from the camera, and you need to show in a full-screen activity this image, imagine you transfer one image to 1080p or something better, to another activity by the intent, probably you will receive an exception OutOfMemmoryError (One of various exceptions) because android can’t handle large files like this, this is why exists the thumbnail, it is a tiny bitmap which you can handle and transfer like you wish.

You don’t need to get angry anymore when you can’t get one good resolution picture or even one picture of the camera, I already pass by a lot of issues with the Android camera and this is a good solution which I found to fix this.

Getting a thumbnail

--

--

Rodrigo Martins

Be brave and boldly go where no man has gone before. Let's discover the future!