Is it possible to hide some application in Intent AppChooser?

前端 未结 2 456
后悔当初
后悔当初 2020-12-20 23:58

What I want is to hide WebBrowser when opening PDF file in my application. I would like to show only PDF reader application, if not have then display alert message.

2条回答
  •  礼貌的吻别
    2020-12-21 00:38

    I think you have to try to open PDF Reader (like Abode one) using explicit intent, catching the exception then display your alert message.

提交回复
热议问题