answer url does not work in Android liveCode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
answer url does not work in Android liveCode
answer url does not work in Android liveCode
What can I do?
What can I do?
-
- VIP Livecode Opensource Backer
- Posts: 9824
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: answer url does not work in Android liveCode
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: answer url does not work in Android liveCode
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?
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?
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: answer url does not work in Android liveCode
"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
HyperActive Software | http://www.hyperactivesw.com
Re: answer url does not work in Android liveCode
Maybe he just forgot to add the actual url?
Re: answer url does not work in Android liveCode
This is the code I put:
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
Code: Select all
answer url "https://tcrvo.ml/verisin.txt"
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
Re: answer url does not work in Android liveCode
Can you show the "inclusions" tab of the standalone settings as well please?
Re: answer url does not work in Android liveCode
You probably need to include the HTTP Library as well
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: answer url does not work in Android liveCode
Thanks,
I will update you on Sunday whether it worked or not
I will update you on Sunday whether it worked or not
-
- VIP Livecode Opensource Backer
- Posts: 9824
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: answer url does not work in Android liveCode
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.
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 development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: answer url does not work in Android liveCode
I added the SSL directory and it still does not work
Re: answer url does not work in Android liveCode
Standard inclusions aren't the issue i don't think.
I created a standalone for desktop with a single button:
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...
I created a standalone for desktop with a single button:
Code: Select all
on mouseUp
answer url "https://tcrvo.ml/verisin.txt"
end mouseUp
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...
Re: answer url does not work in Android liveCode
Hi livecode,
lets try to narrow the problem, do this:
Then tell us what the dialog shows you.
Best
Klaus
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
Best
Klaus