hyperlinks in standalone do not work

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

hyperlinks in standalone do not work

Post by keram » Fri Aug 15, 2014 5:43 pm

Hello,

I created few hyperlinks in the text field to open the web pages in a default browser. I did it in this way:

1. Formatted the text as Link

2. used this code to set the link:
set the linkText of line 1 of fld "mylinks" to "http://mywebpage.html"

3. included this code in the card where the field with the link is present:

Code: Select all

on linkClicked myLink
   if myLink contains "http://" then revGoUrl myLink
end linkClicked
When I test it in IDE and in Windows standalone it works OK. But in Android standalone it does not work at all.

What do I have to correct to get it working on Android?

Thanks.
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: hyperlinks in standalone do not work

Post by FourthWorld » Fri Aug 15, 2014 6:00 pm

The Dictionary entry for the revLaunchUrl command is noted as available only for Mac, Windows, and Linux, and that it's been deprecated in favor of the newer "launch URL" command, which also works on iOS and Android.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: hyperlinks in standalone do not work

Post by keram » Sat Aug 16, 2014 1:26 am

Thanks Richard,

I picked that piece of code from the official LC lesson here: http://lessons.runrev.com/m/4071/l/7406 ... -in-fields
So that became a lesson for me to not always trust what is posted on these lessons and double check with the Dictionary, even though the Dictionary is not always up to date either is what I read on this forum... Well, with time things will be corrected I guess.

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Post Reply