Android:

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

Titanium Studio and SDK 1.7, with Android 2.1 (or Titanium Developer 1.2.2 with SDK 1.6).

Something as simple as:

var result = myFile.write(someText);
if (!result) {
...
}
on Android gives me the message:
----- Titanium Javascript Warning -----
E/TiJSError(  514): (kroll$2: app://fileselect.js) [1,719924] - In file:///android_asset/Resources/export.js:279,0
E/TiJSError(  514): (kroll$2: app://fileselect.js) [0,719924] - Message: RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
E/TiJSError(  514): Rhino runtime detected object undefined of class org.appcelerator.kroll.KrollProxy$1 where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.
It works fine on iOS.

It's the if (result) that seems to be causing Rhino to complain.

Now, further investigation shows that result is undefined, even though the docs say it should be a boolean. (I know: serves me right for looking to the documentation for any sort of accuracy.)

My quick questions are:

(1) Is anyone else seeing this sort of thing?

(2) Sometimes it gets reported only to the console, and sometimes it shows up as a warning dialog. Are these dialogs generated only when building non-release packages? If so, I won't worry about it too much.

— asked 2 years ago by K T
1 Comment
  • Er, not quite sure about that subject. It was Android: "RHINO USAGE WARNING".

    Guess the Q&A's code is a little sketchy with formatting.

    — commented 2 years ago by K T

Your Answer

Think you can help? Login to answer this question!