Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How use NotifyChange to get camera clicks
Does your application need a notification whenever a photo is clicked through the camera application? Well, here is how you can achieve it. The following article shows how your application can get a notification as soon as a photo is clicked and stored in the Phone memory, i.e., the C:\Nokia\Images folder. It is achieved using the NotifyChange API of the RFs server.
Remember to include PlatformEnv.lib in your mmp file if you are using the PathInfo API's
class CMyCNotify : public CActive
CMyCNotify(RFs& aFs, MDirObserver& aDirObserver);
public: // CActive
CMyCNotify::CMyCNotify(RFs& aFs, MDirObserver& aDirObserver)
; // there was an error so all monitoring will now stop
TFileName path = PathInfo::PhoneMemoryRootPath();
iFs.NotifyChange(ENotifyWrite, iStatus, path);
; // already waiting for a change so do nothing
and finally implement the interface
virtual void CChange() = 0;
Similarly a notifier can be implemented on E:\Images to capture photos from MMC using PathInfo::MemoryCardRootPath(). Also the same can be used for videos, recorder, etc.