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

When adding an extra activity declaration to AndroidManifest.xml then changing anything in the manifest will cause all activities to have the same app name

    XMLWordPrintable

Details

    Description

      When adding an extra activity declaration to AndroidManifest.xml then changing anything in the manifest will cause all activities to have the same app name. This is because it will replace all instances of android.app.lib_name to match the run entry even if they are already different.

      To reproduce add the following to the AndroidManifest.xml:

      <activity android:name="com.mycompany.myapp.TestActivity" android:label="MyTest" android:exported="true" android:theme="@style/Theme.AppCompat">
                      <intent-filter>
                          <action android:name="android.intent.action.MAIN"/>
                          <category android:name="android.intent.category.LAUNCHER"/>
                      </intent-filter>
                  <meta-data android:name="android.app.lib_name" android:value="test"/>
                  </activity>
      

      before or after the existing activity and then switch to the General view and change the Run entry back to the other application. Switching back to the XML Source will show that it has changed both entries then rather than just the one.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes