catch window focus for android | titanium mobile

http://developer.appcelerator.com/question/21191/android-window-events-not-working-with-tabgroup-titanium-12

iPhoneでは focus 等イベントを取得できますが、
Androidでは動きません・・・

タブグループからイベントを渡す方法で回避です。

tabGroup.addEventListener('focus', function(event) {
  tabGroup.activeTab.window.fireEvent('focus');
});

別に良いのですが、修正された後にいろいろ直すのもまた面倒ですね。

This entry was posted on 土曜日, 9月 24th, 2011 at 1:35 AM and is filed under Titanium. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。