| ID | CS000827 | Creation date | February 21, 2008 |
| Platform | S60 3rd Edition S60 3rd Edition, FP1 S60 3rd Edition, FP2 | Tested on devices | Nokia E90 Communicator Nokia 6220 Classic |
| Category | Symbian C++ | Subcategory | Files/Data |
| Keywords (APIs, classes, methods, functions): Base F32, RFs, TVolumeInfo, Volume |
This code snippet demonstrates how to check the availability of the memory card.
This snippet can be self-signed.
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);
}
No related wiki articles found