Problem showing an icon image on the desktop

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Problem showing an icon image on the desktop

Post 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.
Attachments
My desktop. The last two icons are the ones I refer to.
My desktop. The last two icons are the ones I refer to.
image.jpg (397.55 KiB) Viewed 1624 times
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Problem showing an icon image on the desktop

Post 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

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Problem showing an icon image on the desktop

Post 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.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Problem showing an icon image on the desktop

Post by Mr. Kibernetik »

Probably HTTPS:// will not work, but HTTP:// will.

Post Reply