Skip to main content
Participant
October 28, 2015
Question

[Air for Android]Can't find a ".properties file" in java.util.ResouceBundle.getBundle()

  • October 28, 2015
  • 0 replies
  • 220 views

hello.

"src/com/xxxx/test.properties"

Place the above file, I want to read with the following code.

-----

try {

     ResourceBundle rb = ResourceBundle.getBundle("com.xxxx.test");

} catch (Exception e) {

     e.printStackTrace();

}

-----

In the application made of pure java, the same code works without a problem.

However, it is described in the ane, following MissingResourceException will occur and to air for android app.

-----

W/System.err(24245): java.util.MissingResourceException: Can't find resource for bundle 'com.xxxx.test_ja_JP', key ''

W/System.err(24245): at java.util.ResourceBundle.missingResourceException(ResourceBundle.java:239)

-----

Is this a bug?

Can I read it, if change the location of the resource?

Please tell me if any solutions.

==============

Air SDK 19.0.0.213

android 4.2.2

==============



thanks.

This topic has been closed for replies.