0

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"/>

.......

Matrix
  • 11
  • 1
  • 3

1 Answers1

1

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.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491