Hi
I think u r testing on Emulator
if it is emulator
If you configured the application with the sdcard (exat image
location)
then go to
command prompt
adb shell
and cd sdcard
and you can browse througe the sdcard
If you want to check programatically
then
///////////////////////////////////////////////////
String Sdcard_status = Environment.getExternalStorageState();
if(Sdcard_status.equals(Environment.MEDIA_REMOVED))
{
Toast.makeText(Helloworld.this, "INSERT MEMORY CARD
(sdcard)--->Not available",Toast.LENGTH_SHORT ).show();
finish();
}
else
{
Toast.makeText(Helloworld.this, "MEMORY CARD (sdcard)---->
is available",Toast.LENGTH_SHORT ).show();
}
///////////////////////////////////////////
On Feb 9, 12:47 pm, jj <[email protected]> wrote:
> somebody will tel me thecommandfor checkingsdcardof device
>
> what iscommandtocheckSDCARDispresent?
>
> or in other words how to appl thesdcardis there or not?
>
> thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---