Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24212] Android: run-on-main-thread - can not resume app

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2016-12-14T14:05:44.000+0000
Affected Version/sRelease 6.0.0, Release 5.5.1
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsandroid, resume, run-on-main-thread
ReporterChristoph Eck
AssigneeGary Mathews
Created2016-12-12T10:13:21.000+0000
Updated2017-01-20T19:13:44.000+0000

Description

*Problem* Using an empty application with <property name="run-on-main-thread" type="bool">true</property> set in tiapp.xml. It does not handle the resume properly. The application freezes after a resume of the application by pressing the back button on the android device and starting it again. _Actual behaviour_:

Start the application

Shows the startup screen

Shows the label "Hello world"

click on back button of the device

Application goes in background state and closes it

Start the application again

Shows the startup screen (Red titanium / appcelerator screen)

Keeps showing the startup screen, the label "Hello world" is not shown

_Expected behaviour_:

Start the application

Shows the startup screen

Shows the label "Hello world"

click on back button of the device

Application goes in background state and closes it

Start the application again

Shows the startup screen

Shows the label "Hello world"

*Test case* [^tiapp.xml]: includes http://ti.appcelerator.org"> ... true ... [^index.js]: var win = Ti.UI.createWindow(); var label = Ti.UI.createLabel({ text: "Hello World" }); win.add(label); win.open(); *Community Discussion* In Jira AC-4588 is the same topic described.

Attachments

FileDateSize
index.js2016-12-12T10:10:08.000+0000116
tiapp.xml2016-12-12T10:03:34.000+00002043

Comments

  1. Gary Mathews 2016-12-14

    Duplicate of TIMOB-23901, already fixed in 6.0.0
  2. Lokesh Choudhary 2017-01-20

    Closing as duplicate.

JSON Source