Code example for Context

Methods: getApplicationContextregisterReceiver

0
 
    public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
    public static final String ENCODING_GZIP = "gzip";
 
    private HashMap<String, String> defaultHeaders = new HashMap<String, String>();
    private AbstractHttpClient httpClient;
 
    private HttpResponseCache responseCache;
 
    public IgnitedHttp() { 
        setupHttpClient(); 
    } 
 
    public IgnitedHttp(Context context) {
        setupHttpClient(); 
        listenForConnectivityChanges(context);
    } 
 
    protected void setupHttpClient() { 
        BasicHttpParams httpParams = new BasicHttpParams();