Reputation:
I keep getting this error when i build for my android. the filenames are correct case and all, i dont see what the problem is. But when i take this code out it works so its somewhere here. any ideas?
local bg = display.newRect( 0, 0, display.contentWidth, display.contentHeight )
bg:setFillColor( 255 ) -- white
local group = self.view
local imageObj = {"box.png","box.png","box.png","box.png","box.png"}
slide=slideView.new(imageObj,nill,0,50)
-- all objects must be added to group (e.g. self.view)
group:insert( bg )
group:insert( slide )
Upvotes: 0
Views: 619
Reputation: 3063
There are two leading causes of "It works in the simulator but not on device". One is filenames with case problems the other are errors in your build.settings file which the simulator does not use.
Does slideView.new() take an array of images?
Upvotes: 0