sqlite テーブルの行がデータベースに存在するかどうかを確認したい.行が存在する場合は、クラスを呼び出す必要があります。それ以外の場合は、別のクラスを呼び出します。この機能を使用するには
  public boolean Exists(int position) {
       SQLiteDatabase db =  (placeData).getReadableDatabase();
        Cursor cursor = db.rawQuery("select * from pages where bbookid ='"+ position +"'", null);
       boolean exists = (cursor.getColumnName(position)) != null;
       Log.i("logs","fads");
       if(exists=true)
       {
           getDataAndPopulate();
       }
       else
       {
       Log.i("qefw","cursors");
       new LoadAllProducts().execute();
       }
       cursor.close();
       return exists;
    }
しかし、このコードを使用すると、行が再挿入されます..機能にアプローチする方法を誰かに提案してもらえますか