Is there any easy way of checking if a Memory card is present on the device?
Can anybody provide a code snipet?
Is there any easy way of checking if a Memory card is present on the device?
Can anybody provide a code snipet?
--------------------
Miguel Bordallo
Machine Vision Group
University of Oulu
Hi,
Plz search for CAknMemorySelectionDialog class in sdk help file .
This will solve your problem...
Thanks & Regards
Ranjeet
Hi
Try to do this
Get MemoryCardRootPath using PathInfo API, this will give you proper drive assigned to memory card ( hope API will give us the desired result )
Then check whether this Folder exists or not, if exists then you happily found mem card's existence
PathInfo::MemoryCardRootPath
BaflUtil::FolderExists
Hope this will work for you .
Br,
Jinesh Krishnan
TVolumeInfo vol;
TInt err = CCoeEnv::Static()->FsSession().Volume(vol, EDriveE);
if(err==KErrNotReady)
{
//Memory card is not present
}
Thanks to everyone. It was useful
--------------------
Miguel Bordallo
Machine Vision Group
University of Oulu