answer url does not work in Android liveCode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

answer url does not work in Android liveCode

Post by liveCode »

answer url does not work in Android liveCode
What can I do?
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: answer url does not work in Android liveCode

Post by FourthWorld »

What does "answer url" do on other platforms?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer url does not work in Android liveCode

Post by Klaus »

Did you check "Internet" in the "Standalone Application Settings" for Android?

And since the automatism "Search for required inclusions when saving the standalone application"
does not work reliably, maybe you need to include the "Internet" library manually?
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: answer url does not work in Android liveCode

Post by jacque »

"answer url" doesn't make sense, what are you trying to do?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer url does not work in Android liveCode

Post by Klaus »

Maybe he just forgot to add the actual url?
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: answer url does not work in Android liveCode

Post by liveCode »

This is the code I put:

Code: Select all

    answer url "https://tcrvo.ml/verisin.txt"
And this is the settings of Android in liveCode
And it still does not work

Note: If I run the command in liveCode it works but if I run the app and run on my phone it does not work
Attachments
ללא שם.png
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: answer url does not work in Android liveCode

Post by SparkOut »

Can you show the "inclusions" tab of the standalone settings as well please?
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: answer url does not work in Android liveCode

Post by liveCode »

To shoot more?
Attachments
ללא שם.png
ללא שם.png
ללא שם.png
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: answer url does not work in Android liveCode

Post by liveCode »

Is there anything I did not mark?
Attachments
ללא שם.png
ללא שם.png
ללא שם.png
AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: answer url does not work in Android liveCode

Post by AndyP »

You probably need to include the HTTP Library as well :)
Andy .... LC CLASSIC ROCKS!
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: answer url does not work in Android liveCode

Post by liveCode »

Thanks,
I will update you on Sunday whether it worked or not
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: answer url does not work in Android liveCode

Post by FourthWorld »

HTTP is handled in the Internet library, which is checked. The httpd library is for running a localhost server for mobile testing.

I think what's missing us the SSL library, needed for HTTPS.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
liveCode
Posts: 124
Joined: Sun Oct 17, 2021 5:53 pm

Re: answer url does not work in Android liveCode

Post by liveCode »

I added the SSL directory and it still does not work
Attachments
ללא שם.png
stam
Posts: 3209
Joined: Sun Jun 04, 2006 9:39 pm

Re: answer url does not work in Android liveCode

Post by stam »

Standard inclusions aren't the issue i don't think.
I created a standalone for desktop with a single button:

Code: Select all

on mouseUp
    answer url "https://tcrvo.ml/verisin.txt"
end mouseUp
The only inclusions i ticked were 'Internet', in addition to the already ticked 'ask' and 'answer'.
This worked just fine - click the button launches a dialog with the text 1.0.0.

If this isn't working on mobile, it seems likely to be a mobile specific issue (i'm afraid i can't really help there though) - i'm guessing internet access has be allowed or some such, but i can see in your first screenshot that you've already ticked the 'Internet' tickbox. Not sure if anything else needs to be done...

Maybe someone else can try compiling for Android and see if its a general issue?
Hopefully some experienced Android dev can advise...
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer url does not work in Android liveCode

Post by Klaus »

Hi livecode,

lets try to narrow the problem, do this:

Code: Select all

on mouseUp
    put url("https://tcrvo.ml/verisin.txt") into tVar
    if the result <> EMPTY then
       answer "Problem:" & CR & the result
    else
       answer tVar
   end if
end mouseUp
Then tell us what the dialog shows you.


Best

Klaus
Post Reply