×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Oulu
    Posts
    132

    How to differentiate internal mass memory from memory card

    Hi,

    I'm trying to figure out how to write generic code that could detect Internal mass memory from memory card.

    Previously I have assumed that if TDriveInfo::iType is EMediaHardDisk, the drive is memory card.

    However some devices (for example N96) have internal mass memory drive (E:) and if memorycard exists it's drive letter is F:. Internal mass memory and memory card has identical TDriveInfo-attributes.

    So how can determine is EMediaHardDisk with driveletter E: memorycard or internal mass memory? (without handling this specificly for each device)

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,175

    Re: How to differentiate internal mass memory from memory card

    Check the flags with volume info, I sort of remember (maybe) that there was flag telling whether the volume is removable or something..

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to differentiate internal mass memory from memory card

    Also you can try to use PathInfo::MemoryCardRootPath get memory card drive.

    MemoryCardRootPath()
    This method returns the root path in Memory Card.
    Corresponding TSystemPaths value of the returned path is EMemoryCardRootPath.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to differentiate internal mass memory from memory card

    How about TDriveInfo like http://www.symbian.com/developer/tec...ple.guide.html check iDriveAtt in TDriveInfo

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    Oulu
    Posts
    132

    Re: How to differentiate internal mass memory from memory card

    Quote Originally Posted by symbianyucca View Post
    Check the flags with volume info, I sort of remember (maybe) that there was flag telling whether the volume is removable or something..
    Thanks for fast reply.

    TVolumeInfo doesn't have any flags. All flags are in TDriveInfo (which is member of TVolumeInfo)

    TDriveInfo has KDriveAttRemovable-flag.
    But... with N96 internal mass drive it is on. It is also on with memory card.

  6. #6
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to differentiate internal mass memory from memory card


  7. #7
    Registered User
    Join Date
    Mar 2003
    Location
    Oulu
    Posts
    132

    Re: How to differentiate internal mass memory from memory card

    Quote Originally Posted by A.A.M. View Post
    Also you can try to use PathInfo::MemoryCardRootPath get memory card drive.
    Returns E:\ (if memory card exists or not)

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    Oulu
    Posts
    132

    Re: How to differentiate internal mass memory from memory card

    Quote Originally Posted by A.A.M. View Post
    Thanks... The only drawback is that application wouldn't be compatible with older devices than 3rd sp2.

    I Belive this can be handeled with different dll newer and older platforms...
    Last edited by Roose; 2009-02-03 at 12:59. Reason: typo

Similar Threads

  1. memory card corrupted
    By k.abhash in forum General Development Questions
    Replies: 2
    Last Post: 2008-06-02, 03:25
  2. How to check if memory card is installed?
    By dehlerm in forum Symbian
    Replies: 13
    Last Post: 2008-05-07, 18:14
  3. Phone Memory, SIM card memory and Memory Card
    By aliabbas in forum General Development Questions
    Replies: 2
    Last Post: 2007-06-14, 18:40
  4. Nokia 6260 internal memory problem
    By nxx7 in forum General Development Questions
    Replies: 1
    Last Post: 2006-02-05, 18:01
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×