So, I am getting this error when I test my app on a Samsung Galaxy Tab 10.1 (the errors shows up in an alert style popup) but not on an iPhone 4, iPad, or the simulator. Does this ring a bell for anyone? I'm not doing anyting that is platform specific in this module besides...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | -- set file type if "simulator" == system.getInfo("environment") then fileType = ".aif" else local platformName = system.getInfo("platformName") if "iPhone OS" == platformName then fileType = ".aif" elseif "Android" == platformName then fileType = ".pcm" else print("Unknown OS " .. platformName) end end |
I wonder if this is related to my usage of non-alphabetic characters like 狗 (Gǒu) and 犬 (inu) in some display.newText strings... ? That's the only thing that comes to mind. I'll have to test when I have the tablet again :(
solved. the problem was that I had a .gif file in the relevant module. doh! I had no idea android does not allow them...
http://developer.anscamobile.com/forum/2011/09/26/gif-images-dont-work-android-device-builds-bug