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. Command to run Android Application via command line
Forum Updated to NodeBB v4.3 + New Features

Command to run Android Application via command line

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.2k Views 1 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.
  • R Offline
    R Offline
    robert2014
    wrote on last edited by
    #1

    Hello,

    I need to automate the build, deployment and execution of tests on an Android device.
    What I got so far is the build and deployment, for which I took the following instructions from QtCreator's compiler output:
    @
    qmake.exe -spec android-g++
    mingw32-make
    mingw32-make.exe INSTALL_ROOT=android-build install
    androiddeployqt.exe --output android-build --deployment bundled --install --device dc522c8c
    adb.exe -s dc522c8c pull /system/bin/app_process %project_path_win%/app_process
    adb.exe -s dc522c8c pull /system/lib/libc.so %project_path_win%/libc.so
    @

    Does anybody know, which command to use to run the application?
    And why does adb.exe copy these two files from the device? The deployment works also without the last two instructions.

    Greetings,
    Robert

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xander84
      wrote on last edited by
      #2

      you should be able to just run the app with adb?
      @
      adb shell am start -n com.package.name/.QtActivity
      @
      use your package name of course :)

      and I think the files are pulled if the app is already running it need to be uninstalled first, I don't know what happens if you try to install an app with the same package name without uninstalling the old one.. might get an error from ado or it will just overwrite it, you might test it yourself.

      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