Storing long string resources in a Blackberry application
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.
精彩评论