Greetings,
I am a few weeks into Corona/Android/Windows. Getting things up and running on the Corona simulator was great. But ever since I started trying to get something running in Android it has been not so much fun. I keep having incompatibly issues. Currently I have what is likely some kind of table trashing issue. I started using Android tools to try and get a peek under the hood. The ref for a function is bad when running the android version, I loaded up with prints to try and find the spot where things went bad. Turns out in the beginning of my main, where I do my requires, some of the code is running twice. (Or at least the prints are seen twice.) It's not in a loop. It's not in a function. A portion for flavor:
print("1")
local MainScreen = require "MainScreen"
print("2")
local MainCreate = MainScreen.create
print("3")
local MainRelease = MainScreen.release
print("4")
printTable("MainScreen",MainScreen)
print("Boot - MainScreen "..tostring(MainScreen))
print("Boot - MainCreate "..tostring(MainCreate))
print("Boot - MainRelease "..tostring(MainRelease))
print("5")
In adb logcat I see those prints twice in a row. Now as I said, the Corona simulator version runs fine. My question, which I am taking way too long to get to, is how much grief have people doing Android builds had with incompatibility, and can I do anything better than prints and logcat to try and find problems?
I know I will find the problem above at some point, but there is a certain level of frustration with the feeling that I am trying to debug a mnemonic memory circuit using stone knives and bearskins. :-)
Sorry for the length, and thanks for any insight.