read Boolean from Parcel - Android android.os

Android examples for android.os:Parcel

Description

read Boolean from Parcel

Demo Code


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

public class Main {
    private static int TRUE = 1;

    public static boolean readBoolean(Parcel in) {
        if (in == null)
            return false;
        return in.readInt() == TRUE;
    }// w  ww.j ava2s  .c  o m
}

Related Tutorials