Code example for DefaultHttpClient

Methods: getParams

    private MWApi api;
    private Account currentAccount = null; // Unlike a savings account...
    public static final String API_URL = "";
    public static MWApi createMWApi() { 
        DefaultHttpClient client = new DefaultHttpClient();
        // Because WMF servers support only HTTP/1.0. Biggest difference that 
        // this makes is support for Chunked Transfer Encoding.  
        // I have this here so if any 1.1 features start being used, it  
        // throws up.  
        return new MWApi(API_URL, client);
    public void onCreate() { 
        // TODO Auto-generated method stub 
        api = createMWApi();
Connect your IDE to all the code out there  Get Codota for Java