Page 1 of 1

Run Firefox with execsystem on Android Application ?

Posted: December 9th, 2018, 5:44 pm
by kawtef
Hi,
I need your helps
How we can run firefox navigator automatically to open an local html page in my application on Android (csentry).
I put execsystem(maketext('"%s\firefox.exe" "'+PATH_FILE+'work.html"',pathname(ProgramFiles32))); but it doesn't work.

PATH_FILE is a variable wich point on the directory where is the file work.html

Can you help me please

Re: Run Firefox with execsystem on Android Application ?

Posted: December 9th, 2018, 10:31 pm
by josh
On Android, execsystem works differently than on Windows desktop. You can use execsystem with the "html:" option. For a web page on a remote server use "html:" followed by the url, for example
execsystem("html:http://csprousers.org")
. For a local html file you also use the url but since it is local use the file:// url rather than http. For example,
execsystem("html:file:///mnt/sdcard/csentry/myfile.html")
.

In your case you would use something like:
execsystem("html:file://" + PATH_FILE + "work.html");

For more details on using execsystem on Android see the help: http://www.csprousers.org/help/CSPro/ex ... obile.html

Re: Run Firefox with execsystem on Android Application ?

Posted: December 10th, 2018, 3:10 am
by kawtef
Thank you so much for your reply.