Problems with Wifi direct between Windows and Android RRS feed

  • Question

  • We want to establish a connection via Wifi Direct between a Windows service and an app for Android. It's a hard job because documentation is thin and even the example from Microsoft doesn't work stable.

    Our main questions are:
    - why does it take more than 
    30 seconds until the connection is established succesful? This is the same with the example from Microsoft together with an Android device.
    - why does the f
    unktion „fromIdAsync“ fail so often? It may take up to 50 tries until it works and we can't find out why or how to change that. Our call looks like that:

                 logger.Debug("fromIDAsync " + _pairdevice.DeviceInfo.Id);

                 var device = WiFiDirectDevice.FromIdAsync(_pairdevice.DeviceInfo.Id);

                 device.Completed = FromIdAsyncCompleted;

    This is where we get the callback:

    private void FromIdAsyncCompleted(IAsyncOperation<WiFiDirectDevice> asyncInfo, AsyncStatus asyncStatus)


                WiFiDirectDevice wfdDevice = asyncInfo.GetResults();

                if (asyncStatus.Equals(AsyncStatus.Error)) {

                    logger.Debug("fromIdAsync completed with error!");


    We only get "error" as status and we are happy for every hint.

    Wednesday, November 8, 2017 6:04 PM

All replies

  • Hi Martin Hierhager,

    Here is the official forum for Developing Universal Windows apps, and we are focusing on developing universal windows apps issue. your issue is about connecting Windows service and an app for Android. We don't support it here, thanks for your understanding.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Thursday, November 9, 2017 8:43 AM