{ "id": "63877", "key": "TIMOB-3245", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11257", "description": "", "name": "Sprint-2011-09", "archived": true, "released": true, "releaseDate": "2011-03-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:16.000+0000", "created": "2011-04-15T03:40:19.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "honeycomb", "release-1.7.0", "reported-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T02:01:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

The relevant code in Titanium is only hit if you start an app\nfrom a download such as from the Android Market. And it's only in a\nLog statement. I noticed it was removed from Android because I\nlooked at this:

\n

\nhttp://developer.android.com/sdk/api_diff/11/changes/android.app.Ac...

\n

To test what happens when it's called in Honeycomb, I put a\nbogus call to it in a piece of code that I know runs all the time\nwhen an app launches. The result is this crash:

\n
\nE/AndroidRuntime(  476): FATAL EXCEPTION: main\nE/AndroidRuntime(  476): java.lang.NoSuchMethodError: org.appcelerator.titanium.TiLaunchActivity.getInstanceCount\n
\n

So I simply removed it from the Log statement where it's called.\nThere's nothing to test, really.

{html}", "attachment": [], "flagged": false, "summary": "Android: getInstanceCount() (code in TiLauncherActivity) no longer exists in api 11 and app crashes if it's called", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "130368", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [59d25e9b26b1c97accb781be3617ef4b1aad9283])\nRemove call to getInstanceCount from one log statement as it didn't\nseem too important and it does not exist anymore starting in api 11\n(and therefore would crash in Honeycomb) [#3245]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/59d25e9b26b1...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:40:19.000+0000", "updated": "2011-04-15T03:40:19.000+0000" }, { "id": "130369", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

BTW, I went through the list of all methods deleted from api 11,\nand this was the only one we called, and we called it only in this\none place.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:40:19.000+0000", "updated": "2011-04-15T03:40:19.000+0000" }, { "id": "130370", "author": { "name": "pete", "key": "pete", "displayName": "pete", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I obviously do not fully understand this but is it possible to\nremove the getInstanceCount code from my own project? My app\ncurrently crashes immediately on load.

{html}", "updateAuthor": { "name": "pete", "key": "pete", "displayName": "pete", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:19.000+0000", "updated": "2011-04-15T03:40:19.000+0000" }, { "id": "130371", "author": { "name": "pete", "key": "pete", "displayName": "pete", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Ignore my comment...I used mobilesdk 1.7 and it worked.\nThanks.

{html}", "updateAuthor": { "name": "pete", "key": "pete", "displayName": "pete", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:20.000+0000", "updated": "2011-04-15T03:40:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }