I want to open PDF file from locally and then I show the PDF content then if user copy any text then I want to get the copied text. so please suggest me any API or solution related to this problem and the challenging task is to copy text and get it that I want. I have use this code also but its open PDF by using internal app like adobe reader so I don't know that adobe reader give me permission to access copy text.
File file = new File(Environment.getExternalStorageDirectory() + "/test.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"application/pdf");
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);