Home > Mobile >  Album of the video store should address how to obtain? This is shown in figure
Album of the video store should address how to obtain? This is shown in figure

Time:11-28

Who can send the how to get the code to complete, millet mobile phone video in the album

CodePudding user response:

Under their online search have. Look at this line not line
Private String sdcardDir=getSDCardPath ();
Private String getSDCardPath () {
The File sdcardDir=null;//determine whether SDCard there
Boolean sdcardExist=Environment. GetExternalStorageState (.) the equals (... Android OS Environment MEDIA_MOUNTED);
If (sdcardExist) {
SdcardDir=Environment. External.getexternalstoragedirectory ();
}
Return sdcardDir. ToString ();
}

Private String filePath=getSDCardPath () + "/" + "DCIM/pipixia/123. Mp4";
  • Related