I understand the AndroidManifest.xml is prepared at compile time and not runtime, is there any other way to populate metadata in the manifest without relying on hard coded strings? Maybe populating it somehow at compile time?
I currently have the following on my AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@drawable/dt_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<meta-data
android:name="DataPath"
android:value=""
/> ...
I don't want to hard code the value and instead populate it somehow with the results from:
Environment.getExternalStorageDirectory()
Another application will later retrieve the value of DataPath by utilizing the ApplicationInfo's metaData property.