NOT SO FAST.
Although I can now complete my build with v2263, “AND” I AM able to install the APK onto my Android 2.3.4 device, (ATT LGP505), the problem is that when I run it, I get the message, “The application xxxxxxx has stopped unexpectedly. Please try again.” (xxxxxxx = app name)
To verify the problem wasn’t my code, I grabbed the super simple project from the Corona Code Exchange in “Templates” called “Simple Grid System” and it, too, DOES NOT WORK. So, I have included the following super-short code (build.settings, config.lua, main.lua) BELOW in hopes that someone can tell me why this doesn’t work.
BUILD.SETTINGS
settings = {
orientation = {
default = “portrait”,
supported = { “portrait”, }
},
iphone = {
plist = {
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
}
},
}
CONFIG.LUA
application = {
content = {
width = 320,
height = 480,
scale = “letterBox”,
fps = 30,
},
}
MAIN.LUA
– Screen size
local screenW, screenH, halfW, halfH = display.viewableContentWidth, display.viewableContentHeight, display.viewableContentWidth*0.5, display.viewableContentHeight*0.5
– Grid
numberOfColumns = 16
columnWidth = math.floor( screenW / numberOfColumns )
function getColumnPosition( columnNumber )
return (columnNumber - 1) * columnWidth
end
function getColumnWidth( numberOfColumns )
return numberOfColumns * columnWidth
end
– Loop columns
for i = 1, numberOfColumns do
– Loop thru records
for y = 1, 26 do
– Set column and row
local column = i
local row = y * 20 - 20
– Set text of label
local text = i
if i < 10 then
text = ‘0’ … text
end
– Add newText
local options =
{
text = text,
x = getColumnPosition(column),
y = row,
width = getColumnWidth(column+1),
fontSize = 14,
align = “left”
}
local label1 = display.newText( options )
label1.anchorX = 0
label1.anchorY = 0
end
end