get Single Object Bundle - Android android.os

Android examples for android.os:Bundle

Description

get Single Object Bundle

Demo Code

import java.io.Serializable;

import android.os.Bundle;

public class Main {

  public static Bundle getSingleObjectBundle(String key, Serializable obj) {
    Bundle bundle = new Bundle();
    bundle.putSerializable(key, obj);//from   w w w . j  av a 2 s.c  o  m
    return bundle;
  }

}

Related Tutorials