Wednesday, August 25, 2010

Check SD Card Present or Not in ANDROID


AIM: To check whether External Memory card is available or not.

Solution:
Use this block of code to do .

if (android.os.Environment.getExternalStorageState().equals
(android.os.Environment.MEDIA_MOUNTED))
{
          //  External Memory card is available for usage.
}
else
{
    //  External Memory card is not available for usage.ie.,not found.
}



20 comments:

  1. great works like a charm

    ReplyDelete
  2. Great blog! Do you have any helpful hints for aspiring writers?
    I'm hoping to start my own blog soon but I'm a little lost on everything.
    Would you suggest starting with a free platform like Wordpress or go for a paid option?
    There are so many options out there that I'm completely confused .. Any recommendations? Thanks a lot!

    Also visit my blog post; 8329

    ReplyDelete
  3. Wow that was unusual. I just wrote an incredibly long
    comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing all that over
    again. Anyway, just wanted to say superb blog!


    Also visit my web blog :: "snaffle"

    ReplyDelete
  4. Have you ever thought about writing an e-book or guest authoring on other
    blogs? I have a blog based upon on the same
    information you discuss and would love to have
    you share some stories/information. I know my viewers would
    appreciate your work. If you're even remotely interested, feel free to shoot me an email.

    Feel free to visit my homepage; guillotine

    ReplyDelete
  5. I was able to find good information from your blog articles.



    my web page :: cash for silver

    ReplyDelete
  6. Hi there this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors
    or if you have to manually code with HTML.

    I'm starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be enormously appreciated!

    my webpage: orquesta atraccion

    ReplyDelete
  7. Hi, i feel that i noticed you visited my web site so i
    came to go back the favor?.I'm trying to to find things to improve my site!I assume its adequate to make use of a few of your ideas!!

    Here is my web blog ... ideal waist to hip ratio

    ReplyDelete
  8. Thanks for an concept, you sparked at thought from a angle I hadn’t given thoguht to yet.

    Now lets see if I can do something with it.

    My web page: Having Trouble Getting Pregnant With Second Baby

    ReplyDelete
  9. Hi there just wanted to give you a quick heads up. The
    words in your post seem to be running off the screen in Chrome.
    I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd post to let you know.
    The layout look great though! Hope you get the issue fixed soon.
    Many thanks

    my web-site - musicos

    ReplyDelete
  10. Human studіеs have ѕhown to protect DNΑ from damаge
    and іncrеaseѕ thе immune resρonse.

    There are physical anԁ emotional гeasons why we eat, but we
    givе lіttlе іmportance
    аs to whу our bodу neеdѕ foοԁ.
    One thing that mаkеs healthy weight loss diеt
    stands out from the fаds іs the fаct that it is 100% natural.



    my webρage - healthy diets

    ReplyDelete
  11. Thank you for the good writeup. It in reality was
    once a entertainment account it. Glance advanced to far brought agreeable from you!
    By the way, how can we communicate?

    my site: rent a serp best bonus rentaserp.com devon Zander

    ReplyDelete
  12. I am a beginner in android platform.But these codes are very useful to me to embed in my application developing code.

    I am new to maintain a blog. Pls post your valuable comment by reading my blog

    ReplyDelete

Android Developers Blog

Ram's shared items