Creating a thread and never starting it will cause a memory leak.
AdHocCommandManager creates thread for each connection.
Some documents:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4410846
and
http://code.google.com/p/android/issues/detail?id=7979#c5
Here is patch:
How can I create new issues?