![] (http://www.compass.ie/wordpress/wp-content/uploads/Compass-logo-Final-300x104.png)
Compass FilePicker is a simple file picker component for Xamarin Android. It can be used as a full screen activity or as a fragment in a dialog.
var intent = new Intent(this, typeof(FilePickerActivity));
intent.PutExtra(FilePickerActivity.ExtraNewDirName, "NewFolder");
intent.PutExtra(FilePickerActivity.ExtraInitialDirectory, SelectedDirectory);
intent.PutExtra(FilePickerActivity.ExtraMode, (int)FilePickerMode.Directory);
StartActivityForResult(intent, FilePickerActivity.ResultCodeDirSelected);
and then in the OnActivityResult method
data.GetStringExtra(FilePickerActivity.ResultSelectedDir)
- Xamarin.Android
Compass FilePicker is built using
- Visual Studio 2013 or Xamarin Studio
- The Xamarin framework
This project contains one sample Xamarin.Android application.
- Suite of unit tests
- Androd-DirectoryChooser for the inspiration
All bugs, feature requests, pull requests, feedback, etc., are welcome. Create an issue.
Copyright 2014, Compass Informatics Ltd.
Licensed under the MIT License or see the LICENSE
file.
Copyright 2014, Compass Informatics Ltd.