Android上的FireFox的“选择文件”的对话框是怎么实现的?
见上图。
应该是用intent实现这个对话框的,但是我试了Intent.ACTION_GET_CONTENT,没有quickoffice这个选项。然后试了Intent.ACTION_PICK,抛出ActivityNotFoundException。那在我的android上的firefox究竟使用的是哪个intent呢?
或者谁能告诉我怎样在使用intent发出选择文件命令时,怎么样弹出的file browser直接跳到某个文件夹,比如new File("file:///sdcard/download")?
谢谢! --------------------编程问答-------------------- 师兄找到了:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
补充:移动开发 , Android