I am a total beginner in Java and have created a simple Java Android snippet where in a Runnable after 1,5 seconds I change the TextView from Hello World<
h.postDelayed(new WeakRunnable(txtview),1500);
I think it will be blocking UI Thread.
here is a good sample for memory leak.
https://github.com/badoo/android-weak-handler