[TIMOB-12651] Android: Standardize error reporting in callbacks and events
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-29T21:38:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 07 API, 2013 Sprint 07 |
Components | Android |
Labels | api |
Reporter | Ingo Muschenetz |
Assignee | Ingo Muschenetz |
Created | 2013-02-08T22:32:22.000+0000 |
Updated | 2017-03-22T00:16:56.000+0000 |
Progress tracker: https://github.com/BlainHamon/titanium_mobile/compare/timob-12651
Another test case to verify the new events are working correctly: 1. Run the following code and click 'launch camera'
2. After the camera launches, push cancel 3. Look at logcat for results Expected Result:
Actual results: Runtime error since e is undefined before this change.
Another test case as a sanity check to make sure events aren't broken after this change: 1. Run the following code and click on 'play sound'
2. After the sound completes, look at logcat and you should see the following:
After looking through the docs, there are some places where Android doesn't generate error issues even though it should have.
Looks like the 'heading' event from geolocation module, and 'completed' event from sound proxy doesn't have have the error codes.
Furthermore, Ti.Media.VideoPlayerProxy has the following issues: * Error event is missing code, success, and error. (MW, MW and Android documentation) * Complete event is missing code, success, and error. (Android, iOS, MW, and all documentation)
https://github.com/appcelerator/titanium_mobile/pull/4034
test case with video player to verify that it has the correct event properties after the change:
Expected Result:
Pull https://github.com/appcelerator/titanium_mobile/pull/4034 merged
Follow-up PR: https://github.com/appcelerator/titanium_mobile/pull/4069
Closing ticket as fixed.