get value from Bundle - Android Android OS

Android examples for Android OS:Bundle Get

Description

get value from Bundle

Demo Code


//package com.book2s;
import android.os.Bundle;

public class Main {
    @SuppressWarnings("unchecked")
    public static <T> T get(String key, Bundle bundle) {
        return (T) bundle.get(key);
    }//  w  w  w .  java 2 s. c  om
}

Related Tutorials