0
我使用下面的代码打开了本地SDCard中的图像。我的问题是,一些默认选项,如共享来自意向查看器(我不想)。例如Dropbox的使用份额,蓝牙等带意图的自定义图像显示
请帮助....
void displayFile(String filepath){
File f = new File(filepath);
Uri path = Uri.fromFile(f);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, mimeTypeFromExtension);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
}
我使用默认的应用程序,文件是一个图像...还有什么必须从我的最后完成..plz解释一些代码 – DroidBoy 2012-02-21 13:14:34
如何找到默认活动打? – DroidBoy 2013-03-15 07:26:01