PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Photos saved
  • Backup directories
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Starts the native camera application of the device in order to take a photo.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
sPhoto is string = PhotoRunApp()
IF sPhoto <> "" THEN
Info("Photo saved in the file: " + sPhoto)
END
Versions 21 and later
// Starts the application
PhotoRunApp(CB_PhotoRunApp)

INTERNAL PROCEDURE CB_PhotoRunApp(sPath is string)
// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END
// Message for end of recording
Info("The photo was saved here: " + sPath)
New in version 21
// Starts the application
PhotoRunApp(CB_PhotoRunApp)

INTERNAL PROCEDURE CB_PhotoRunApp(sPath is string)
// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END
// Message for end of recording
Info("The photo was saved here: " + sPath)
// Starts the application
PhotoRunApp(CB_PhotoRunApp)

INTERNAL PROCEDURE CB_PhotoRunApp(sPath is string)
// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END
// Message for end of recording
Info("The photo was saved here: " + sPath)
Syntax

Starting the native camera application (locking call) Hide the details

<Result> = PhotoRunApp()
<Result>: Character string
  • Full path of the file where the photo was saved,
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
Versions 21 and later

Starting the native camera application (non-locking call) Hide the details

<Result> = PhotoRunApp([<Procedure Name>])
<Result>: Character string
  • Full path of the file where the photo was saved,
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<Procedure Name>: Character string (with or without quotes)
Name of the WLanguage procedure ("callback" procedure) that will be called when saving the photo.
This procedure has the following format:
PROCEDURE <Procedure Name> (<Path>)

where <Path> corresponds to the backup path of the image.
New in version 21

Starting the native camera application (non-locking call) Hide the details

<Result> = PhotoRunApp([<Procedure Name>])
<Result>: Character string
  • Full path of the file where the photo was saved,
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<Procedure Name>: Character string (with or without quotes)
Name of the WLanguage procedure ("callback" procedure) that will be called when saving the photo.
This procedure has the following format:
PROCEDURE <Procedure Name> (<Path>)

where <Path> corresponds to the backup path of the image.

Starting the native camera application (non-locking call) Hide the details

<Result> = PhotoRunApp([<Procedure Name>])
<Result>: Character string
  • Full path of the file where the photo was saved,
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<Procedure Name>: Character string (with or without quotes)
Name of the WLanguage procedure ("callback" procedure) that will be called when saving the photo.
This procedure has the following format:
PROCEDURE <Procedure Name> (<Path>)

where <Path> corresponds to the backup path of the image.
Remarks

Photos saved

The parameters of the photos saved (format, resolution, size) are the ones defined in the setting of the native application for taking photos.

Backup directories

AndroidAndroid Widget In the Android applications, the photo is stored on the SDCard of the device and it is automatically added to the album.
If photos must be used in your Android applications, we advise you to work with thumbnails and not with the initial photos taken by the device. To generate the thumbnails, use VideoGenerateThumbnail.
iPhone/iPad In the iPhone/iPad applications:
By default, the photos are saved in the "Documents" directory of the application.
You can also:
  • store the binary content of the image in a database, via a Memo item.
  • add the photo into the photo album of the device via AlbumSave. In this case, the image can be re-used via AlbumPicker.
Components
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment