Checking memory card availability using Symbian C++
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}}.
The article is believed to be still valid for the original topic scope.
The article is believed to be still valid for the original topic scope.
Article Metadata
Tested with
Devices(s): Nokia E90 Communicator
Nokia 6220 Classic
Nokia 6220 Classic
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition, FP1
S60 3rd Edition, FP2
Article
Keywords: Base F32, RFs, TVolumeInfo, Volume
Created: markuspe
(13 Feb 2008)
Last edited: hamishwillee
(17 Jul 2012)
Overview
This code snippet demonstrates how to check the availability of the memory card. This snippet can be self-signed.
Source file
TVolumeInfo vol;
TInt err = CCoeEnv::Static()->FsSession().Volume(vol, EDriveE);
CAknInformationNote* note = new ( ELeave ) CAknInformationNote;
if( err==KErrNotReady )
{
_LIT(KDriveNotPresent, "E drive not available");
note->ExecuteLD(KDriveNotPresent);
}
else
{
_LIT(KDrivePresent, "E drive available");
note->ExecuteLD(KDrivePresent);
}

