Highlighted

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

New Here ,
Oct 28, 2015

Copy link to clipboard

Copied

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.

TOPICS
Performance issues

Views

161

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Oct 28, 2015

Copy link to clipboard

Copied

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.

TOPICS
Performance issues

Views

162

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 28, 2015 0

Have something to add?

Join the conversation