public void viewAttachment() { if (this.mAttachment.contentUri == null) { LogUtils.e(LOG_TAG, "viewAttachment with null content uri", new Object[0]); return; } Intent localIntent = new Intent("android.intent.action.VIEW"); localIntent.setFlags(524289); Utils.setIntentDataAndTypeAndNormalize( localIntent, this.mAttachment.contentUri, this.mAttachment.contentType); try { getContext().startActivity(localIntent); return; } catch (ActivityNotFoundException localActivityNotFoundException) { LogUtils.e( LOG_TAG, localActivityNotFoundException, "Couldn't find Activity for intent", new Object[0]); } }