Comments (5)
I don't see any issue here. ViewHolders are retained since Activity doesn't seem to be destroyed in the usecase you're describing.
Are these objects retained after you quit the app with the back button?
from android-preferencesmanager.
I have developed an automated Memory Leak detection tool which test Activities executing different lifecycle events (rotations, background-foreground, dialog pop-up events) then forcing an ending Garbage Collection.
The idea is that if the activity lifecycles are well managed there should not be an increase of the used heap memory.
In AppListActivity, forcing the BF (Background-Foreground) events, it seems to be an increasing trend of those TextView. It means that BF events cause an increase of TextView objects in heap memory.
The designed Background-Foreground event works switching from an activity to another, involving the Activity's onStart-onStop lifecycle.
from android-preferencesmanager.
Unfortunately the Adapter is always re-created (instead of updating it's internal data), that's the reason why you see doubled instances of ViewHolders.
But since I don't think the Adapter instance is retained anywhere except in the Activity, it won't be a memory leak.
Maybe you have more details about the retained cycles of these objects?
from android-preferencesmanager.
Have you considered to use a Loader instead of managing the listView through AsyncTask?
Loaders should manage lifecycles automatically, avoiding such problems.
https://developer.android.com/guide/components/loaders.html
from android-preferencesmanager.
Unfortunately this project is no longer maintained and I don't have enough time to invest in this right now.
from android-preferencesmanager.
Related Issues (16)
- Application without title
- preferences manager not working HOT 6
- Problems with cm13/toybox HOT 4
- doesn't work in CM 12.1 HOT 1
- empty data from preference-files with whitespaces HOT 7
- Scrollable xml selector is hard to use HOT 6
- Reload
- Crashes on start on JellyTime 4.2.2 HOT 15
- āļ
- 0
- [Feature request] Search keys & values across all files of app
- Application does not recognize rooted device HOT 5
- Color picker
- No preference files found HOT 1
- Switch theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
ð Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ððð
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google âĪïļ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-preferencesmanager.