thread memory leak
[안드로이드] handler leak, static Handler
It's just as it says. The Handler class should be static.So if you define the Handler as you would define an inner class, with a WeakReference to your context:static class StaticHandler() { WeakReference reference; public StaticHandler(MyActivity activity) { reference = new WeakReference(activity); } @Override public void handleMessage(final Message m) { mStatusText.setVisibility(m.getData().get..