gpt4 book ai didi

android-studio - Android Studio在“strings.xml”中将字符串作为资源插入

转载 作者:行者123 更新时间:2023-12-03 17:51:40 31 4
gpt4 key购买 nike

我想将某些字符串添加为文件“ strings.xml”中的资源。

例如这张照片:
enter image description here

我想通过Java将ip1和port1用作“ strings.xml”中的资源。有人知道该怎么办吗?

最佳答案

由于它是已编译的资源,因此无法保存或更改strings.xml中的值。您可以选择其他保存数据的方式,请看以下内容:

https://developer.android.com/guide/topics/data/data-storage.html

关于android-studio - Android Studio在“strings.xml”中将字符串作为资源插入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44532397/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com