Here you can find the source of setBoolean(ContentValues alarm, String key, boolean value)
public static void setBoolean(ContentValues alarm, String key, boolean value)
//package com.java2s; import android.content.ContentValues; public class Main { public static void setBoolean(ContentValues alarm, String key, boolean value) { alarm.put(key, (Integer) (value ? 1 : 0)); }/*from w w w. ja va 2 s . c om*/ }