for example you forgot to close it in TaskDataSource in the method getUnCompletedTasks
You are also not persistent in the way you close your cursors. Sometimes you check if the cursor object is null, and sometimes you do not.
Is there also a reason why the connection to the database is never closed? I see an unused method called close() in TaskDataSource. I do not properly understand the source code just yet to understand when I should call this method
for example you forgot to close it in
TaskDataSource
in the methodgetUnCompletedTasks
You are also not persistent in the way you close your cursors. Sometimes you check if the cursor object is
null
, and sometimes you do not.Is there also a reason why the connection to the database is never closed? I see an unused method called close() in TaskDataSource. I do not properly understand the source code just yet to understand when I should call this method