i am getting this message in logcat A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource l
My error was caused by enabling the strict mode. When I was doing redeployments on a test phone using adb, some resources were not closed correctly.
I "fixed" the error by removing deathPenalty from the strict mode:
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
// .penaltyDeath()
.build());