在另一个Android应用程序中加载DICOM [英] Load dicom in another android application

查看:179
本文介绍了在另一个Android应用程序中加载DICOM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来加载使用像Droid的DICOM浏览器应用内的DICOM影像。我希望能够从我的应用程序传递一个.dcm文件,并在另一个应用程序加载它进行查看。

Is there a way to load a Dicom image using an app like "Droid Dicom Viewer". I would like to be able pass an .dcm file from my app and load it in another app to view it.

可以这样使用意图呢?

推荐答案

您应该能够打开DICOM文件像任何其他已注册的​​MIME类型的意图。我不会依赖于Droid的DICOM浏览器,因为它失败往往比它成功来查看你的文件。

You should be able to open DICOM files like any other registered MIME type with an intent. I wouldn't depend on "Droid Dicom Viewer" to view your files since it fails more often than it succeeds.

(假定sDICOMFile是包含文件路径字符串)

(assumes that sDICOMFile is a string containing the path to the file)

final Intent dicom_intent = new Intent(android.content.Intent.ACTION_VIEW);
dicom_intent.setDataAndType(Uri.parse("file://" + sDICOMFile), "Application/dicom");
startActivity(dicom_intent);

这篇关于在另一个Android应用程序中加载DICOM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆