Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class Main {
    public static boolean is_any_info_available(SQLiteDatabase db) {
        boolean result = false;

        Cursor cInfo = db.rawQuery("select INFO_ID from TESTING", null);
        if (cInfo != null) {
            if (cInfo.moveToFirst()) {
                result = true;
            }
        }
        if (cInfo != null)
            cInfo.close();
        return result;
    }
}