Code example for AsyncTask

Methods: cancel

0
	} 
 
	@Override 
	public void onStop() { 
		if (mUnpacker != null)
			mUnpacker.cancel(true);
		super.onStop(); 
	} 
 
	@Override 
	protected void onActivityResult(int requestCode, int resultCode,
										Intent data) {
		switch (requestCode) {
		case REQUEST_MARKET:
			if (resultCode != RESULT_OK)
				Log.w(LOG_TAG, "Market returned " + resultCode);
			tryUnpack(); 
			break; 
		} 
	} 
Connect your IDE to all the code out there  Get Codota for Java