App Runs Fine on Simulator, Crashes on Device

My application uses some standard Corona APIs (physics, graphics, etc.) and I do not believe I have put anything out of the ordinary into it. It runs perfectly on the simulator with a high FPS.

However, after building for Android (I have not tried iOS, I am running this on Windows) and deploying to my device, it crashes. The app will display a black screen for around 10 seconds, and then display part of my graphics (my yellow background rectangle) before displaying the “Force Close” Android dialog.

I honestly have no idea where to start to find the problem.

Does anyone have any bits of information that could possibly point me in the right direction? Any knowledge or ideas are appreciated, so thank you very much for your time. [import]uid: 7581 topic_id: 6705 reply_id: 306705[/import]

Running on Windows also, I had the exact same situation as I built my first APK tonight based on a program that has simple graphics and physics. Mine also runs fine on the simulator. I built the APK using Corona’s server, copied the file to the SD card and then used the “App Installer” app from the Market to install.

Only a black screen and a Force Close shortly after. I learned from a similar thread (that I did not notice initially)that the filenames should be exactly the same and are case-sensitive when it comes time to creating the APK through the server. They are not case sensitive when running on the emulator. I changed all PNG’s filenames to lowercase and my code reference was all made lower case and it ran beautifully on the Droid Incredible.

Try this and see if it helps! Watch all filenames and look for a similar thread on here which also mentioned to watch your “require” statements as they can be case sensitive also.

I hope they fix the case sensitive issue on their server after seeing all these messages.

Other than that, this might be fun!
[import]uid: 33005 topic_id: 6705 reply_id: 23591[/import]

Thank you so much! This has been puzzling me for weeks, but I have continued development (with testing limited to the simulator). Now my app runs with high FPS on my Droid Incredible (we have a lot in common).

While the problem wasn’t with the case of the filenames, you pointed me the right way to find my solution. The problem was being caused because my images were in a folder (“images/image.png”), but apparently they needed to be in the same folder as the lua file (“image.png”). [import]uid: 7581 topic_id: 6705 reply_id: 23602[/import]