How to stop AsyncFacebookRunner or stop a request in general?
问题 I have an AsyncFacebookRunner that uploads an image to Facebook. I want to create a cancel button that will stop the download. How can one achieve that? EDIT: This is how I use it: byte[] data = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos); data = baos.toByteArray(); Bundle params = new Bundle(); params.putByteArray("picture", data); AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook); mAsyncRunner