Titanium Community Questions & Answer Archive

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

Heavyweight window android:back event

Hello,

I want to create a heavyweight window. This window should have a 'android:back' event. When I create a heavyweight window and add the event the window just closes. My code is:

var windows = Ti.UI.createWindow({
    title: 'Title',
    fullscreen: false
});

windows.addEventListener('android:back', function(e){
    alert('Back');
});
windows.open();

Does anyone knows how to solve this?

Greetings,
Jacob

— asked October 26th 2010 by Jacob van Dam
  • android
  • android:back
  • event
  • heavyweight
  • window
0 Comments

2 Answers

  • Found the solution. I used SDK 1.4.1.1 instead of SDK 1.5.0

    — answered October 26th 2010 by Jacob van Dam
    permalink
    0 Comments
  • In your createWindow add: "navBarHidden:true". That should work.

    — answered February 28th 2012 by Sameer Prabhu
    permalink
    0 Comments
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.