是否可以使用Monotouch连接IPhone连接的WIFI SSID?
我发现有可能检查Wi-Fi状态,但无法检查SSID. https://github.com/xamarin/monotouch-samples/blob/master/ReachabilitySample/reachability.cs 所以有人知道吗?感谢所有评论
我想将来自Android Wear设备的消息发送到连接的手机.Android智能手机应用程序是用本机Java编写的.Wear-Application是用C#用Xamarin编写的,不能正常工作.这是我到目前为止所得到的:
public class MainActivity : Activity, IMessageApiMessageListener,
IGoogleApiClientConnectionCallbacks, IResultCallback
{
private IGoogleApiClient mApiClient;
private SensorManager _SensorManager;
private Sensor _Gyroscop;
private static String WEAR_MESSAGE_PATH = "//message";
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
// Set our view from the "main" layout resource
SetContentView (Resource.Layout.Main);
var v = FindViewById<WatchViewStub> (Resource.Id.watch_view_stub);
v.LayoutInflated += delegate {
};
if(_SensorManager == null) {
_SensorManager = (SensorManager)GetSystemService(SensorService);
}
SensorListener s = new SensorListener();
_Gyroscop = _SensorManager.GetDefaultSensor (SensorType.Gyroscope);
_SensorManager.RegisterListener (s, _Gyroscop,SensorDelay.Normal);
s.SensorChangedEvent += delegate(SensorEvent e) …
Run Code Online (Sandbox Code Playgroud)