I\'m trying a simple app to read in the HTML of a website, and tranform it to create an easily readable UI in Android (This is an exersize in learning android, not to make a
I suppose one of best thing is apply Singleton Pattern to your HTTPClient so you just have only one instance!
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
public class myHttpClient {
private static HttpClient mClient;
private myHttpClient() {};
public static HttpClient getInstance() {
if(mClient==null)
mClient = new DefaultHttpClient();
return mClient;
}
}