Hi all,
Anyone can share with me how to create sub folder in sdcard.
My scenarios is : i have to upload a file on mobile app. My flow will be :
- create a folder “Temp” in sdcard.
- copy the file upload to the “Temp” folder.
- upload the file in the “Temp” folder.
I try to add dependency for android in pom.xml
com.google.android
android
4.1.1.4
And in my code, i try:
public void TestSCript(){
File sdcard = Environment.getDataDirectory();
//File f=new File(sdcard+"/dor");
//f.mkdir();
System.out.println(sdcard.getAbsolutePath());
}
But it get except : java.lang.RuntimeException: Stub!