Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Connect Android Device with WiFi from Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

Connect Android Device with WiFi from Qt Creator?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 2.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xpress_embedo
    wrote on 23 Feb 2020, 00:32 last edited by
    #1

    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.

    Settings

    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.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xpress_embedo
      wrote on 23 Feb 2020, 17:21 last edited by
      #2

      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.

      1 Reply Last reply
      4
      • 8 Offline
        8 Offline
        8Observer8
        wrote on 29 Mar 2024, 13:46 last edited by 8Observer8
        #3

        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.

        9e8bf837-f060-4450-842d-f64ec69fe70a-image.png

        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 offline

        E:>adb tcpip 5555
        error: more than one device/emulator

        E:>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)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved