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

Android: getInstanceCount() (code in TiLauncherActivity) no longer exists in api 11 and app crashes if it's called

    Details

      Description

      {html}<div><p>The relevant code in Titanium is only hit if you start an app
      from a download such as from the Android Market. And it's only in a
      Log statement. I noticed it was removed from Android because I
      looked at this:</p>
      <p><a href=
      "http://developer.android.com/sdk/api_diff/11/changes/android.app.Activity.html#android.app.Activity.getInstanceCount_removed()">
      http://developer.android.com/sdk/api_diff/11/changes/android.app.Ac...</a></p>
      <p>To test what happens when it's called in Honeycomb, I put a
      bogus call to it in a piece of code that I know runs all the time
      when an app launches. The result is this crash:</p>
      <pre>
      <code>E/AndroidRuntime( 476): FATAL EXCEPTION: main
      E/AndroidRuntime( 476): java.lang.NoSuchMethodError: org.appcelerator.titanium.TiLaunchActivity.getInstanceCount</code>
      </pre>
      <p>So I simply removed it from the Log statement where it's called.
      There's nothing to test, really.</p></div>{html}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration