Image not showing in Android after build

Good day all,

I am developing an Android game with Corona SDK, though I am a beginner;

The game is playing well on the system with corona SDK but

When I build it and install on my Android device; 

It started well and play 1st scene, 2nd scene, 3rd scene BUT ON THE 4TH SCENE, it FAIL to display  some images;

NB: It shows well on development tool(CORONA SDK). what can be the cause?

Attached is the scene code that is not working well

Thanks.

Hello @nobleogyify,

This may be happening because you have a memory leak, where you’re not clearing the image from the texture memory properly when you move from and refresh scenes. Thus, after a certain number of scenes, you are exceeding the device’s texture memory and it will not display more images. You need to be very careful about monitoring memory usage (especially texture memory) and fully cleaning up images when you’re done with them.

I suggest you begin with this guide:

http://docs.coronalabs.com/guide/basics/optimization/index.html

Best regards,

Brent Sorrentino

Hello @nobleogyify,

This may be happening because you have a memory leak, where you’re not clearing the image from the texture memory properly when you move from and refresh scenes. Thus, after a certain number of scenes, you are exceeding the device’s texture memory and it will not display more images. You need to be very careful about monitoring memory usage (especially texture memory) and fully cleaning up images when you’re done with them.

I suggest you begin with this guide:

http://docs.coronalabs.com/guide/basics/optimization/index.html

Best regards,

Brent Sorrentino