extract Image from Intent Bundle - Android Graphics

Android examples for Graphics:Image Intent

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 .  jav a 2  s  .  c o  m
}

Related Tutorials