title: android how to check Database Table Is empty or not?
body: <p>i want code for following concept
  If Data_Base_Table is empty insert the data to Data_Base_Table.Its only one time .If already data in Data_Base_Table  means do nothing.I Wrote like this
  Here am checking DataBase Table data is empty or not is it correct or not
  public boolean checkDataBaseTable() {
          SQLiteDatabase dataBase = this.getReadableDatabase();</p>
  
  <pre><code>    String s = "SELECT * FROM"+Data_Base_Table;
      Cursor cursor = dataBase.rawQuery(s, null);
      if (cursor.moveToFirst()) {
          do {
              //int i=cursor.getColumnCount();
          }while(cursor.moveToNext());
  
      }
      return cursor!= null ? true : false;
  }
  </code></pre>