Code example for HttpGet

Methods: abort

0
	} 
 
	public static void cancel() { 
		sCancel = true;
		if (sDownloadGet != null) {
			sDownloadGet.abort();
			sDownloadGet = null;
		} 
 
		sResources.clear();
	} 
 
	public ResourceManager(Context ctx, Handler h) {
 
		mHandler = h;
	} 
 
	public void fetchResource(Context ctx, String url, int resourceId) {
		if (sResources.get(resourceId) == null) {
			new FetchImageTask(ctx, url, resourceId).execute();
		}