Namespaces

Variants
Actions

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.

Archived:Media Gallery on Symbian does not automatically update its view (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: 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
S60 3rd Edition (initial release)
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 ) );
This page was last modified on 21 June 2012, at 05:59.
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×