Page 1 of 1

Problem showing an icon image on the desktop

Posted: Fri Jul 03, 2015 10:56 pm
by rbytes
Today I was able to create a desktop icon on my iPad Air and it worked perfectly to run one of my scripts. Since the file was called Calculator.txt, I used the web link:
"http://kibernetik.pro/sb.php?Calculator"
http://kibernetik.pro/sb.php?Calculator
When I added the link to my home screen, I got a default smartBASIC desktop icon, and it worked.

Now I wanted a custom icon. I chose a .png background image from the Camera Roll, and used an image editor app to add the title Calculator. I saved it to DropBox and then copied it into my smartBASIC root folder as calcicon.png
I modified the link to:
"http://kibernetik.pro/sb.php?Calculator ... lcicon.png"
http://kibernetik.pro/sb.php?Calculator ... lcicon.png
When I added the link to the home screen, the icon was a pure white button - there was no image.
Although your documentation didn't specify a size for the .png, I looked up the standard icon size for an iPad Retina screen, which is 144 x 144. I used the image editor app to resize my png to exactly that size. Then I replaced the calcicon.png image in the smartBASIC root folder.

I deleted the previous desktop icon and added the same link to the desktop.
Still no luck! The icon starts my script, but it is still white.
Is there a problem with how my link points to the icon image? Also, how do I change the icon name? I want it to be Calculator, not Favorites.

Re: Problem showing an icon image on the desktop

Posted: Sat Jul 04, 2015 3:40 am
by Mr. Kibernetik
In the documentation it is said:

Also it is possible to set custom image for the icon if in address string after symbol "&" to indicate Internet address of the image. For example:
http://kibernetik.pro/sb.php?hello%20wo ... t-icon.png

Re: Problem showing an icon image on the desktop

Posted: Sat Jul 04, 2015 5:19 am
by rbytes
Thanks. I now have it working. I used some free web space supplied by my cable & Internet provider.

I first tried uploading the file to DropBox and using their supplied link. That didn't work. I also have an account with Box, and tried the same thing there. That didn't work either. So I guess not all web addresses will work.

Re: Problem showing an icon image on the desktop

Posted: Sat Jul 04, 2015 5:49 am
by Mr. Kibernetik
Probably HTTPS:// will not work, but HTTP:// will.