Welcome! Log In Create A New Profile

Advanced

WDMobile 28 Camera Control

Posted by cabinetman 
WDMobile 28 Camera Control
June 30, 2023 01:32AM
Hello All,

For days now I have wasted time trying to figure why code that worked in v26 no longer works in v28.

IF InAndroidMode() AND NOT InSimulatorMode() THEN
	// Start taking photos
	CameraRunApp(viPictureCapture,CB_NewPhoto)
ELSE
	CameraCapture(CAM_WinOrd,PhotoPath(sName+".jpeg"),viPictureCapture)
	CB_NewPhoto(PhotoPath(sName+".jpeg"))
END

////////////////////////////Photopath procedure///////////////////////////////////
        //gsPhotoDirectory = fCurrentDir() + [fSep] + "photos"

       //PROCEDURE PhotoPath(LOCAL sPhoto is string)

        //RESULT gsPhotoDirectory + [fSep] + sPhoto
////////////////////////////Photopath procedure///////////////////////////////////


Error Message :
You called 'CameraCapture'.
Error specifying capture file:
'C:\My Mobile Projects\CabinetTrac Barcode v28\Exe\photos\532314_162344.jpeg' is not a valid file name
or
video/image currently saved by device

System error details:

Unspecified error
 (2147500037)

No matter what file path I use it fails every time. No matter what file name I use it fails every time and the or video/Image is NOT currently saved by device.

This code worked fine in 26.
Anyone have Android app with CameraCapure that works in simulator?



DW
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: