put Date to Bundle - Android Android OS

Android examples for Android OS:Bundle Put

Description

put Date to Bundle

Demo Code


//package com.book2s;
import android.os.Bundle;
import java.util.Date;

public class Main {
    public static void putDate(Bundle bundle, String key, Date date) {
        bundle.putLong(key, date.getTime());
    }/* w w  w. j a v a 2 s  .  c  o  m*/
}

Related Tutorials