Android Lollipop - WiFi Hotspot setWifiApEnabled() get InvocationTargetException

前端 未结 5 1868
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-10 11:12

I\'m using in the app

setWifiApEnabled()

from Hidden API (access by reflection). In some older phone it´s working (also with Samsung Galaxy S3,

5条回答
  •  生来不讨喜
    2021-02-10 11:32

    I had the same problem.

    Added android.permission.WRITE_SETTINGS to the manifest file and it worked. Try this.

提交回复
热议问题