Reputation: 11
Can we set the content of meta-data tag programmatically i.e without using manifest.Here is a code snippet from manifest
<application
android:allowBackup="true"
android:theme="@style/AppTheme"
>
<meta-data
android:name="com.samsung.android.vr.application.mode"
android:value="vr_only"/>
.......
Upvotes: 0
Views: 3018
Reputation: 1007604
No, sorry. <meta-data>
elements are only set at compile time.
The particular library that you are using that requires the <meta-data>
element might offer some way to configure it via Java code, instead of the <meta-data>
element. The details of this would vary by library.
Upvotes: 1