Titanium Alloy crash on android, Cannot call method 'open' of undefined -
i getting error when running basic project on android. have both android , iphone build targets , have tried clean project. must basic missing can't see it
index.xml
<alloy> <navigationwindow id="navwin" platform="ios"> <window> <label id="label">hello, world</label> </window> </navigationwindow> </alloy> index.js
if(os_ios){ $.navwin.open(); }else{ $.index.open(); }
reason crash app in android :- in android navigation window doesn't come navigation window not open... crash...
so, utilize code in index.html
<alloy> <window id='index'> <label id="label">hello, world</label> </window> </alloy> and in index.js
$.index.open(); android titanium
No comments:
Post a Comment