×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Check for memory card?

    Hi All,

    How to check that the memory card is currently present or not in the device.

    I wrote the code as

    String cardMemFolder = System.getProperty("fileconn.dir.memorycard");

    but it is always giving me the drive name as "file:///E:/" even if the memorycard is not there.
    I am trying this in Nokia Series40 devices.

    Please help me........





    Thanks & Regards,
    Ajit

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Check for memory card?

    Quote Originally Posted by ajitkumar26 View Post
    Hi All,

    How to check that the memory card is currently present or not in the device.

    I wrote the code as

    String cardMemFolder = System.getProperty("fileconn.dir.memorycard");

    but it is always giving me the drive name as "file:///E:/" even if the memorycard is not there.
    I am trying this in Nokia Series40 devices.

    Please help me........





    Thanks & Regards,
    Ajit
    Try to get the path to photo folder on the memory card and try to read or write anything on it in try catch and you will get the exception of card not present.
    Thanks,
    Ekta

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Check for memory card?

    Thanks Ekta,

    Really this is helpful for me!

    Thanks &Regards,
    Ajit

  4. #4
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Re: Check for memory card?

    Check FileSystemRegistry.listRoots(). It will give you the root directories available..
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Replies: 14
    Last Post: 2009-09-24, 16:51
  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. how to check for memory card or CF card
    By vinayakak in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-10-25, 06:14
  5. Check memory card?
    By nanara in forum Symbian
    Replies: 5
    Last Post: 2006-10-25, 06:12

Posting Permissions

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