Titanium Community Questions & Answer Archive

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

Hitting Android back button to exit modal window disables it forever

When I first launch my app, I'm able to click a button that opens a modal window, and it opens it successfully.

If I click 'back' to get out of the modal (currently the only way to do so, and the way Android users would expect, I think) I'm not able to open that window again.

The button that fires it calls .open() and .show() for the window.

— asked June 28th 2010 by Jeremy Raines
  • android
  • back
  • button
  • linux
  • mobile
  • modal
  • window
0 Comments

3 Answers

  • Temporary solution is to .close() the window before calling .open() . . . even if it hasn't been opened yet. Let me know if anyone has a better solution.

    — answered June 28th 2010 by Jeremy Raines
    permalink
    0 Comments
  • I have the same issue. Have you found a more elegant solution?

    — answered November 1st 2010 by A E
    permalink
    0 Comments
  • try creating and opening within the click handler.

    — answered November 1st 2010 by Don Thorp
    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.