Android Build crashing upon being opened on device

So I’ve got this problem where when I build my app for Android and install it on my device (tried it on both the HTC Thunderbolt and the Samsung Galaxy Nexus), the app crashes immediately upon opening. The strange thing is that the app runs just fine when the device build is an older one (I tried it on 2011.696), but does not work with the latest builds. It also works fine in the simulator using any builds. The app is a pretty simple one - contains a tab bar (custom, not a widget) which switched between several different web views. So the only lua code is in main.lua. Here is my code in main.lua

[lua]bg = display.newImage(“bg.png”)
web = native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight-63, “devotions.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, autoCancel = false} )
loadingstatus = “yes”
timer.performWithDelay( 1800, function() loadingstatus = “no”; end )

currentTab = “home”

local tab_bar = display.newImageRect( “tab_bar.png”, display.contentWidth, 100 )
tab_bar.x = display.contentWidth / 2
tab_bar.y = display.contentHeight-15

local selector = display.newImageRect( “select.png”, display.contentWidth/6, display.contentHeight / 7 )
selector.x = display.contentWidth / 11
selector.y = display.contentHeight-32
function calendar_button_press( event )

if (event.phase == “began” and loadingstatus == “no”) then

if (currentTab == “calendar”) then

else
transition.to( selector, { time=200, alpha=1, x=((display.contentWidth / 11) * 3.2) } )
native.cancelWebPopup()
web = native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight-63, “index.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, autoCancel = false} )
currentTab = “calendar”
loadingstatus = “yes”
timer.performWithDelay( 900,
function()
loadingstatus = “no”
end )

end

end

end

function category_button_press( event )

if (event.phase == “began” and loadingstatus == “no”) then

if (currentTab == “category”) then

else
transition.to( selector, { time=200, alpha=1, x=((display.contentWidth / 11) * 5.6) } )
native.cancelWebPopup()
web = native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight-63, “category.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, autoCancel = false} )
currentTab = “category”
loadingstatus = “yes”
timer.performWithDelay( 900,
function()
loadingstatus = “no”
end )

end

end

end

function home_button_press( event )
if (event.phase == “began” and loadingstatus == “no”) then

if (currentTab == “home”) then

else
transition.to( selector, { time=200, alpha=1, x=(display.contentWidth / 11) } )
currentTab = “home”
native.cancelWebPopup()
web = native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight-63, “devotions.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, autoCancel = false} )
loadingstatus = “yes”
timer.performWithDelay( 600,
function()
loadingstatus = “no”
end )
end
end
end

function more_button_press( event )
if (event.phase == “began” and loadingstatus == “no”) then

if (currentTab == “more”) then

else
transition.to( selector, { time=200, alpha=1, x=((display.contentWidth / 11) * 7.85) } )
currentTab = “more”
native.cancelWebPopup()
web = native.showWebPopup( 0, 0, display.contentWidth, display.contentHeight-63, “more.html”, {hasBackground=false, baseUrl=system.ResourceDirectory, autoCancel = false} )
loadingstatus = “yes”
timer.performWithDelay( 600,
function()
loadingstatus = “no”
end )
end
end
end

function website_button_press( event )
if (event.phase == “began” and loadingstatus == “no”) then

if (currentTab == “website”) then

else
transition.to( selector, { time=200, alpha=1, x=((display.contentWidth / 11) * 10) } )
native.cancelWebPopup()
web = native.showWebPopup( 0, 0, display.contentWidth, (display.contentHeight-63), “http://www.baptistbiblehour.org”, {hasBackground=false, autoCancel = false} )
currentTab = “website”
loadingstatus = “yes”
timer.performWithDelay( 5000,
function()
loadingstatus = “no”;
end )
end
end
end
local home_button = display.newImageRect( “home.png”, display.contentWidth/7, display.contentHeight / 11 )
home_button.x = display.contentWidth / 11
home_button.y = display.contentHeight-32
home_button:addEventListener( “touch”, home_button_press )

local calendar_button = display.newImageRect( “calendar.png”, display.contentWidth/7, display.contentHeight / 11 )
calendar_button.x = (display.contentWidth / 11) * 3.20
calendar_button.y = display.contentHeight-32
calendar_button:addEventListener( “touch”, calendar_button_press )

local category_button = display.newImageRect( “category.png”, display.contentWidth/7, display.contentHeight / 11 )
category_button.x = (display.contentWidth / 11) * 5.6
category_button.y = display.contentHeight-32
category_button:addEventListener( “touch”, category_button_press )

local more_button = display.newImageRect( “contact.png”, display.contentWidth/7, display.contentHeight / 11 )
more_button.x = (display.contentWidth / 11) * 7.85
more_button.y = display.contentHeight-32
more_button:addEventListener( “touch”, more_button_press )

local website_button = display.newImageRect( “internet.png”, display.contentWidth/7, display.contentHeight / 11 )
website_button.x = (display.contentWidth / 11) * 10
website_button.y = display.contentHeight-32
website_button:addEventListener( “touch”, website_button_press )[/lua]

If you see anything in there that could be the problem, let me know - I would really appreciate it! I’ve gone over it so many times, it seems like there may be a bug in Corona that is causing the problem, but I can’t be sure… Thanks! [import]uid: 10951 topic_id: 20296 reply_id: 320296[/import]