I open the Message-Fragment from Activity-A and then open the Camera-Fragment from Message-Fragment. Now current fragment is Camera-Fragment and i have media-slider on it. Now I have two options, one is ImagePreview-Fragment that is opened if I click the image item on media-slider. Other is VideoPreview-Activity that is opened if click the video item on media-slider. So there is one condition of clicking video-item. If I click the video-item on media-slider and video size is bigger than 10 MB, I open the VideoTrim-Activity and when trim is completed i call the VideoPreview-Activity.
I'm sending a media from VideoPreview-Activity or ImagePreview-Fragment. So when I send the media I want to return back to the Message-Fragment with data.
How can I return back to Message-Fragment from VideoPreview-Activity (opened from Camera-Fragment) and VideoPreview-Activity (opened from VideoTrim-Activity). Also if you can help me about how to return back from ImagePreview-Fragment to Message-Fragment I would be much appreciated. These are seperated questions. Hope you can help.
I open the fragments with adding to backstack addToBackStack(fragmentTag).
Edited : VideoPreview-Fragment must be VideoPreview-Activity and VidoTrim-Fragment must be VideoTrim-Activity. these are the activities. like you see on the image.
