Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16897] Android: Ti.Platform.openURL throws Unknown Java Exception intermittently

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-23T19:02:39.000+0000
Affected Version/sRelease 3.2.2, Release 3.2.3
Fix Version/s2014 Sprint 10, 2014 Sprint 10 SDK, Release 3.3.0, Release 3.4.0
ComponentsAndroid
Labelsandroid, mobilesdk, module_platform, qe-testadded
ReporterRubens Jr
AssigneeVishal Duggal
Created2014-04-22T22:06:36.000+0000
Updated2014-05-23T22:37:39.000+0000

Description

On Android, using Ti.Platform.openURL("http://www.google.com") causes app to crash with an exception: "Uncaught Error: Java Exception ocurred". I believe it's the same issue of issue [TC-3319] . Issue is intermittent (sometimes had to click the button 4-5 times to happen) and only happens when Window is created with "exitOnClose" = true. Managed to reproduce the issue, sample code attached. Video (7.8mb) showing how it happened on sample: http://www.techme.com.br/download/Titanium_openURL_bug_Android_480p.mov

Attachments

FileDateSize
app.js2014-04-22T22:06:36.000+00001669

Comments

  1. Ritu Agrawal 2014-04-30

    Moving this ticket to engineering as I can reproduce this issue with the provided test case. Note that I had to try many times before making it fail so keep trying until it fails.
  2. Vishal Duggal 2014-05-22

    Pull Pending master - https://github.com/appcelerator/titanium_mobile/pull/5725 3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5726
  3. Lokesh Choudhary 2014-05-23

    Verified the fix. Ti.Platform.openURL does not throw any Unknown Java Exception. Closing. Environment: Appc Studio : 3.3.0.201405211748 Ti SDK : 3.3.0.v20140523143057 Mac OSX : 10.8.5 Alloy : 1.4.0-alpha4 CLI - 3.3.0-alpha5 Code Processor: 1.1.1 Samsung Galaxy S4 running android 4.2.2

JSON Source