0
這是我嘗試添加自己的日期的TimeSeries對象:安卓:增加自己的日期achartengine
private void fillData() {
DBHelper db = new DBHelper(this);
Cursor c = db.selectGewichtFromKind(id);
ArrayList<String> arr = new ArrayList<String>();
ArrayList<String> arrdate = new ArrayList<String>();
c.moveToFirst();
if(c.moveToFirst())
{
do
{
arr.add(c.getString(c.getColumnIndex("gewicht")));
arrdate.add(c.getString(c.getColumnIndex("gewichtsdatum")));
System.out.println("ARRRAY LENGHT : " + arr.size());
}while(c.moveToNext());
}
for (int i = 0; i < 100; i++) {
time_series.add(arrdate[i], i);
}
}
現在,我在這條線得到一個
The type of the expression must be an array type but it resolved to ArrayList<String>
錯誤
time_series.add(arrdate[i], i);
如何解決這個問題?