Skip to content

Instantly share code, notes, and snippets.

View TimurMukhortov's full-sized avatar
🏄‍♀️
On code review

Timur Mukhortov TimurMukhortov

🏄‍♀️
On code review
View GitHub Profile
@Mariovc
Mariovc / ImagePicker.java
Last active June 13, 2024 11:49
Utility for picking an image from Gallery/Camera with Android Intents
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;