Open Web Browser On Android Device
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Open Web Browser On Android Device
I am trying to open an .html file for the purpose of printing.
Any help would be greatly appreciated!!!
Many Thanks,
Googie.
Any help would be greatly appreciated!!!
Many Thanks,
Googie.
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Open Web Browser On Android Device
Hi Googie,
if the html file is in the users docs folder, use this (with a browser widget)
Best
Klaus
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
...
Klaus
Re: Open Web Browser On Android Device
I'm still unsure as to how to print the .html...
Please help!!
Google.
Please help!!
Google.
Re: Open Web Browser On Android Device
According to the dictionary, "print" is notsupported on Android.
At least it is not listed under "Supported Platforms" for that entry.
At least it is not listed under "Supported Platforms" for that entry.
Re: Open Web Browser On Android Device
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: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Open Web Browser On Android Device
.html printing is not available on android as far as I know.
Re: Open Web Browser On Android Device
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?
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
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