installing an apk from csentry
Posted: November 28th, 2023, 12:38 pm
Hi folks,
In my previous applications, using android 5.5, I used the following commands to install an apk from my csentry program:
string apk = pathconcat(Application, "..\..\30_Apoio\app-debugVersion12-1.apk");
ret = execsystem(maketext("view:%s", apk), wait);
The idea is to install the apk stored in that folder specified in apk.
Apparently it is not working anymore, and I do not know if the guilty guy is the android version, or something changed in cspro.
By the way, this ...apk is uploaded to this directory using the deploy utility, or course. And the idea is to install the application at the beginning of the csentry application execution just once (I check some conditions to make sure it needs to be installed).
Another question is: Is there a way to use the deploy to upload a file in another area not controlled by the application (in the download folder for instance)?
Best
Ari
In my previous applications, using android 5.5, I used the following commands to install an apk from my csentry program:
string apk = pathconcat(Application, "..\..\30_Apoio\app-debugVersion12-1.apk");
ret = execsystem(maketext("view:%s", apk), wait);
The idea is to install the apk stored in that folder specified in apk.
Apparently it is not working anymore, and I do not know if the guilty guy is the android version, or something changed in cspro.
By the way, this ...apk is uploaded to this directory using the deploy utility, or course. And the idea is to install the application at the beginning of the csentry application execution just once (I check some conditions to make sure it needs to be installed).
Another question is: Is there a way to use the deploy to upload a file in another area not controlled by the application (in the download folder for instance)?
Best
Ari