Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to use GetExternalFilesDirs in Android 4.4.2?

$
0
0

Use this:

Java.IO.File[] externalFilesDirs = GetExternalFilesDirs(null);
string s = externalFilesDirs[0].AbsolutePath;
Android.Widget.Toast.MakeText(this, s, Android.Widget.ToastLength.Long).Show();

Correctly get the path to sdcard0. While trying to get the path to sdcard1 error occurs. string s = externalFilesDirs[1].AbsolutePath; How can I make this folder on sdcard1? Use sdcard0 for me is not suitable, since little space. In the manifest:WRITE_EXTERNAL_STORAGE. How to tell the program to use sdcard1 instead of sdcard0? Thanks in advance!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>