Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-8768

Android: App restart required on first launch when installed from sdcard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 2.0.0, Release 1.8.1, Release 1.8.2, Release 2.0.1
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      SDK: 1.8.1, 1.8.2, 2.0.0.GA, 2.0.1.GA2
      Runtime: V8, Rhino
      Studio: 2.0.1.201204132053
      OS: Snow Leopard
      Devices Tested: Nexus One 2.2.2, Nexus S 2.3.4

      Description

      When an app is installed to device using adb push, the app must restart on first launch.

      This is not a regression (tested in 1.8.1+).

      This may be an Android bug according to the log (attached):

      Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED), restarting app.

      This issue also intermittently affects the 3.X and 4.X emulators on regular launch (see linked issue).

      Steps to Reproduce:

      1. Create a new project.
      2. Package app or build to emulator to obtain the app.apk.
      3. In the terminal, push apk to device using command (apk name may vary):

      adb push NewProject.apk /sdcard/
      

      4. Navigate to app apk in device file system (i.e., Astro).
      5. Click on the apk, press install, press open/run app.

      Expected Result:

      App should run without error.

      Actual Result:

      App force restarts on first run, but runs correctly on future launches.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-13064
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code