I am working on an android application which has a sqlite database. After writing the code in my app related to database operation, I am getting below exception. Though my appli
Like the log says:
A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
Explicit termination method 'close' not called
Note that the callstack shows where the resource was created. The message is printed when the resource is garbage-collected and it notices that it wasn't closed.
In your case, we can see that the resource is a ParcelFileDescriptor
, and it was created automatically by the IBackupAgent$Stub.onTransact()
method (i.e., when your BackupAgent is getting a call through binder).
The log should disappear if you make sure to close the ParcelFileDescriptors passed to your BackupAgent subclass.