Android examples for android.content:ContentValues
Returns true if the ContentValues is null or 0-length.
//package com.java2s; import android.content.ContentValues; public class Main { /**//w ww .ja v a2 s. c o m * Returns true if the values is null or 0-length. * * @param values the values to be examined * @return true if values is null or zero length */ public static boolean isEmpty(ContentValues values) { if (values == null || values.size() == 0) { return true; } else { return false; } } }