Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23712

Run command line arguments field does not work for Android

    XMLWordPrintable

Details

    • Android
    • 2020wk32, 2020wk34, 2020wk36

    Description

      In a project's run settings, the command line arguments field does not do the intended behavior. When arguments are specified, they are not passed to the application. This seems to be something missing from androiddeployqt, and also from Qt itself.

      It seems Qt doesn't support passing command line arguments to an Android app or it cannot yet retrieve them because Android has a different way to pass those arguments via intent extras (see https://stackoverflow.com/a/22532487.) 

      The intent way to pass command-line arguments is not recommended in non-debug mode but was having issues for Qt 5.14+, but it has been already fixed in QTCREATORBUG-24155.

       

      The arguments could be passed through the AndroidManifest.xml also with the following tag in <activity> section:

      <meta-data android:name="android.app.arguments" android:value="arg1 arg2 arg3"/>

      Attachments

        Issue Links

          Activity

            People

              assam Assam Boudjelthia
              assam Assam Boudjelthia
              Santtu Ahonen Santtu Ahonen
              Rami Potinkara Rami Potinkara
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: