App crash after splash

You must Login before you can answer or comment on any questions.

I was doing some beginning programming and it what was weird because it worked the first times i compiled but suddenly it just stopped and whenever i try to start the app now om my Samsung Galaxy Nexus it just do a normal crash after restart & after the splash page has started up.

// Create our tab group
var tabGroup = Titanium.UI.createTabGroup();
 
//Create our base UI tab and root window
var startPage = Titanium.UI.createWindow({
    title: "Tab 1",
    backgroundImage: "img/default.png"
});
 
var tab1 = Titanium.UI.createTab({
    title: "Startpage",
    window: startPage
});
 
 
// Create news page
var news = Titanium.UI.createWindow({
    title: "Tab 2",
    backgroundImage: "img/default.png"
});
 
var tab2 = Titanium.UI.createTab({
    title: "News",
    window: news
});
 
 
//
//  add tabs
//
tabGroup.addTab(tab1);
tabGroup.addTab(news);
 
 
//
// open tab group
//
tabGroup.open();

1 Answer

Why do you always find it when you have posted a question? :)

I suppose i messed up with adding wrong tab name, instead of news ofc it should be tab2.

Your Answer

Think you can help? Login to answer this question!