Android - Settings.ACTION_DEVICE_INFO_SETTINGS crashes on android 4.1.1

前端 未结 1 1362
悲哀的现实
悲哀的现实 2021-01-20 22:00

I have an app where users can click on certain buttons in my app and it will launch specific settings page from Android to the user. I uses the android API from their websit

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-20 22:29

    android api doc say:

    In some cases, a matching Activity may not exist, so ensure you safeguard against this.
    

    so you should check this intent or catch this exception yourself.

    0 讨论(0)
提交回复
热议问题