PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → I can't see saved photo
I can't see saved photo
Iniciado por Bugalete Nicu, 10,nov. 2016 08:26 - 1 respuesta
Publicado el 10,noviembre 2016 - 08:26
Hello, i have the following problem, and i hope i can find some help here.
My app runs on mobile phone , Android 6.0

When i press a button it launches the camera and takes a photo.
After this i copy this phone to another folder with another name

The problem is that after taking the phote and after i copy it to another folder, i can see that photo with file explorer, but when i connect it tot the pc the folder is empty.

I can see all the photos taken only if i restart the phone, after the phone boots, all the files are there,

It's like all the file are invisible

I tried different methods.

1.

sPhoto = VideoStartApp(viPictureCapture)
w_extensie is string = fExtractPath(sPhoto,fExtension)
w_time_stamp is string = DateSys() + TimeSys()
w_cale_poza_ODOMETRU_tmp is string = ["/"] + SysDirStorageCard() + ["/"] + "BKU/IMAGINI" + ["/"] + "PB" + "_" + w_time_stamp + "_ID_CAM_" + wid_camion + w_extensie
fCopyFile(sPhoto,w_cale_poza_ODOMETRU_tmp)


2.

sPhoto = VideoStartApp(viPictureCapture)
w_cale_poza_ODOMETRU_tmp is string = ["/"] + SysDirStorageCard() + ["/"] + "BKU/IMAGINI" + ["/"] + "PB" + "_" + w_time_stamp + "_ID_CAM_" + wid_camion + w_extensie
dSaveImageJPEG(w_imaginine,w_cale_poza_ODOMETRU_tmp,100)
Publicado el 10,noviembre 2016 - 11:14
Hi,

I can see all the photos taken only if i restart the phone, after the
phone boots, all the files are there,
It's like all the file are invisible
I tried different methods.


AFAIK, it's just that the file system from the pc does not REFRESH it's
read of the sim card. Generally, there is no need to reboot the phone.
Just disconnecting and reconnecting it to the pc forces the windows side
to read the directories again.

But why do you need to se them from the pc side in real time? There may
be another way to do what you need...

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


1.
sPhoto = VideoStartApp(viPictureCapture)
w_extensie is string = fExtractPath(sPhoto,fExtension)
w_time_stamp is string = DateSys() + TimeSys()
w_cale_poza_ODOMETRU_tmp is string = ["/"] + SysDirStorageCard() +
["/"] + "BKU/IMAGINI" + ["/"] + "PB" + "_" + w_time_stamp + "_ID_CAM_"
+ wid_camion + w_extensie
fCopyFile(sPhoto,w_cale_poza_ODOMETRU_tmp)


2.
sPhoto = VideoStartApp(viPictureCapture)
w_cale_poza_ODOMETRU_tmp is string = ["/"] + SysDirStorageCard() +
["/"] + "BKU/IMAGINI" + ["/"] + "PB" + "_" + w_time_stamp + "_ID_CAM_"
+ wid_camion + w_extensie
dSaveImageJPEG(w_imaginine,w_cale_poza_ODOMETRU_tmp,100)