Problem showing an icon image on the desktop
Posted: Fri Jul 03, 2015 10:56 pm
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.
"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.