Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: IFMXPhotoLibrary not supported IOS 8 XE8



Permlink Replies: 0
Anupama Annambh...

Posts: 24
Registered: 1/16/15
IFMXPhotoLibrary not supported IOS 8 XE8
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 25, 2016 9:05 AM
I am trying to save a Bitmap image to the IOS device.

Approach#1:
User the application's writable storage.
Obtain the path using GetHomePath() method in Rad Studio.
http://docwiki.embarcadero.com/Libraries/XE5/en/System.IOUtils.TPath.GetHomePath

Issue: Unable to save to this location returned by GetHomePath()
private/var/mobile/Containers/Data/Application/<app ID hidden>/Screenshots/tempImage.jpg

Approach#2
Use the FMXPhotoLibrary and save the image to the Device's Photo Library
http://docwiki.embarcadero.com/Libraries/XE8/en/FMX.MediaLibrary.IFMXPhotoLibrary.AddImageToSavedPhotosAlbum

Issue: I have adapted the same in my XE8 C++ Builder, but the error message says "IFMXPhotoLibrary" interface is not supported.

The above link suggested to add this code snippet in my project but never call it.
void InitializeMediaLibraryServices()
{
RegisterMediaLibraryServices();
}

But I end up hitting a compiler error undefined reference to RegisterMediaLibraryServices()

If anyone could please provide insights on what is that I am doing wrong in either of the Approaches or if there is an alternative to achieve this in IOS, that would be great.

Regards
Anu

Edited by: Anupama Annambhatla on Jan 25, 2016 11:52 AM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02