title: How to create a back button to previous page on Android with Titanium Studio?
body: <p>I have created a back button to take me to the previous page. See code bellow:</p>
  
  <pre><code>var backbutton = Titanium.UI.createButton({
      title:'back',
      bottom: 10,
      left: 10,
      zIndex:2
  });
  win3.add(backbutton);
  </code></pre>
  
  <p>I add a addEventListener to backbutton. See code bellow:</p>
  
  <pre><code>backbutton.addEventListener('click',function() {
      var win = Titanium.UI.createWindow({
          url:'alarmgroups.js',
          title:'Sensor/Larm Objekt'
      });
      win.open({modal:true});
      win3.close();
      win3.hide();
  });
  </code></pre>
  
  <p>Know I wonder what the problem could be.
  When Im using the code above It makes the Application crash.
  Im using zIndex on every .js page that I have in my project, but I dont know if Its right to do so.
  I use win.open({modal:true}); and after that code I run win3.close(); and win3.hide();. win3 Its my current window.</p>
  
  <p>Does anyone having a solution on how to create a back button for Android?  </p>