write Date to Parcel - Android android.os

Android examples for android.os:Parcel

Description

write Date to Parcel

Demo Code


//package com.java2s;
import android.os.Parcel;

import java.util.Date;

public class Main {
    public static void writeDate(Parcel out, Date date) {
        out.writeLong(date == null ? 0 : date.getTime());
    }/*ww  w.j  a  va2  s  . c om*/
}

Related Tutorials