I open a SQL connection each time a make an async SQL call or sometimes a group of async calls. Each time I open a connection, I try to close it after the call is complete, but there are occasions when this results in an error where I am trying to run a SQL request against a closed database.
Is there a downside to not closing each open connection? I would still open a connection for each call to make sure I have a valid connection.
B4X:
java.sql.SQLException: execute() is called on closed connection