Is there any way to implement a Xamarin App in a mobile phone through Bluetooth?

KradasboKradasbo CLMember ✭✭

I know this question will probably was already ask by somebody, but, is there any way to implement apps for testing through bluetooth in your mobile phones?, so to say, for example debug?, or at least for release? (i.e. without the need of a cable or an emulator)

Thanks in advance

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    You can remote debug your Xamarin app through WiFi if your PC and Tablet are on the same network.

    You just need to tell the ADB to access the device to switch modes and what port to listen on.

    Connect the tablet by cable.
    Then connect the ADB to the IP address. (see batch file below)
    Then disconnect the cable.

    I use a batch file on my desktop to make it easy. You may need to change the path to your Android tools: I moved mine to the d drive but that's not default. You will need to change the IP address in the file to match your device.

    d:
    cd D:\Android\android-sdk\platform-tools\
    adb tcpip 5555
    @echo off
    echo Unplug usb you have 10 seconds!
    @echo on
    Timeout /t 10 >nul
    adb connect 192.168.0.123:5555
    
    @echo off
    echo exiting app in 30 seconds!
    @echo on
    Timeout /t 30 >nul
    
Sign In or Register to comment.