Foreground Service Retains Memory Objects
My Android application is essentially a foreground service. The User Interface aspect of the application is for settings and configuration of this foreground service. When the serv
Solution 1:
My Android application is essentially a foreground service. The User Interface aspect of the application is for settings and configuration of this foreground service.
This is appropriate for a vanishingly small number of apps.
Examining the path to gc roots gives no clues as to why these are remaining in the memory, or what is holding a reference to them.
The Resources
one, at minimum, is in every Dalvik process and cannot be removed. Most likely the BitmapDrawable$BitmapState
is tied to the Resources
.
Post a Comment for "Foreground Service Retains Memory Objects"