I would like to change the value of a meta-data 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 the applicationInfo is not saved into the package manager. When packageManager.getApplicationInfo() is called afterwards, I get the old value.
I didn't see a setApplicationInfo() method, how can I proceed ?
Thanks