Clear Default Android Application

后端 未结 2 1932
清歌不尽
清歌不尽 2021-01-25 20:29

Can we know that user has set default application for particular action? i. e. android.intent.action.CALL_PRIVILEGED

Suppose I my application also provide called on act

2条回答
  •  梦毁少年i
    2021-01-25 21:04

    Can we know that user has set default application for particular action? i. e. android.intent.action.CALL_PRIVILEGED

    I do not think that there is an easy way to do this. Calling getPreferredActivities() on PackageManager, and sifting through the List you get back to try to find a match for your Intent might work.

提交回复
热议问题