UPDATE: This question and its answers should no longer be recommended to anyone reading this. Android no-longer recommends HttpClient (read: deprecated), and instead
define HttpClient in Application class, and use it in activity.
in Application
public class AAA extends Application { public HttpClient httpClient; httpClient = new DefaultHttpClient();
in Activity
AAA aaa = (AAA)getApplication(); httpClient = app.httpClient;