Connect Android Device with WiFi from Qt Creator?
-
Hello All,
I am new to Qt and want to get started with it for Android application development.
I have installed Qt 5.14.1 in Ubuntu 18.04.4 LTS inside Virtual Box.
I want to debug my application directly in phone using WiFi, is it possible?
I saw one where it is mentioned that it is possible, but I don't know how?
I have installed and configured Android SDK and NDK properly.PS: I have already installed ADB Wireless Plugin Android Studio, but I am not able to understand how to use this.
Can someone please help me how to do this?
Thanks in advance.
-
Finally, I am able to solve this problem.
First, we have to make sure that USB Debugging and Developer Options are enabled.
Use the following command to check the connected devices.adb devices
This should list your connected android phone. And after this use the following command to connect over WiFi (PC and Android phone should be connected on the same network)
adb tcpip 5555 adb connect <device ip address>
This works fine in Virtual Box.
-
I enabled "USB debugging" and "Wi-Fi debugging". But how does the "Set up Wi-Fi" button work? I tried to press it, but when I disconnect the USB cable, the connection is lost.
I tried the commands from the post above but it doesn't work:
E:>adb devices
List of devices attached
099284036J008264 device
192.168.1.65:5555 offlineE:>adb tcpip 5555
error: more than one device/emulatorE:>adb connect 192.168.1.65:5555
cannot connect to 192.168.1.65:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)