legendaryfox/bamft — comment on commit 2aa5f967c4e072791008097f97f1cbe3331d3b24
File:  line 0
By legendaryfox:

For some reason, all my builds were crashing, but only when my device was not connected to the internet (meaning something was wrong with the cache-updating and talking to the database). i commented out the db.close in the onCreate handler, and it seems to be working fine now.

I think we might not understand what the DatabaseHandler is. I was under the assumption that this is the actual database's "onCreate" function itself, but now I'm led to believe it might not be, and is only the interfacing adapter. We should probably look into this more. If it is the case that this is only the handler and not the actual database itself, it may make more sense to move the CREATE SQL statements to its own. I'm not sure though.

The fact that I left the db.Close() intact on the recreateTable SQLs and it ran fine might confirm my suspicion on this.

In the meantime, I'm gonna comment out the db.close in the onCreate function, we'll see how it plays out.