On Sat, May 5, 2012 at 12:33 PM, Jim Graham <[email protected]> wrote: > On Sat, May 05, 2012 at 12:12:54PM -0400, Mark Murphy wrote: >> On Sat, May 5, 2012 at 12:09 PM, Kostya Vasilyev <[email protected]> wrote: >> > Or you could just use 'raw' resources. >> > >> > They allow for resource qualifiers (res/raw, res/raw-ru, res/raw-de, etc.) >> > and text files placed there are compressed. >> >> Have you had much luck loading those into a WebView, though? I'm >> assuming that's what the OP is planning. > > What I'm planning is this (part of my assetsview.java, which is passed, > via the Intent, an index indicating which file to display):
You may as well then use raw resources, as at least Android handles the locale choice for you. I assumed (incorrect, as it appears) that you were going with HTML and a WebView, and assets appear simpler to use in that scenario. String resources would be even easier (just setText(R.string.help)), but editing a long string resource can be a pain. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

