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