Archived:Media Gallery on Symbian does not automatically update its view (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Media Gallery does not automatically update its view when 3rd-party applications add media files directly to Image, Video, or Sound clip directories, in S60 3rd Edition devices
Article Metadata
Compatibility
Platform(s): S60 3rd Edition
Article
Created: User:Technical writer 1
(20 Aug 2007)
Last edited: hamishwillee
(21 Jun 2012)
Solution
When using document handler to copy or move files, Media Gallery will also get a notification about the new content.
Create a copy of the new file in a temporary folder, and then move it to the correct location with CDocumentHandler::SilentMoveL(). For example:
TDataType nullType;
TInt ret = 0;
TRAPD( moveErr, ret = iDocHandler->SilentMoveL(
_L("C:\\test_tmp.jpg"),
_L("test.jpg"),
PathInfo::PhoneMemoryRootPath(),
nullType,
KEntryAttNormal ) );


(no comments yet)