I have put a pdf file inside my app `raw/my_pdf.pdf` to prevent to be copied and want to open it with external app in my tablet

here is what I tried : 

```
public  void loadDocInReader(View v)
            throws ActivityNotFoundException, Exception {

        try {
            Intent intent = new Intent();

            intent.setPackage("com.foobnix.pro.pdf.reader");
            intent.setDataAndType(Uri.parse("raw/my_pdf.pdf"), "application/pdf");

          startActivity(intent);

        } catch (ActivityNotFoundException activityNotFoundException) {
            activityNotFoundException.printStackTrace();

            throw activityNotFoundException;
        } catch (Exception otherException) {
            otherException.printStackTrace();

            throw otherException;
        }
    }

```

this method launch the external app I want but with no pdf file just a blank page

also I know that it is possible to get it as inputstream : 

```
InputStream raw = getResources().openRawResource(R.raw.my_pdf)

```

but how to open it with my specified app

is there any way to fix that