{ "id": "90040", "key": "TIMOB-8730", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-04-23T15:59:55.000+0000", "created": "2012-04-13T17:08:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core" ], "versions": [], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T00:06:02.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": "h4. Problem Description\r\nIf we call another app or activity in the android app, the pause event is not being fired. \r\n\r\nh4. Actual Results\r\nEvent is not fired \r\n\r\nh4. Expected Results\r\nThe event pause should be fired.\r\n\r\nh4. Test case\r\n1. Create mobile project.\r\n2. Paste this into the app.js\r\n\r\n{code}\r\nif(Ti.Platform.osname == 'iphone') { // WORKING FOR iPHONE \r\n// do nothing\r\n} else { \r\n\t// event listeners for android \r\n\t// NOT WORKING \r\n\tTi.Android.currentActivity.addEventListener('create',function(){Ti.API.info('Create call')}); \r\n\tTi.Android.currentActivity.addEventListener('destroy',function(){Ti.API.info('Destroy call')}); \r\n\tTi.Android.currentActivity.addEventListener('pause',function(){Ti.API.info('Pause call')}); \r\n\tTi.Android.currentActivity.addEventListener('resume',function(){Ti.API.info('Resume call')}); \r\n\tTi.Android.currentActivity.addEventListener('start',function(){Ti.API.info('Start call')}); \r\n\tTi.Android.currentActivity.addEventListener('stop',function(){Ti.API.info('Stop call')}); \r\n}\r\n\r\nTi.Platform.openURL('tel://911');\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: When invoking other intent from the app, the pause event is not being triggered ", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.2 \r\nJavascript Engine: V8 \r\nPlatform & version: Android 2.3 \r\nDevice Details: Android emulator \r\nHost Operating System: OS X 10.7.3\r\nTitanium Studio version: 1.0.9", "comment": { "comments": [ { "id": "192312", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested this in the latest master build and I cannot reproduce. I tried on a galaxy S2 and a 2.2 emulator, and verified that all of the events are fired correctly.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T15:59:55.000+0000", "updated": "2012-04-23T16:00:41.000+0000" }, { "id": "411155", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T00:06:02.000+0000", "updated": "2017-03-10T00:06:02.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }