Try This:
File RootFile;
File root = Environment.getExternalStorageDirectory();
File dir = new File(root.getAbsolutePath() + "/MyAppFolder/");
String title=" <your title>";
if (!dir.exists()) {
dir.mkdirs();
}
RootFile = new File(dir, title);
More Related Contents:
- How to refresh Android listview?
- Notification bar icon turns white in Android 5 Lollipop
- How to create a release signed apk file using Gradle?
- Android deprecated apache module (HttpClient, HttpResponse, etc.)
- Published App on Play Store can’t communicate with Google Maps API and Facebook API
- UnsupportedOperationException: Can’t convert to dimension: type=0x1
- HTML file input control with capture and accept attributes works wrong?
- Is a RelativeLayout more expensive than a LinearLayout?
- Dialogs / AlertDialogs: How to “block execution” while dialog is up (.NET-style)
- Android ListView Divider
- Comparing Bitmap images in Android
- Simulate low battery & low memory in Android
- Work around Canvas.clipPath() that is not supported in android any more
- Android: How to get a file’s creation date?
- Get file path of image on Android
- Get context inside onClick(DialogInterface v, int buttonId)?
- Estimating beacon proximity/distance based on RSSI – Bluetooth LE
- Custom global Application class breaks with “android.app.Application cannot be cast to”
- Pop the fragment backstack without playing the Pop-Animation
- FloatingActionButton doesn’t hide
- Eclipse Installation error: INSTALL_FAILED_UID_CHANGED
- Broadcast receiver not working in android oreo
- Google map still blank on real Android device on release apk
- Can’t access “findViewById” in AsyncTask
- How to Overlap items in LinearLayoutManager – RecyclerView (like stacking cards)
- Android Hello-World compile error: Intellij cannot find aapt
- Is there any way to test multi-touch on the Android Emulator?
- Implications of Android multiple user support (new in 4.2) for server side data model (e.g. android_id)
- Android change layout dynamically
- Recycling views in a listview, worth it?