breautek commented on issue #1559:
URL: 
https://github.com/apache/cordova-android/issues/1559#issuecomment-1474222804

   > @breautek
   > 
   > So the AndroidManifest.xml file doesn't have `android:theme` at all when I 
build without it set in the config.xml file. The themes.xml in res/values looks 
exactly like your copy.
   
   Then something must be overwriting it...
   
   I'm guessing the `custom-config-file` is overwriting the entire tag.
   
   So perhaps you still need to explicitly configure it when you use the 
`custom-config-file` plugin to change the `<activity>` tag.
   
   ```xml
   
   <custom-config-file parent="/*" target="AndroidManifest.xml">
               <application android:allowBackup="false" 
android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" 
android:label="@string/app_name" android:supportsRtl="true">
                   <activity 
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" 
android:exported="true" android:label="@string/activity_name" 
android:launchMode="singleTop" android:name="MainActivity" 
android:theme="@style/Theme.App.SplashScreen" 
android:windowSoftInputMode="adjustResize">
                       <intent-filter android:label="@string/launcher_name">
                           <action android:name="android.intent.action.MAIN" />
                           <category 
android:name="android.intent.category.LAUNCHER" />
                       </intent-filter>
                   </activity>
                   <meta-data android:name="io.fabric.ApiKey" 
android:value="xxxxxxx" />
               </application>
           </custom-config-file>
   ```
   
   If that works, you may also want to compare against the [cordova default 
AndroidManifest.xml](https://github.com/apache/cordova-android/blob/master/templates/project/AndroidManifest.xml)
 and to see if there is anything else that you're missing...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to