I used a view pager in xml of main activity and item container xml have all the details of the view pager. I used Media player to play the video but I want to make a share button in this such that the user can share the video which is running at that moment . I have made a Array List in which I have stored various URLS . I want to fetch the URL which is active at that moment such that I can share it
Source: Android Studio Questions