Xavier, Thanks for that clarification. The situation that I'm talking about is in fact within a 3rd party library.
After ensuring that the properties files are correctly placed inside the .apk file, I still get an error when the 3rd party code tries to access the ResourceBundle. I've presented the source code, listing of the .apk file and the error from the log in comments on Issue 173: http://code.google.com/p/android/issues/detail?id=173 I'm hoping that there is something I'm missing. Otherwise it looks like ResourceBundles are not working in 0.9. cheers Jan On Sep 17, 5:49 am, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote: > TheResourceBundlesupport is merely there so that 3rd party libraries > relying on it aren't broken. > > For Android applications, you should be using the res and assets > folders with the android APIs. > > Xav > > On Tue, Sep 16, 2008 at 8:38 AM, CAT > > <[EMAIL PROTECTED]> wrote: > > > 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 withResourceBundleand > >> classLoader.getResourceAsStream(). > > >> 2008/9/15 janb <[EMAIL PROTECTED]> > > >> > Hi, > > >> > I've been trying to makeResourceBundlelookups 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 gotResourceBundleworking 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 [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 -~----------~----~----~----~------~----~------~--~---

