Open Web Browser On Android Device

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 75
Joined: Tue Aug 05, 2014 10:07 am

Open Web Browser On Android Device

Post by Googie85 » Fri Feb 09, 2018 10:59 am

I am trying to open an .html file for the purpose of printing.

Any help would be greatly appreciated!!!

Many Thanks,

Googie.

LiveCode_Panos
Posts: 332
Joined: Fri Feb 06, 2015 4:03 pm

Re: Open Web Browser On Android Device

Post by LiveCode_Panos » Fri Feb 09, 2018 11:23 am

Hi Googie,

Maybe this will help:

viewtopic.php?f=53&t=27630

Panos
--

Klaus
Posts: 9763
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Web Browser On Android Device

Post by Klaus » Fri Feb 09, 2018 11:25 am

Hi Googie,

if the html file is in the users docs folder, use this (with a browser widget)

Code: Select all

...
put "file://" & speciallfolderpath("documents") & "/name of your html file here.html" into tURL

## The important step, urls don't like SPACES:
replace " " with "%20" in tURL
set the url of widget "your browser" to tURL
...
Best

Klaus

Googie85
Posts: 75
Joined: Tue Aug 05, 2014 10:07 am

Re: Open Web Browser On Android Device

Post by Googie85 » Fri Feb 09, 2018 11:20 pm

I'm still unsure as to how to print the .html...

Please help!!

Google.

Klaus
Posts: 9763
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Web Browser On Android Device

Post by Klaus » Fri Feb 09, 2018 11:26 pm

According to the dictionary, "print" is notsupported on Android.
At least it is not listed under "Supported Platforms" for that entry.

MaxV
Posts: 1446
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Open Web Browser On Android Device

Post by MaxV » Tue Feb 13, 2018 1:53 pm

Try with:

Code: Select all

launch url ("print://" & urlencode(specialfolderpath("documents") & "/name of your html file here.html")) 
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Android Deployment”