How to create access point programmatically

前端 未结 3 1116
故里飘歌
故里飘歌 2021-01-31 19:22

I\'ve written the code to create an access point for android devices. I\'ve tested on both emulator and real device.But it doesn\'t work. Where did i get wrong?

         


        
3条回答
  •  悲&欢浪女
    2021-01-31 20:09

    With your method of exploiting undocumented APIs using reflection, things might not work well in all scenarios. Well, you can try adding these in your manifest file and give a try.

    android.permission.ACCESS_WIFI_STATE
    android.permission.CHANGE_WIFI_STATE
    android.permission.WRITE_APN_SETTINGS 
    

提交回复
热议问题