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!
posted 3 years ago
finally have come to solution. Minor changes and it works fine. I believe also that there can be other ways to do it in order to be more efficient.