[英]how to show android wifi setting when wifi is off in unity3d?
I have a online android game , I want my game check WIFI and if WIFI is off automatic open android WIFI settings . 我有一个在线android游戏,我希望我的游戏检查WIFI,如果WIFI处于关闭状态,则会自动打开android WIFI设置。 How can send parameter to Android core till show WIFI setting ? 如何将参数发送到Android Core直到显示WIFI设置?
Try to make Unity-Android plugin. 尝试制作Unity-Android插件。 then you can check WIFI and if WIFI is off automatic open android WIFI settings 那么您可以检查WIFI,如果WIFI已关闭,则会自动打开android WIFI设置
http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html
尝试
startActivityForResult(new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS, 0);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.