I have a task to save the .txt in external SDCard(Not Device memory). I tried in all ways. I can't get the required output. The folder created and saved in internal device sdcard only. I used the following code.
private File mPath = new File(Environment.getExternalStorageDirectory()
.getAbsolutePath() + "/Research/"+filname+".txt");
I also put the following code in Manifest file
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
But it is not working. Kindly help me. Thanks in advance.
There is no way you can determine the path to removable media (Micro SD card) reliably on Android. So stop trying. Better ask the user to indicate that path.