[TIMOB-26637] Android: Add "rootActivity" property to Ti.Android module
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-04T21:18:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 8.0.0 |
Components | Android |
Labels | activity, android |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2018-12-08T05:39:50.000+0000 |
Updated | 2019-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.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/10519
FR Passed. PR Merged.
*Closing ticket.* The feature is present in SDK: {noformat} 8.0.0.v20190104153150 {noformat}