[Android Dev] 判斷SD卡是否存在

To check whether the sdcard existed or not, execute the following code :

if(android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))

Share this post!

Bookmark and Share

0 意見: