android新人求助,要在設定中打開wifidisplay。
代碼已經import android.provider.Settings;
但是報錯Cannot resolve symbol 'WIFI_DISPLAY_ON'。
函式中使用了
Settings.Global.putInt(getContentResolver(),Settings.Global.WIFI_DISPLAY_ON, 1);
Intent intent = new Intent(Settings.ACTION_WIFI_DISPLAY_SETTINGS);
startActivity(intent);
搜了很多文,都是這么寫的,但是我這用的時候,就一直
報錯Cannot resolve symbol 'WIFI_DISPLAY_ON'。
請問有沒有大牛幫幫忙,這個要怎么才能搞定?謝謝。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/95603.html
標籤:Android
