如何以编程方式重命名 Android 应用程序?

发布于 2024-09-10 05:35:26 字数 105 浏览 1 评论 0原文

一些用户想要将我的 Android 应用程序重命名为其他名称。

因此,我想提供一个文本字段,供他们在我的应用程序中输入新名称。 那么如何以编程方式将我的应用程序名称重命名为新名称?

Some users want to rename my Android app to something else.

So I'd like to provide a text field for them to put in a new name inside my app.
Then how can I programmatically rename my app name to the new name?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生一梦 2024-09-17 05:35:26

您想在应用程序运行时重命名您的应用程序或更改标题吗?

要更改标题,您可以使用活动中的 setTtle() 函数。

如果您想更改 string.xml 中的应用程序名称,您应该有一个名为 app_name 的值。

您必须将其重命名为新值。

为此,您必须解压缩 apk 并修改 xml 文件,然后重新打包。

但这样我认为应用程序必须重新安装。

You want to rename your app or change the title when application is running?

To change the title you have setTtle() funcion from activity.

If you want to change application name in string.xml you should have a value called app_name.

You have to rename it to the new value.

To do so you have to unzip the apk and modify the xml file and then repack it.

But making this way I think application have to be reinstalled.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文