storage - How to check if SD card inserted in Android? -


this question has answer here:

i want check if phone has sd card inserted or not. want provide user select storage location.

this question has several duplicates, however, can check sd card this:

boolean issdpresent = android.os.environment.getexternalstoragestate().equals(android.os.environment.media_mounted); 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -