Run Firefox with execsystem on Android Application ?

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
kawtef
Posts: 18
Joined: March 24th, 2016, 5:54 am

Run Firefox with execsystem on Android Application ?

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Run Firefox with execsystem on Android Application ?

Post 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
kawtef
Posts: 18
Joined: March 24th, 2016, 5:54 am

Re: Run Firefox with execsystem on Android Application ?

Post by kawtef »

Thank you so much for your reply.
Post Reply