Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Window in tab group focus events still not working on Android

I am on the latest SDK ( and the latest Titanium tool. I am building this app on my Mac. I noticed that, on Android, window focus events were not being called when the window is in a tab group. There are several other posts here that have been "answered" and tickets that are marked "resolved" but the issue remains. Can anyone explain what's going on? Maybe provide a valid work-around/fix?

— asked October 1st 2010 by Ben Hornedo
  • android
  • event
  • focus
  • window

4 Answers

  • I'm experiencing the same issue, it's annoying but I'm getting the impression that Titanium doesn't care about Android…

    — answered November 3rd 2010 by Justin Toth
  • is the same as 1.4.0 as far as the functionality on device. The blog post clearly stated that this was a tooling only release for iPhone,. Many defect fixes and features are being continuously added to Android. You are welcome to use a continuous integration build, look in the Programming Guides section for documentation.

    — answered November 4th 2010 by Don Thorp
  • I have the same issue. The first focus event on a tabbed window does not trigger the focus event handler, but if you move to another tab then come back, it will trigger. I am using on Mac OS X with Android API 2.2. I also tried Ti 1.5, but had so many errors trying to get the app to build/run I gave up.

    — answered November 9th 2010 by Richard Baughman
    1 Comment
    • I just managed to get Ti 1.5 working for Android, and found that the focus handler is now working with the build from Nov 4 off github. However, it looks like it may be firing twice (I'm seeing two debug FOCUS messages in the console).

      — commented November 9th 2010 by Richard Baughman
  • Same issue here. This is already at least a year old. What gives?

    — answered October 26th 2011 by Johnny Wong
    • I'm struggling with this as well. It's a really big problem that just snuck up on my as I was creating the android version of my iPhone app. Any solutions?

      — commented November 15th 2011 by Jude Osborn
    • It never worked for me, so instead I ended up going with a combination of the tabGroup:focus event, as well as custom events thrown from a child window upon close (to notify parent to refresh, etc.)

      — commented November 16th 2011 by Johnny Wong
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.