APP Not Working

Does anyone know why my android app doesn’t work on my phone ???

when I run it on my phone it only shows a black screen before force closing.

HERE IS THE CODE:


– main.lua

–On Start Up----------------------------------------------------------------------------
local Background = display.newImage (“Image0.png”)
Background.x = 160
Background.y = 196

–Set Text-------------------------------------------------------------------------------
local Text = display.newText (“TEMC007’s APP!”, 160, 30, native.systemFont, 40)

–Set Images-----------------------------------------------------------------------------
local Image1 = display.newImage (“Image1.png”)
local Image2 = display.newImage (“Image2.png”)
Image1.x = -200
Image1.y = 196
Image2.x = -200
Image2.y = 196

–Set Button-----------------------------------------------------------------------------
local Button = display.newImage (“Button.png”)
Button.x = 160
Button.y = 475

–Button Event Listener------------------------------------------------------------------
Button:addEventListener( “tap”, Button )

–Button Function------------------------------------------------------------------------
function Button:tap (event)
if Image1.x == -200 then
Image1.x = 160
Image2.x = -200
else
Image1.x = -200
Image2.x = 160
end
end

Nine out of ten times this is due to filenames and capitalization. Check the debug guide here, and try changing all filenames (images, folders) to lowercase (ex. “Image0.png” to “image0.png”).

Devices are case sensitive where the simulator is not.  Make sure your filename’s match exactly what’s on the file system.  You can also look at the device’s console log for the error message.   See: http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob

Nine out of ten times this is due to filenames and capitalization. Check the debug guide here, and try changing all filenames (images, folders) to lowercase (ex. “Image0.png” to “image0.png”).

Devices are case sensitive where the simulator is not.  Make sure your filename’s match exactly what’s on the file system.  You can also look at the device’s console log for the error message.   See: http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob