title: Change package manager application info meta data in android
body: <p>I would like to change the value of a meta-data in the AndroidManifest.xml file :
  </p>
  
  <p>I am using the following code :</p>
  
  <pre><code>ApplicationInfo applicationInfo = packageManager.getApplicationInfo(
                  activity.getPackageName(), PackageManager.GET_META_DATA);
  applicationInfo.metaData.putString("dataName", "2");
  </code></pre>
  
  <p>But the applicationInfo is not saved into the package manager. When packageManager.getApplicationInfo() is called afterwards, I get the old value.</p>
  
  <p>I didn't see a setApplicationInfo() method, how can I proceed ?</p>
  
  <p>Thanks</p>