reading file in assets or raw folder in Android

前端 未结 3 759
臣服心动
臣服心动 2021-01-24 02:59

I have to ship pdf files along with my application and display them as list and when clicked each one should open in Adobe reader. I have tried placing the pdf files in /assets

3条回答
  •  后悔当初
    2021-01-24 03:42

    I have the same problem, but I should note that this is how I open by resource id

    Uri.parse("android.resource://com.csg.android.myproject/" + R.raw.csgsample);
    

提交回复
热议问题