在 Blackberry 应用程序中存储长字符串资源
为 Blackberry 应用程序存储很长的字符串资源的最佳方法是什么?仅仅在某个地方使用 static Final 变量是很难看的,因为这是一个巨大的 100 行字符串,而 Java 没有多行字符串语法。我应该将其粘贴在文本文件中并将其与我的应用程序捆绑在一起,还是有一种可接受的方法来做到这一点?
What's the best way to store a very long string resource for a Blackberry app? Just using a static final variable somewhere is ugly because this is a huge 100 line string, and Java has no multi-line string syntax. Should I just stick it in a text file and bundle that with my app, or is there an accepted way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
如果您将 Eclipse 与 Blackberry 插件一起使用,它有一个资源编辑器,您可以使用它向 Blackberry 项目添加字符串资源。然后,您可以在需要时使用
StringProvider
类在运行时加载字符串。If you are using Eclipse with the Blackberry plugin, it has a Resource editor that you can use to add string resources to a Blackberry project. You can then load the strings at runtime when needed using the
StringProvider
class.