I am using the below code to create a directory/ file in storage.
File file = new File(Environment.getExternalStorageDirectory().toString(), "/MyDirectory");
After updating target SDK version 29 in android 10 its not woking.
can anyone suggest how to create a folder outside the application scope?