Android Lollipop - WiFi Hotspot setWifiApEnabled() get InvocationTargetException

前端 未结 5 1846
爱一瞬间的悲伤
爱一瞬间的悲伤 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:39

    You need to add these permissions to your AndroidManifest.xml:

    
    
    
    
    

    It works for me.

提交回复
热议问题