简体   繁体   中英

Can we change Meta data in Manifest file through java code in android

Is there any way to change the meta data in manifest file from java code directly. I am using admobs ids which is connect with firebase and the banners ads and interstial ads ids put on firebase and get to the program now app_id is in manifest file I want to change it from firebase.thanks in advance.

The information from your manifest file is baked into the Android app at compile/build time. That means that by the time the code of your Android app runs, the manifest file no longer is available.

If you want to create different variants of your manifest file, you'll have to do that from outside the Android app, before building the various apps.

Also see the Android documentation on:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM