Shay Well-Known Member Licensed User Longtime User Oct 31, 2014 #1 Hi while using debug rapid I am getting this error, while I am running release mode it is ok (showing the icon ok) error: java.lang.RuntimeException: Error loading bitmap. code: result = Msgbox2("message","title","yes","cancel",no",LoadBitmap(File.DirAssets,"exit.ico"))
Hi while using debug rapid I am getting this error, while I am running release mode it is ok (showing the icon ok) error: java.lang.RuntimeException: Error loading bitmap. code: result = Msgbox2("message","title","yes","cancel",no",LoadBitmap(File.DirAssets,"exit.ico"))
thedesolatesoul Expert Licensed User Longtime User Oct 31, 2014 #2 ico? I dont think Android supports that file format. Upvote 0
DonManfred Expert Licensed User Longtime User Oct 31, 2014 #3 thedesolatesoul said: ico? I dont think Android supports that file format. Click to expand... Ico is usually a BitMaP (*.BMP) But Shay said: while I am running release mode it is ok (showing the icon ok) Click to expand... it seems that the ico will be loaded and showed in release-mode. Anyway Erel wrotes in another thread (from 2012): Erel said: Android doesn't have a built-in encoder for BMP format. Only for jpeg or png. Click to expand... So from this state i would say the ICO should not be showed Actually i´m a bit irritated Upvote 0
thedesolatesoul said: ico? I dont think Android supports that file format. Click to expand... Ico is usually a BitMaP (*.BMP) But Shay said: while I am running release mode it is ok (showing the icon ok) Click to expand... it seems that the ico will be loaded and showed in release-mode. Anyway Erel wrotes in another thread (from 2012): Erel said: Android doesn't have a built-in encoder for BMP format. Only for jpeg or png. Click to expand... So from this state i would say the ICO should not be showed Actually i´m a bit irritated
thedesolatesoul Expert Licensed User Longtime User Oct 31, 2014 #4 Technically not supported: http://developer.android.com/guide/appendix/media-formats.html but sometimes it works. It seems to be hit and miss though, I dont know why you cant just convert the ico to png and use that (to be safe). Upvote 0
Technically not supported: http://developer.android.com/guide/appendix/media-formats.html but sometimes it works. It seems to be hit and miss though, I dont know why you cant just convert the ico to png and use that (to be safe).
Shay Well-Known Member Licensed User Longtime User Oct 31, 2014 #5 I changed it to jpg, now it is ok thanks Upvote 0
Fusseldieb Active Member Licensed User Longtime User Oct 31, 2014 #6 It's better to change to png, because jpg doen't support alpha. Upvote 0