Fixed AndroidHttpClient leak and Java warnings.