How to get SD_Card path in android6.0 programmatically

后端 未结 4 1519
既然无缘
既然无缘 2020-12-02 15:12

I am trying to check whether device having external storage or not by using external storage path like this given below

 if (new File(\"/ext_card/\").exists(         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 15:44

    in this i have redmi note prime 2.and i have no memory card.so when i found path and File[] externalDirs = getExternalFilesDirs(null); give null second postion value of file[]. }

提交回复
热议问题