Help: Works Perfectly on Simulator but not device

Hello Guys,

I just want to know if what is the issue on my side, It works perfectly on simulator ( the buttons are all showing up), but when i build it and installed it on my device, some buttons are missing, I used the newButtonWidget, and put an image to it. I don’t know what to, because I do not what is happening on app since I can’t read terminal, unlike on the simulator,

Thanks for the help,

Jam

The most common reason why something works on the simulator but not on the device is filenames.  The simulator is not case sensitive, so display.newImage(“myImage.PNG”) will work even if the filename is actually myimage.png.  The device is case sensitive, so the name has to match exactly.

That’s the first thing I’d suggest you check.

  • Andrew

Thanks for the reply Andrew,

It does work on the first time I build it (position them first then build on the device)

Then when I put my codes on how does buttons do, some buttons disappear, some stays.

No problem.

Take a look at this blog post to learn some basic debugging strategies, including how to view the output of the terminal when you’re running on a device: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.

  • Andrew

its fixed! Thanks to the ADB it tells me what wrong… name of my image was wrong! LoL  thanks again Andrew

The most common reason why something works on the simulator but not on the device is filenames.  The simulator is not case sensitive, so display.newImage(“myImage.PNG”) will work even if the filename is actually myimage.png.  The device is case sensitive, so the name has to match exactly.

That’s the first thing I’d suggest you check.

  • Andrew

Thanks for the reply Andrew,

It does work on the first time I build it (position them first then build on the device)

Then when I put my codes on how does buttons do, some buttons disappear, some stays.

No problem.

Take a look at this blog post to learn some basic debugging strategies, including how to view the output of the terminal when you’re running on a device: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.

  • Andrew

its fixed! Thanks to the ADB it tells me what wrong… name of my image was wrong! LoL  thanks again Andrew