Titanium Community Questions & Answer Archive

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

app crashes when adding webview to window

I'm trying to add a webview to a window that has 2 tableviews on it (1 hidden).

Everything works great up until i

   window.add(webview)

Then the app spits up and dies.

Here's the related code and the trace of the spectacular crash. I've done this before, not sure what I could be doing wrong. Any ideas?

http://gist.github.com/397607

tia,
dan

— asked May 11th 2010 by Dan Trevino
  • android
  • crash
  • n00b
  • webview
0 Comments

2 Answers

  • Looks like you didn't specify a URL to the web view - this is a required parameter, and could likely be the source of your crash.

    — answered May 11th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • nah the url is there. confirmed the value with Ti.API.info(). See the gist link. Sorry shoulda made that more prominent.

    // event data 
        var index = e.index;
        var rowdata = e.rowData;
        //Ti.API.info("event selected: " + rowdata.link);
        eventpage.url = rowdata.link;
        masterWindow.add(eventpage);
    
    — answered May 11th 2010 by Dan Trevino
    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.