0
我目前可以使用Es文件浏览器将图像保存到我的应用程序中以共享Windows文件夹。如何使用es文件管理器保存图像
但我想知道的是,如何消除选择文件夹并在代码中指定它的过程?
public void SaveToNetwork() {
Intent shareIntent = new Intent(Android.Content.Intent.ActionSend);
shareIntent.SetType("*/*");
shareIntent.PutExtra(Android.Content.Intent.ExtraStream, Android.Net.Uri.FromFile(new File(App._dir, App._file.Name)));
shareIntent.SetPackage("com.estrongs.android.pop");
StartActivity(shareIntent);
}
我不想使用文件资源管理器。我只想直接将它保存到文件夹,或者至少将默认选定的文件夹更改为正确的文件夹。
Android提供文件级和outpustream类为此目的http://developer.android.com/reference/java/io/File.html http://developer.android.com/reference/java/io/OutputStream.html –