posted 10 years ago
Hi,
I am trying to obtain the ArrayList of Integers from database to be used with the activity containing the Chart (mChartEngine). When the Chart activity (OnCreate) is initiated the code looks for the method happyDataFromDb. It's main purpose should be to obtain the integers from the happinessDb (SQLite database) and store it in an array called happyList in Char activity.
after I try to run the activity i get an error leading to the addHappyData which is initiated for drawing the chart specifically in for loop.
help would be much appreciated!
brg
HappinesDB:
Chart Activity: