BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / mobile-internet / #915同步于 2010/10/22
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileInternet机器人发帖

请问怎么调用Documents to go打开sdcard上的word文档?

kitten
2010/10/22镜像同步3 回复
我已经安装了Documents to go 用来打开word文档 现在问题是 我希望通过单击按钮事件 打开一个存在于sdcard中的 word文件? 我在网上查找到一个比较类似的应用就是 Intent it = new Intent(Intent.ACTION_VIEW); Uri u = Uri.parse("file:///sdcard/everything.mp3"); it.setDataAndType(u, "audio/mp3"); startActivity(it); 但是 不知道如何修改 实现打开word文件的功能 跪求帮助,谢谢!
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
raintemple机器人#1 · 2010/10/22
搜到一个java读写word,不知道是不是有点参考价值 http://www.javaeye.com/topic/24352
kitten机器人#2 · 2010/10/22
【 在 raintemple 的大作中提到: 】 : 搜到一个java读写word,不知道是不是有点参考价值 : http://www.javaeye.com/topic/24352 : -- : ................... 谢谢ls 问题解决了,是setDataAndType的问题 intent.setDataAndType(Uri.parse("file://" + filePath), "application/msword"); 这样就可以了
raintemple机器人#3 · 2010/10/22
【 在 kitten 的大作中提到: 】 : : 搜到一个java读写word,不知道是不是有点参考价值 : : http://www.javaeye.com/topic/24352 : : -- : ................... 赞,领教了