extract Image from Intent Bundle - Android android.graphics

Android examples for android.graphics:Image Load Save

Description

extract Image from Intent Bundle

Demo Code

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;

public class Main{

    public static Bitmap extractImage(Intent intent) {
        Bundle bundle = intent.getExtras();
        Bitmap bitmap = (Bitmap) bundle.get("data");
        return bitmap;
    }//from www .  j a  va  2s.com

}

Related Tutorials