Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26637] Android: Add "rootActivity" property to Ti.Android module

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-01-04T21:18:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.0.0
ComponentsAndroid
Labelsactivity, android
ReporterJoshua Quick
AssigneeJoshua Quick
Created2018-12-08T05:39:50.000+0000
Updated2019-01-08T10:35:55.000+0000

Description

*Summary:* The Ti.Android module supports a "currentActivity" property. used to access the top-most activity displayed by the app. We could improve the usability of the "newintent" event and intent-filter handling if we provided easy access to the app's root activity as well. This is because the root activity's is the one that's being updated when the native Java Activity.onNewIntent() method gets called. Currently, the only way to set up "newintent" handling is to do so before opening a Ti.UI.Window. *Proposed Solution:* Add a new "rootActivity" property to the Ti.Android module.

Comments

  1. Joshua Quick 2018-12-12

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/10519
  2. Lokesh Choudhary 2019-01-04

    FR Passed. PR Merged.
  3. Josh Longton 2019-01-08

    *Closing ticket.* The feature is present in SDK: {noformat} 8.0.0.v20190104153150 {noformat}

JSON Source