Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handler class should be static or leaks might occur (Android Lint) #40

Open
GoogleCodeExporter opened this issue Jul 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open project with Android Wheel
2. Run Android Lint for the project

Lint now recommends to have Handler static, according to link below, it's not 
such fatal issue when not using long-delayed Messages posted in queue to 
Handler, but it's still design fault.

Could you please write a subclass for Handler, and fix this issue?

Link (1) : 
http://stackoverflow.com/questions/11407943/this-handler-class-should-be-static-
or-leaks-might-occur-incominghandler
Link (2) : 
http://stackoverflow.com/questions/11278875/handlers-and-memory-leaks-in-android

Original issue reported on code.google.com by Marek.Se...@gmail.com on 3 Sep 2012 at 8:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant