pebble / pebblekit

Pebble's app development toolkit for the Pebble smartwatch, Android and iOS
199 stars 13 forks source link

[Android] Cursor-based helper function should close Cursors #32

Open sjp4 opened 11 years ago

sjp4 commented 11 years ago

The helper functions in the PebbkeKit android SDK (e.g. areAppMessagesSupported / startAppOnPebble) should close Cursors before returning.

Technically, this probably won't result in any Cursor leaks because they are finalized on return - but best practice is to always close Cursor objects, and it fills the logcat up with:

07-06 17:48:26.223: W/CursorWrapperInner(8347): Cursor finalized without prior close()