android determining filepath and share intent

view story

http://stackoverflow.com – hey I am trying to add a share button to my app which takes the screenshot and then share ist via facebook etc. I had search the net so that stackoverflow too there are many threads related with this issue but I couldnt figure that out yet. What is confusing me is .. In every example the images filepath hardcoded I did like that but it is not useful and dynamic , what I am trying to do is to take the screenshot of that moment and then share it.. But when I give the filepath by myself it just takes that picture from a folder and share that public void clickButton(View v){ Intent shareInt (HowTos)