get Single Object Bundle - Android Android OS

Android examples for Android OS:Bundle Get

Description

get Single Object Bundle

Demo Code


//package com.java2s;

import android.os.Bundle;

import java.io.Serializable;

public class Main {
    public static Bundle getSingleObjectBundle(String key, Serializable obj) {
        Bundle bundle = new Bundle();
        bundle.putSerializable(key, obj);
        return bundle;
    }//from  w ww . j a  va 2 s . com
}

Related Tutorials