Java tutorial
//package com.java2s; import android.app.Activity; public class Main { public static final String EXTRA_TAKE_PHOTO = "TAKE_PHOTO_URI"; public static final String EXTRA_TAKE_VIDEO = "TAKE_VIDEO_URI"; public static void resetPendingData(Activity activity) { activity.getIntent().putExtra(EXTRA_TAKE_PHOTO, ""); activity.getIntent().putExtra(EXTRA_TAKE_VIDEO, ""); } }