hi, i've problem to get value from database (sqlite)
my code :
mDbHelper = new NotesDbAdapter(this);
mDbHelper.open();
Cursor notesCursor = mDbHelper.fetchAllNotes();
startManagingCursor(notesCursor);
Double a, b;
for(int i = 0;i<notesCursor.getCount();i++){
notesCursor.moveToFirst();
a =
notesCursor.getDouble(notesCursor.getColumnIndex(NotesDbAdapter.KEY_ROWID));
b =
notesCursor.getDouble(notesCursor.getColumnIndex(NotesDbAdapter.KEY_RESULT));
mCurrentSeries.add(a, b);
}
//mCurrentSeries.add(x, y);
if (mChartView != null) {
mChartView.repaint();
}
i want to get x and y value which i inserted before on the other
activity, and i want to make a chart based on x and y value from my
database.
i've been thinking to use an array because my database contain many x
and y value, anybody can help me to complete the code? thanks before
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en