extract Image from Intent Bundle - Android Intent

Android examples for Intent:Intent Bundle

Description

extract Image from Intent Bundle

Demo Code


//package com.java2s;

import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;

public class Main {
    public static Bitmap extractImage(Intent intent) {
        Bundle bundle = intent.getExtras();
        Bitmap bitmap = (Bitmap) bundle.get("data");
        return bitmap;
    }/* w w  w . j a v a  2 s. c o m*/
}

Related Tutorials