 <p>From Activity you send data with intent as:</p> <pre><code> Intent recipientsIntent = new Intent(this, RecipientsActivity.class); recipientsIntent.setData(mMediaUri); String fileType; if (requestCode == TAKE_PHOTO_REQUEST) { fileType = ParseConstants.TYPE_IMAGE; } else { fileType = ParseConstants.TYPE_VIDEO; } recipientsIntent.putExtra(ParseConstants.KEY_FILE_TYPE, fileType); // set Fragmentclass Arguments Fragmentclass fragobj = new Fragmentclass(); fragobj.setArguments(recipientsIntent ); </code></pre> <p>and in Fragment onCreateView method:</p> <pre><code>public class Fragmentclass extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { String mFileType = getArguments().getString(ParseConstants.KEY_FILE_TYPE); } } </code></pre>