grantbow / activehabits

Android app for tracking clicks over time
http://www.activehabits.com
5 stars 1 forks source link

Chart crashes with >49 marked actions in text file #18

Closed grantbow closed 13 years ago

grantbow commented 13 years ago

49 works 50 crashes achartengine currently.

Need to debug

grantbow commented 13 years ago

Possible work around is implement chart feature to display less data instead of always charting all. Set feature will also allow to split data across files.

jdeslip commented 13 years ago

This limit comes from setting MAXEVENTS to 50. To get rid of this limitation, you should change:

    String[] eventName = new String[MAXEVENTS];

and likewise to lists (which don't have predefined length) instead of arrays. Let me know if you want a patch for this.

grantbow commented 13 years ago

moved to ArrayList - I hate type syntax stuff like this. I remember having trouble with getting that code working. Will test soon.

grantbow commented 13 years ago

works great - doubled size of data file and charts still work.