title: Titanium appcelerator : window focus event not triggered when returning from other window
body: <p>I have recently started development with titanium appcelerator for developing Android application. And got stuck in a problem that seems to be very minor issues for other who are well versed with Titanium but it have created a headache for me being a beginner.</p>
  
  <p>I have two window named <strong>main</strong> and <strong>subwindow</strong>.On button click i am redirected to <strong>subwindow</strong> from <strong>main</strong> window. Now whenever I am pressing back button on emulator from <strong>subwindow</strong>. I have written logic for closing current window i.e <strong>subwindow</strong> so that I can view <strong>main</strong> window. That works fine even <strong>subwindow</strong> closes successfully and even I can view <strong>main</strong> window. But now if I am trying to click button in <strong>main</strong> window that doesn't happen. </p>
  
  <p>Even I tried to catch focus event in <strong>main</strong> window that happens when application is initially loaded but when i am in <strong>subwindow</strong> and closing <strong>subwindow</strong>,  file focus event is not triggered in <strong>main</strong> window. </p>
  
  <p>HERE GOES MY CODE</p>
  
  <p><strong>APP.JS</strong></p>
  
  <pre><code>var win1 = Titanium.UI.createWindow({  
      backgroundColor:'black'
  });
  
  var btngo=Ti.UI.createButton({
      title : "Go !!!!",
      top : "30%"
  });
  
  var lbltitle=Ti.UI.createLabel({
      text : "This is home page",
      font : {fontSize : "20%"} ,
      top : "20%",
      color : 'white'
  });
  
  //Event listener for adding clicking event
  btngo.addEventListener('click',function(e){
      var nextwindow=Ti.UI.createWindow({
          url : "window.js"   
      });
      nextwindow.open();
  });
  win1.addEventListener('focus',function(e)
  {
      alert("main window focused");
  });
  win1.addEventListener('android:back', function (e) 
  {
    win1.close();
  });
  win1.add(lbltitle);
  win1.add(btngo);
  win1.open();
  </code></pre>
  
  <p><strong>WINDOW.JS</strong></p>
  
  <pre><code>var childwindow=Ti.UI.createWindow({
      backgroundColor : "white"
  });
  
  
  var btnhome=Ti.UI.createButton({
      title : "HOME PAGE"
  });
  
  
  var lbltitle=Ti.UI.createLabel({
      text : "This is child window",
      font : {fontSize : "20%"} ,
      top : "20%",
      color : 'white'
  });
  //For adding event listener for detecting click on home page button
  btnhome.addEventListener('click',function(e){
       childwindow.close();   
  });
  
  //Adding event listener for detcting back button click in android 
  childwindow.addEventListener('android:back', function (e) {
    childwindow.close();
  });
  
  childwindow.add(lbltitle);
  childwindow.add(btnhome);
  childwindow.open();
  </code></pre>
  
  <p>Hope that I would get solution to my problem as soon as possible.    </p>