Java tutorial
//package com.java2s; //License from project: Apache License import android.database.Cursor; public class Main { public static boolean isCursorRight(Cursor cursor) { if (cursor == null || cursor.getCount() <= 0) { return false; } return true; } }