Android_ Save picture on SD card

From , 4 Years ago, written in Java, viewed 53 times.
URL https://pastebin.vip/view/097fdff1
  1. public String getSDPath(){
  2.             File SDdir=null;
  3.             boolean sdCardExist=
  4. Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);
  5.             if(sdCardExist){
  6.                     SDdir=Environment.getExternalStorageDirectory();
  7.             }
  8.             if(SDdir!=null){
  9.                     return SDdir.toString();
  10.             }
  11.             else{
  12.                     return null;
  13.             }
  14.     }
  15.  
  16. //java/5876

Reply to "Android_ Save picture on SD card"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website