I would like to change the metadata value in the AndroidManifest.xml file:
I am using the following code:
ApplicationInfo applicationInfo = packageManager.getApplicationInfo( activity.getPackageName(), PackageManager.GET_META_DATA); applicationInfo.metaData.putString("dataName", "2");
But applicationInfo is not saved in the package manager. When packageManager.getApplicationInfo () is called later, I get the old value.
I have not seen the setApplicationInfo () method, how can I continue?
thanks
source share