[TIMOB-2260] Android: Email dialog test case generates runtime errors after selecting an image to attach
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M03 |
Components | Android |
Labels | android, dialog, email, feature |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:15:02.000+0000 |
Updated | 2011-04-17T01:58:34.000+0000 |
Description
1.BaseUI> Views> Email Dialog
2.select an image when prompted to do so.
results, runtime error, chokes on:
E/KrollCallback( 3105): (kroll$4) [104,74708] ECMA Error
evaluating source, invocation: [callMethod Media.(anonymous)
org.appcelerator.titanium.kroll.KrollCallback@44f7ea78], message:
TypeError: Cannot find function isSupported in object
[Ti.UI.EmailDialog]. (app://examples/email_dialog.js#16)
E/KrollCallback( 3105): org.mozilla.javascript.EcmaError:
TypeError: Cannot find function isSupported in object
[Ti.UI.EmailDialog]. (app://examples/email_dialog.js#16)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollCallback( 3105): at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollCallback( 3105): at
script(app://examples/email_dialog.js:16)
E/KrollCallback( 3105): at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollCallback( 3105): at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollCallback( 3105): at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollCallback( 3105): at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollCallback( 3105): at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
E/KrollCallback( 3105): at
org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:97)
E/KrollCallback( 3105): at
android.os.Handler.handleCallback(Handler.java:587)
E/KrollCallback( 3105): at
android.os.Handler.dispatchMessage(Handler.java:92)
E/KrollCallback( 3105): at
android.os.Looper.loop(Looper.java:123)
E/KrollCallback( 3105): at
org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)
I/dalvikvm( 3105): Jit: resizing JitTable from 8192 to 16384
Thomas, assigning back to you so you can reclassify this on the test report. A new method was added in iPhone in this commit https://github.com/appcelerator/titanium_mobile/commit/cd60010df701b2d14a08f5f359d2d90a0ea81313"> cd60010df701b2d14a08f5f359d2d90a0ea81313 and a feature ticket wasn't added for Android.
Please assign this back to me after updating the report.
ignore the original steps, bug was misreported. Test (BaseUI> Views> Email Dialog) has changed to include the following code block, which currently causes a crash on android (he says parroting Don above).
if (!emailDialog.isSupported()) {
opening again. Been working on it since yesterday. The package manager is not giving me good information that the ACTION_SEND intent has handlers.
(from [3c4ab74e03c99b701bf9f5c5672152fa26ce4af8]) [#2260 state:fixed-in-qa] You must use a device and an emulator or an emulator with and without an email client to verify this feature. A stock emulator should return false because there is indeed no email client configured. You can add K9 to the emulator if you want an email client, but it's easier to use a device that's configure for email. https://github.com/appcelerator/titanium_mobile/commit/3c4ab74e03c99b701bf9f5c5672152fa26ce4af8"> https://github.com/appcelerator/titanium_mobile/commit/3c4ab74e03c9...
Failed on device (1.5) (via kitchen sink example ) BaseUI> Views> Email Dialog. Titanium SDK version: 1.5.0 (11/24/10 12:05 c0aff27)
Location:
[16,0] app://examples/email_dialog.js
Message:
TypeError: Cannot find function isSupported in object [Ti.UI.EmailDialog].(app://examples/email_dialog.js#16)
Matt, I just reverified with a newer build, 735911a6fa4c85f450dc, but it should be in the one you pulled. It might be that it didn't push successfully to the phone.
resolved android 1.6/2.1 Titanium SDK version: 1.5.0 (12/03/10 10:38 33c2058), KS