Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2356] Android pause/resume activity events do not fire inside TabGroup

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-01-29T01:10:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.0.0.GA, Activity, Android, pause, resume
ReporterMark Mokryn
AssigneeMauro Parra-Miranda
Created2013-01-16T10:23:19.000+0000
Updated2016-03-08T07:41:22.000+0000

Description

The issue is well described inside the Q&A including code from Kitchen Sink 3.0. event listeners for Android activity pause and resume events do not fire on the TabGroup nor on its windows, and the listeners have been positioned inside the respective "open" event handlers for good measure. The release notes for SDK 3.0.0 mention changes for TabGroup activities - but these are also not reflected in the 3.0 SDK docs. Here is the link to the relevant Q&A: [http://developer.appcelerator.com/question/146990/android-tabgroup-activity-pauseresume]

Comments

  1. Mark Mokryn 2013-01-16

    I found the problem: from all my testing, the only apparent way to get the activity object while inside the TabGroup is to use the TabGroup.getActivity() method. The Ti.Android.currentActivity does not work, as apparently don't the window properties/methods. The 3.0 SDK release notes state that TabGroup.activity property is available - yet this is not true. In short - all the documentation for Android activity management/events should be seriously reviewed for 3.0 - it's very confusing at the moment.
  2. Eduardo Gomez 2013-01-29

  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source