Hello Scott and Rob,
Thanks for your prompt response. I was thrown off-course in my troubleshooting earlier, as I was following the “lead” in the error message. Also, the error message, at first, seems to be random.
Yes. Rob, I did use the _ newPickerWheel _ in one of my scenes. (But I didn’t know that the PickerWheel uses TableView until now.)
I am sorry to bother you folks, as I believe I have found the cause of the error. Let me explain.
(1) First, the error message only appear “randomly” on the various Android devices. It does not appear on the Corona SDK Simulator on MS-Windows7, which I use to develop and build for Android.
(2) This led me to realise that the difference in testing on the Android devices and Simulator is,
I did not test the Android back button on the Simulator as the back button does not work on the Simulator (on MS-Windows)
(3) This led me to repeatedly test my “Go Back” (_ newButton ), “Back” ( newTabBar _) and the Android Back button (on actual Android devices).
There is a total of seven scenes. The user moves about the scenes using the various user interactions as above. But the Android back button was not thoroughly tested, as this method was added last and it was not on the Simulator.
(4) Finally, a pattern (of moving from scene to scene) emerges that triggers the error message. I am now able to reproduce the error.
The culprit found was a composer.removeHidden() that was there during an earlier testing, as I am not familiar with composer, I copied and paste from a number of places, to try out the various composer function calls. One instance was left in the final code. It did not cause any problem during the Simulator test, and it only causes problem (now I know) when a certain sequence of moving from scene to scene, using the Android back button (but not the “Back” (newTabBar) nor the “Go Back” (newButton) ).
I am now able to confirm that it has been fixed. Please help to close this thread.
Thank you for your time.
Regards, Luan
PS> Now, I have added another key to “keyName” to test the Android back button using the Simulator, besides the actual “back” key which does not work on the Simulator on MS-Windows. This would ensure that codes in the onKeyEvent(event) would be better tested in future during the development and test phase.
I would recommend anyone using the Simulator on MS-Windows to build for Android to do likewise. Hope this helps.