I have already searched a lot on this topic but I could not able to find the proper answer. I kindly request to not mark it with duplication without answer.
I have two activities in my android application.
1]. List of PDF files available on server on click of any of that file start downloading and show progress bar till the time downloading is finished. After downloading finish pop up with two button [view] or [cancel] is opened. on click of View open second activity passing pdf file path as a parameter.
2]. Inside this second activity I want to open PDF file passed with intent in my application's activity only.
I don't want to use any brower , drive , file manager or any external android application.
How can I achieve this, Please provide me appropriate solution. Thank you in advance :)