c#和andriod中的任何wifi监听器类 [英] Any wifi listener class in c# and andriod

查看:106
本文介绍了c#和andriod中的任何wifi监听器类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中获取wifi监听器类。

我想使用c#和andriod

how to get wifi listener class in c#.
I would like to display all ipaddresses of wireless network using c# and andriod

推荐答案

你忘了提及你是否使用Xamarin。 因为您无法在C#或.NET框架中本地开发Android应用程序。所以,我认为C#就是说你正在开发Xamarin框架中的应用程序。



WiFi是您可以在Android设备中用于连接到Internet或连接网络的设备的网络模式; 调制解调器的?



如果您只想获取代码以确定WiFi是否可用,请阅读这个Xamarin线程 [ ^ ]。它将为您提供基本代码,以确定可用的网络类型。



如果您想以编程方式连接到Wi-Fi服务,那么这是不可能的。设备请求用户手动连接到WiFi。阅读此Xamarin论坛帖子 [ ^ ]了解如何打开设置页面以便用户可以连接到WiFi。



编辑



我忘记添加 Java链接 [ ^ ] for Android收听WiFi连接。
You forgot to mention whether you are using Xamarin or not. Because you cannot develop Android applications natively in C# or .NET framework. So, I would assume by C# you meant to say that you are developing the application in Xamarin framework.

WiFi is the network mode that you can use in Android devices to connect to Internet or to the network-connected devices; modem?.

If you just wanted to get the code to determine whether WiFi is available or not, please read this Xamarin thread[^]. It would give you basic code to determine what kind of networks are available.

If you wanted to connect to the Wi-Fi service programmatically, then it is impossible. Device requests user to manually connect to WiFi. Read this Xamarin forum post[^] to learn how to open the settings page so that user can connect to the WiFi.

Edit

I forgot to add Java link[^] for Android to listen to WiFi connections.


这篇关于c#和andriod中的任何wifi监听器类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆