2 interesting questions for that 1. Should ResourceBundles even be used when Android seems to provide an alternative approach? (strings.xml) 2. Does this work for another locale than en_US? (as the mechanism from 1. doesn't yet)
Cheers, Werner On Sep 15, 7:35 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Place your .properties file inside the /src directory of your app, so that > the build process can put it inside your .apk. > This should then allow you to use it with ResourceBundle and > classLoader.getResourceAsStream(). > > 2008/9/15 janb <[EMAIL PROTECTED]> > > > > > Hi, > > > I've been trying to make ResourceBundle lookups work now that bug #173 > > is fixed: > > >http://code.google.com/p/android/issues/detail?id=173&can=1&q=Resourc... > > > However, ResourceBundle.getBundle("com/acme/foo") always fails with a > > MissingResource exception. > > > I'm definitely copying the *.properties files into the classes > > directory from where the dx compiler makes the classes.dex file, but I > > haven't been able to find a way to confirm if the properties files are > > actually inside the generated classes.dex file. > > > Is there a way to do that? Is that where they are supposed to go? > > > Has anyone else got ResourceBundle working in the 0.9 beta release, > > and if so, what is your sekrit sauce recipe? > > > cheers > > Jan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---