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(
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[]. }