Barcode module and i18n on Android crashes

You must Login before you can answer or comment on any questions.

The barcode module in Titanium crashes when an i18n/en/strings.xml file is pressent in root of an application. Everything works fine when the file is not pressent. The problem can be reproduced:

Create a new Mobile App select the Single Window Template (it will create the i18n folder). Copy the content of the Example app.js from the module folder:

/Users/{user}/Library/Application Support/Titanium/modules/android/ti.barcode/2.3.0/example/app.js

Run the app in Android simulator. Click the Scan Code button and the app will crash

Log:

E/TiApplication(  580): (main) [2142197,2172240] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to resume activity {dk.eg.crosspad.src.test/com.google.zxing.client.android.CaptureActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x7f09006b; Titanium 2.0.1,2012/04/12 16:36,999c68a
E/TiApplication(  580): java.lang.RuntimeException: Unable to resume activity {dk.eg.crosspad.src.test/com.google.zxing.client.android.CaptureActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x7f09006b
I am running Titanium Studio 2.0.1 and SDK 2.0.1 GA2 and Android 2.3.3

Am I doing anything wrong? or is this a bug?

1 Answer

I've tested this issue in android device. I've logged a jira ticket for the barcode module. Here is the jira link https://jira.appcelerator.org/browse/TIMOB-9184

Your Answer

Think you can help? Login to answer this question!