Programmatically find whether installing from unknown sources is allowed

后端 未结 3 1340
慢半拍i
慢半拍i 2020-12-30 04:38

I need to find whether the current Android device allows to install apps from sources other than the market. This option appears in the settings UI under Applications named

3条回答
  •  我在风中等你
    2020-12-30 05:15

    This setting is called "INSTALL_NON_MARKET_APP" (click for documentation).

    (I basically already typed the question when I found the answer hidden deep within documentation, with a different name, so I decided to post the question and self answer, since it's not trivial.)

提交回复
热议问题