Which of the following two should I be using to make sure that all the cursors are closed?
Cursor c = getCursor(); if(c!=null && c.getCount()&g
Depends on what you're catching, but I'd say the second one, just in case c.getCount() throws an exception.
c.getCount()
Also, some indentation wouldn't go amiss :)