Révision 06a15704 TestXamConnections/TestXamConnections.Android/Connection/InternConnectionService.cs

Voir les différences:

TestXamConnections/TestXamConnections.Android/Connection/InternConnectionService.cs
50 50
            return Task.FromResult(true);
51 51
        }
52 52

  
53
        public Task<bool> SendCommand(string command)
53
        public Task<bool> SendCommand(IConvertible command)
54 54
        {
55
            Intent launchIntent = appContext.PackageManager.GetLaunchIntentForPackage(command);
55
            Intent launchIntent = appContext.PackageManager.GetLaunchIntentForPackage(command.ToString());
56 56
            if (launchIntent != null)
57 57
            {
58 58
                appContext.StartActivity(launchIntent);

Formats disponibles : Unified diff