[TIMOB-13647] LiveView: Android: new app instance is opened on top every time an update is saved
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-08-07T00:06:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 10 JS, 2013 Sprint 14, 2013 Sprint 14 Tooling |
Components | LiveView |
Labels | n/a |
Reporter | Federico Casali |
Assignee | Christian Sullivan |
Created | 2013-04-22T23:33:01.000+0000 |
Updated | 2013-09-30T18:01:59.000+0000 |
Description
Problem description
On Android, LiveView is changing the app code after any update. However, instead of just modifying the current opened app, a new instance of the app is opened displaying the code modifications.
Steps to reproduce
1. Create a project (classic or Alloy) and run on Android enabling LiveView
2. Modify some UI code (for example a label)
Result: a new instance of the app is opened showing the app with the modification done.
3. Press the back button
Result: new instance of the app is closed. The first run app is displayed as opened below it.
Comments
JSON Source
After modification in UI code, a new instance of app is opened with the modification implemented. Pressing back button a black window is displayed. Environment used : Device : Google Nexus 7, Android Version: 4.1 SDK: 3.1.1.v20130612114553 CLI version : 3.1.1-cr OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.1.201306121633 XCode : 4.5.1 LiveView : 0.1.24
Please attach your build log so I may review the errors.
Please test with liveview 0.1.25
Hitting the back button will display a black screen due to the way the reload function is implemented on android. This is not a liveview issue.
The new back button causing black screen on android is due to the implementation of the Ti.App._restart() function. If this is still considered a bug then file a ticket for Android SDK Ti.App._restart function.