DBHelper db =new DBHelper(context);
Cursor result = db.weeklyMedicinesTaken();
//WeeklyMedicinesTaken is a function in DBHelper class which returns cursor containing an integer value.
startManagingCursor(result); //this function is a resistance in what i want to do.
while(result.moveToNext())
{
int count=result.getInt(0);
}
result.close();
実際には、sqlite からデータを取得し、データの処理と評価を適用したい単純なクラス (非アクティビティ クラス) があります。またはアクティビティの静的関数で、任意のクラスからその関数を呼び出すことができます。
何か提案してください??