hi pratik, you use targetSdkVersion 30 in your build and in this target, Environment.getExternalStorageDirectory() is deprecated and doesn't work.