画像をViewerで開く

 File f = new File(ファイル名);
 Uri data = Uri.fromFile(f);
 Intent intent = new Intent(Intent.ACTION_VIEW);
 intent.setDataAndType(data, "image/jpeg");
 startActivity(intent);

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください