Question by
yujiningning · Apr 20, 2021 at 04:49 PM ·
nameapp
Can the app be renamed with a script?
Is there a way to change the app name by accessing the app's Manifest, Plugins/Android/res/values/string.xml after build?
string pathXml = Application.dataPath+ "/Plugins/Android/res/values/strings.xml";
Debug.Log(pathXml);
XmlDocument doc = new XmlDocument();
doc.Load(pathXml);
XmlNodeList nodes = doc.SelectNodes("resources");
XmlNode character = nodes[0];
character.SelectSingleNode("string").InnerText = name.text;
doc.Save(pathXml);
I thought this, but I wonder if the length is a problem or not. Or if it's an issue that needs to be solved in Android Studio, can you figure out how?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613032524im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Remote for Android not working (solution) 31 Answers
Android how to set version to 1.1 0 Answers
Getting an object's y coordinate 2 Answers
Renaming prefabs or instances doesn't change the other one 0 Answers