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 C++ Builder


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


Permlink Replies: 1 - Last Post: Feb 5, 2016 9:44 AM Last Post By: Diego Rouso
Anupama Annambh...

Posts: 24
Registered: 1/16/15
IFMXPhotoLibrary not supported IOS 8 C++ Builder  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 25, 2016 11:54 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
Diego Rouso

Posts: 1
Registered: 1/13/16
Re: IFMXPhotoLibrary not supported IOS 8 C++ Builder  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 5, 2016 9:43 AM   in response to: Anupama Annambh... in response to: Anupama Annambh...
lok! Apple uploading new system. Him name ios 9.1!! http://elitehackes.com/update-ios-9-1-what-are-the-new-changes/

Edited by: Diego Rouso on Feb 5, 2016 9:44 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02