How open directory in android programmatically
in my app i have list of files that shows in ListActivity now i want add extra option like windows :(Open folder location) to open directory off this file i test some code but not work throw exception:
File file=new File(path);
Uri url = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(url);
startActivity(intent);
exeption :
03-08 21:14:55.451: E/AndroidRuntime(15708):
android.content.ActivityNotFoundException: No Activity found to handle Intent {
act=android.intent.action.VIEW dat=file:///storage/extSdCard/Bluetooth }
what can i do?