Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2493] Android: expose Window.activity

GitHub Issuen/a
TypeNew Feature
Resolution Date2011-04-17T01:59:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M05
Labelsactivity, android, feature
ReporterMarshall Culpepper
AssigneeMarshall Culpepper


Allow users to pre-fill the activity proxy before it's created so the associated option menu is easier to handle programmatically.


  1. Don Thorp 2011-04-15

    This should have gone in M05 to start with. It was found on Friday.

  2. Marshall Culpepper 2011-04-15

    (from [2aa4de85145ff669ec7a8574a301d61a09c2fa5c]) callSync/callAsync now accept an optional TiContext argument when the calling thread doesn't have an assoicated TiContext. Users can now pre-seed the onPrepareOptionsMenu and onCreateOptionsMenu callback in any Titanium window proxy by using the "activity" property in the creation object. TiBaseActivity now passes the ActivityProxy's context when calling onPrepare/onCreate menu methods. [#2493 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/2aa4de85145ff669ec7a8574a301d61a09c2fa5c"> https://github.com/appcelerator/titanium_mobile/commit/2aa4de85145f...

  3. Marshall Culpepper 2011-04-15

    We need to actually pre-fill the proxy instead of creating it on demand in TiUIWindow, reopening

  4. Marshall Culpepper 2011-04-15

    (from [b44bd9d3b29569923ac9dc614fde51cd379d986c]) the window's activity proxy is now lazily created, and can be accessed immediately after createWindow or pre-filled using "activity" key in
    [#2493 state:fixed-in-qa] createWindow.
    https://github.com/appcelerator/titanium_mobile/commit/b44bd9d3b29569923ac9dc614fde51cd379d986c"> https://github.com/appcelerator/titanium_mobile/commit/b44bd9d3b295...

  5. Matt Schmulen 2011-04-15

    pass Titanium SDK version: 1.5.0 (12/07/10 10:00 8f4eea3...), bugTest, Android Sim 1.6/2.1

JSON Source