Open Web Browser On Android Device

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

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
Googie85
Posts: 100
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
Livecode Staff Member
Livecode Staff Member
Posts: 487
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: 10327
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: 100
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: 10327
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: 1539
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

ezraf1309
Posts: 1
Joined: Tue Aug 21, 2018 12:05 pm

Re: Open Web Browser On Android Device

Post by ezraf1309 » Tue Aug 21, 2018 12:12 pm

.html printing is not available on android as far as I know.

AndyP
Posts: 367
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: Open Web Browser On Android Device

Post by AndyP » Tue Aug 21, 2018 2:31 pm

In native it is

November 7-8, 2018.
Printing HTML documents
Printing out content beyond a simple photo on Android requires composing text and graphics in a print document. The Android framework provides a way to use HTML to compose a document and print it with a minimum of code.


In Android 4.4 (API level 19), the WebView class has been updated to enable printing HTML content. ml-docs

https://developer.android.com/training/ ... /html-docs

It may need an enhancement request to allow this in the browser widget?
Andy Piddock

http://2108.co.uk/tinyide/ - TinyIDE gives you more space to develop your ideas

http://2108.co.uk/script-editor-themer/ Script Editor Themer - Your code has never looked so good

My software never has bugs. It just develops random features

Post Reply

Return to “Android Deployment”