Code example for URI

Methods: equals

0
		public long totleBytes;
 
		@Override 
		public boolean equals(Object o) {
			if (o instanceof ImageLoadingTask) {
				return uri.equals(((ImageLoadingTask) o).uri);
			} 
 
			return super.equals(o);
		} 
 
		@Override 
		public void run() { 
			Message message = mImageLoadedHandler.obtainMessage(STATUS_SUCCESS,
					this);
			if (listener != null && listener.onPreLoad(uri.toString())) {
				message.what = STATUS_CANCEL;
				message.sendToTarget();
				return; 
			}