Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Debug Android app on Real Device

    Mobile and Embedded
    3
    5
    2434
    Loading More Posts
    • 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.
    • C
      clouca last edited by

      Hello to everyone. I am using Qt 5.1.1 and android sdk. Until now i can debug my apps using android sdk. I want to debug my application on my Real android device which is a tablet. How can i setup Qt to run in debug at my real device to use breakpoints and make a real debug of my application.
      Thanks

      1 Reply Last reply Reply Quote 0
      • M
        minds last edited by

        Turn on USB debugging : Settings->Applications->Development->USB debugging. You also need to download Google USB Driver (for ADP) or the OEM USB Drivers.

        To verify your phone is connected use "adb devices" in cmd.

        1 Reply Last reply Reply Quote 0
        • C
          clouca last edited by

          how can i set my phone as deployment target ?

          1 Reply Last reply Reply Quote 0
          • M
            minds last edited by

            I updated my post setting the target is not on QT, sorry. Just run your program after you have verified that your phone is connected.

            1 Reply Last reply Reply Quote 0
            • A
              ahmad88me last edited by

              Once you connect your phone to the computer, using the terminal or the cmd navigate to the sdk-directory/platform-tools then type
              in linux:
              @./adb devices@
              in windows:
              @adb devices@
              you should get a list of android devices, if you did not find your device there try to unplug it and plug it again, at the end you must see you device when you run the command,

              1 Reply Last reply Reply Quote 0
              • First post
                Last post