0

我正在使用属性文件来获取在我的应用程序中调用 Web 服务的 URL。有没有办法通过一些android活动来编辑它。属性文件位于 src/resources 文件夹中。我正在使用 Resourcebundle 访问该文件。

4

1 回答 1

2

You cant edit any file in application pkg file, however you can have following options to achieve this:

  1. Have Preferences, if when you fetched preferences are null, load preferences with that property file, else let it be as it is.
  2. Edit values in preferences.

If you still insist to use a text file only, copy property file to filesystem, and edit that file whatever you want to edit.

于 2012-04-20T11:28:12.763 回答