Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TakePhotoFromCamera not working on WIN32 application


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 19, 2015 12:24 PM Last Post By: Remy Lebeau (Te...
William Brookfi...

Posts: 55
Registered: 1/1/10
TakePhotoFromCamera not working on WIN32 application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 19, 2015 11:37 AM
We have built a number of IOS and ANDROID Firemonkey Apps and now one of our customers want the same app running on their Surface Pro tablet.
The TakePhotoFromCamera appear to not work when app is built for win32 platform using Delphi XE10 Seattle
Is TakePhotoFromCamera not supported for FMX win32?

Bill B

Edited by: William Brookfield on Nov 19, 2015 2:37 PM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TakePhotoFromCamera not working on WIN32 application [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 19, 2015 12:24 PM   in response to: William Brookfi... in response to: William Brookfi...
William wrote:

The TakePhotoFromCamera appear to not work when app is
built for win32 platform using Delphi XE10 Seattle

Is TakePhotoFromCamera not supported for FMX win32?

No. At this time, camera support is only implemented on iOS and Android.

You can query the global FMX.TPlatformServices class for the IFMXCameraService
interface to know if the platorm your app is running on supports a camera
or not. TTakePhotoFromCameraAction uses this interface internally:

if TPlatformServices.Current.SupportsPlatformService(IFMXCameraService) then
begin
  // camera is supported …
end else
begin
  // camera not supported …
end;


--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02