Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13647] LiveView: Android: new app instance is opened on top every time an update is saved

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-08-07T00:06:04.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 14, 2013 Sprint 14 Tooling
ComponentsLiveView
Labelsn/a
ReporterFederico Casali
AssigneeChristian Sullivan
Created2013-04-22T23:33:01.000+0000
Updated2013-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

  1. Paras Mishra 2013-06-13

    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
  2. Christian Sullivan 2013-06-14

    Please attach your build log so I may review the errors.
  3. Christian Sullivan 2013-06-19

    Please test with liveview 0.1.25
  4. Christian Sullivan 2013-06-19

    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.
  5. Christian Sullivan 2013-07-05

    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.

JSON Source