*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.
Duplicate of TIMOB-23901, already fixed in
6.0.0
Closing as duplicate.