开发者

Storing long string resources in a Blackberry application

开发者 https://www.devze.com 2023-04-11 18:11 出处:网络
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

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 acc开发者_JAVA技巧epted way to do this?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号