r/programminghomework • • Nov 19 '16

Database problem (Java, Android)

My school project is to make basically the Endomondo - an app that measures your results achieved while running.

I'm trying to create a database of the results, but my getAllResults() method throws exceptions at me.

MyLayoutObject is just 5 strings with their getters.

If you need more code, tell so. I posted this because this was the problem part. I have zero experience with databases, and I'm running out of ideas.

http://pastebin.com/Z4fANr94

/r/programminghomework , please help me, you're my only hope.

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/thediabloman Nov 20 '16

There you go. Remember that the updateDatabase method will only be called if you also increment the database version number. Then that won't happen for you. :)