android: open a pdf from my app using the built in pdf viewer

前端 未结 9 1728
温柔的废话
温柔的废话 2020-11-29 04:46

This was my original question:

I want to be able to open a pdf file in my app using the android\'s built in pdf viewer app, but i dont know how to

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 05:20

    AFAIK, Adobe has not documented any public Intents it wants developers to use.

    You can try an ACTION_VIEW Intent with a Uri pointing to the file (either on the SD card or MODE_WORLD_READABLE in your app-local file store) and a MIME type of "application/pdf".

提交回复
热议问题