Languages

Menu
Sites
Language
File information

Is there any way to get information about last opened file in file system. (FS api ?)
For example, when starting music player #2 I want get information about last listened file, with player #1.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
hgw7
Implement the interface 'Tizen::Io::IFileEventListener'. In its callback method 'OnFileEventOccured()', check for open event 'FILE_EVENT_TYPE_OPEN' and use this filepath. void TestApp::OnFileEventOccured(const unsigned long events, const Tizen::Base::String &path, const unsigned int eventId) { if (events & FILE_EVENT_TYPE_OPEN) AppLog("File opened %ls ", path.GetPointer()); }
Alexey Tempter
Good hint, thank you.