小编use*_*866的帖子

MonoTouch WIFI SSID

是否可以使用Monotouch连接IPhone连接的WIFI SSID?

我发现有可能检查Wi-Fi状态,但无法检查SSID. https://github.com/xamarin/monotouch-samples/blob/master/ReachabilitySample/reachability.cs 所以有人知道吗?感谢所有评论

iphone ssid xamarin.ios ios captivenetwork

6
推荐指数
1
解决办法
2160
查看次数

Android穿Xamarin消息

我想将来自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)

c# android xamarin

2
推荐指数
1
解决办法
1498
查看次数

标签 统计

android ×1

c# ×1

captivenetwork ×1

ios ×1

iphone ×1

ssid ×1

xamarin ×1

xamarin.ios ×1