SFML community forums

Help => General => Topic started by: Saud on December 05, 2018, 12:29:56 am

Title: Image not showing in apk
Post by: Saud on December 05, 2018, 12:29:56 am
Hi,

I have downloaded a background from the web, its a royalty free .jpg image.

I used it in my project and it worked fine in SDL plugin run test,
but when i make an APK file and install the APK on my phone this particular image does not show.

can you tell me what might be the problem?
is it an SFML issue or maybe the image itself or the APK does not show certain images?

note:
i tried many royalty free background images, the same problem persist.
i tried converting them to many formats like png, jpg, psd and bmp, the same problem persist.
i use a resources folder and attach it to the APK so the games directory would be that folder.
other images work fine using the same code as the one with the issue.
Title: Re: Image not showing in apk
Post by: eXpl0it3r on December 05, 2018, 08:46:19 am
How are you loading the image, i.e. can you show some code?
Title: Re: Image not showing in apk
Post by: Saud on December 05, 2018, 03:32:04 pm
How are you loading the image, i.e. can you show some code?

This issue haunted me for days, i almost tried everything possible to try to solve this problem,
except one thing i havent tried, which is change the APK name every time i export it to mobile.

what i used to do is, every time i want to export a new APK, i delete the one exported before with uninstalling its app, and then export it again to the device with the same name.
and that was the problem and changing APK name was the solution.
its like if you want to add a new image to your app, APK name should be different than the previous name.

Thanks for your reply, and sorry for the false alarm.