Can't save photo in Android
Posted: April 17th, 2018, 11:38 pm
I have a matter regarding on saving photos in Android. I use HP 7 Voice Tab, Advan Vandroid T1Q and Advan Vandroid S5E PRO (It's okay to mention the brand, isn't it?). The three of them can't save photo via csentry.
The logic is the same as another. Here is my script for Advan android (the path name is rather different from HP):
And here is my script for HP 7 Voice Tab (I write the full pathname, just to make sure):
I can take photos but I can't save them. The OK button is not disabled, but when I press it, it won't save photos in csentry. If I used the default camera from the device, it's no problem at all.
Idk what wrong is. It's okay when I used it (the script) for Samsung smartphone/tablet.
Kindly please help me.
Thank you before and after.
Regards,
lusia
The logic is the same as another. Here is my script for Advan android (the path name is rather different from HP):
Code: Select all
PROC PHOTO_1
onfocus
string NamePhoto = pathname(application) +
maketext("Internal St/csentry/2018/2018_P/RESOURCES/PHOTO_E/PHOTO_E_%04d_1.jpg", ID_RESP);
if fileexist(NamePhoto) then
setvalueset($, PHOTO_1_VS2);
else
setvalueset($, PHOTO_1_VS1);
endif;
postproc
if $ = 1 then
//take/ retake photo
execsystem(maketext("camera: %s", NamePhoto));
reenter;
elseif $ = 2 then
//view foto
execsystem(maketext("view: %s", NamePhoto));
reenter;
elseif $ = 3 then
//Save photo
elseif $ = 9 then
//Refused
if fileexist(NamePhoto) then
filedelete(NamePhoto);
endif;
endif;
Code: Select all
PROC PHOTO_2
onfocus
string NamePhoto = pathname(application) +
maketext("My Storage/csentry/2018/2018_P/RESOURCES/PHOTO_E/PHOTO_E_%04d_2.jpg", ID_RESP);
if fileexist(NamePhoto) then
setvalueset($, PHOTO_2_VS2);
else
setvalueset($, PHOTO_2_VS1);
endif;
postproc
if $ = 1 then
//take/ retake photo
execsystem(maketext("camera: %s", NamePhoto));
reenter;
elseif $ = 2 then
//view foto
execsystem(maketext("view: %s", NamePhoto));
reenter;
elseif $ = 3 then
//Save photo
elseif $ = 9 then
//Refused
if fileexist(NamePhoto) then
filedelete(NamePhoto);
endif;
endif;
Idk what wrong is. It's okay when I used it (the script) for Samsung smartphone/tablet.
Kindly please help me.
Thank you before and after.
Regards,
lusia