Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3644] Android: Alert dialogs tests in KS fail to show dialogs (see error)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-05-18T17:20:04.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-20
ComponentsAndroid
Labelsandroid, dialog, options, regression, reported-1.7.0
ReporterThomas Huelbert
AssigneeMarshall Culpepper
Created2011-04-21T11:42:37.000+0000
Updated2011-05-21T11:39:37.000+0000

Description

1.Base UI > Views > Alert Dialog 2.Tap any of the buttons (except Alert) results: no dialog and the following output is seen -
W/TiUIDialog( 7940): (main) [775,1746723] Window must have gone away.
W/WindowManager( 2499): Attempted to add application window with unknown token HistoryRecord{4835ad00 com.appcelerator.pushtest/org.appcelerator.titanium.TiActivity}.  Aborting.
not in 1.6.2

Attachments

FileDateSize
TIMOB-3644.js2011-05-18T14:04:46.000+00002359

Comments

  1. Thomas Huelbert 2011-04-25

    only seen on galaxy tab and no on droid 1 or nexus s
  2. Bill Dawson 2011-04-25

    Tried on the Galaxy Tab Emulator. I can't run KS on the Galaxy Tab emulator because they don't include Google APIs, but I ripped out the alert dialogs test (alert.js) and put its code into its own heavyweight window in a test app, and the dialogs worked fine. But this doesn't necessarily mean anything. :) Marshall, as you have the Tab, I'm gonna hand off to you. Start by installing KS and running Base UI > Views > Alert Dialog and try all the buttons. If they work, we'll need more info.
  3. Bill Dawson 2011-04-25

    Assigning to MC because he has Tab. See my comment, Marshall.
  4. Marshall Culpepper 2011-05-18

    There are a number of tests affected by this bug in KitchenSink/SmokeTest: - Base UI > Views > Alert Dialog - Controls > Activity Indicator - Controls > Progress Dialog - Phone > Play Movie I also attached a standalone test that shows the fail case in 5 different situations
  5. Eric Merriman 2011-05-18

    I tried the standalone test and the app stopped on the splash on emulator and Galaxy Tab. Tried in iOS simulator for comparison and got "result of expression 'Titanium.UI.ActivityIndicator' [undefined] is not an object. at app.js (line 31)" I added the following code to the test: var win = Titanium.UI.createWindow({ backgroundColor:'#fff' }); line 31 is the second line of this: var progressIndicator = Titanium.UI.createActivityIndicator({ 31--> location: Titanium.UI.ActivityIndicator.DIALOG, type: Titanium.UI.ActivityIndicator.DETERMINANT, message: 'Downloading 0 of 10', min: 0, max: 10, value: 0 });
  6. Eric Merriman 2011-05-18

    Verified fixed in KS on the Galaxy Tab (2.2.1), Titanium Studio, build: 1.0.0.201105131803, Titanium SDK version: 1.7.X (r187fe3fd).

JSON Source