Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    private static final byte TRUE_VALUE = 1;
    private static final byte FALSE_VALUE = 0;

    public static void writeBool(Parcel parcel, boolean bool) {
        if (bool) {
            parcel.writeByte(TRUE_VALUE);
        } else {
            parcel.writeByte(FALSE_VALUE);
        }
    }
}