How to force using zxing lib with only my application?

前端 未结 4 1087
抹茶落季
抹茶落季 2020-12-19 20:20

Ok lets say there are 3 different applications which are using zxing lib on the phone. Whenever I want to open zxing with my own application android asks me whether to compl

4条回答
  •  执念已碎
    2020-12-19 20:54

    Android does not allow you to set this on your own. Only a user can set the default application for an action. If on your phone, you want your app to handle that event, then check the Use as default box before selecting your app in the picker.

    For security reasons, Android does not allow you to set your app as the default without user interaction as then a malicious app could tie itself as the default to various events.

提交回复
热议问题