How to write AndroidManifest.xml?

I have to customize AndroidManifest.xml, How can I reference another xml?For example,the following code in and AndroidStudio project or Eclipse+ADT project:

In this example, android:label reference the string.xml.

<application android:label="@string/app_name"
                 android:allowBackup="false"
                 android:icon="@drawable/icon"
                 android:name="org.cocos2dx.lua.MyApplication">

Defold ships with a template manifest located in builtins->manifests->android, and you are free to reference a custom manifest in game.project.

I know this few months ago,What I want to know is how to reference another xml/resource in AndroidManifest.xml, for example, My app name defined in string.xml, and referenced in AndroidManifest.xml

If you use a native extension, you can add your data files like so:


(I think you need to have at least an empty .appmanifest to make it trigger a custom build with R.java et.a l)

Or, perhaps you can use “Bundle Resources”, to put assets into your app bundle? I’m not sure if that’s possible?

E.g.

[project]
bundle_resources = /res

And then put your assets in /res/armv7-android/assets/mydatafile.xml

3 Likes