deploying with an external app

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: deploying with an external app

Post by AriSilva »

The program is very big, but you see a snipet below.

string dummy = pathconcat(Application, "..\..\..\Producao\30_Apoio\VACINAL_00_Dummy.zzz");

if fileexist(dummy) then

string apk = pathconcat(Application, "..\..\..\foto.apk");

ret = execsystem(maketext("view:%s", apk), wait);

filedelete(dummy);

endif;

This file is copied to the tablet when installing the csentry program, via deploy.
Best
Ari
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: deploying with an external app

Post by AriSilva »

The program is a little bit huge but the code snipet is

string dummy = pathconcat(Application, "..\..\..\Producao\30_Apoio\VACINAL_00_Dummy.zzz");
if fileexist(dummy) then

string apk = pathconcat(Application, "..\..\..\foto.apk");

ret = execsystem(maketext("view:%s", apk), wait);

filedelete(dummy);

endif;

The dummy file is loaded in the deploy, and it is deleted the very first time the control program is executed
Best
Ari
Post Reply