1.安卓开发如何读取word文档显示出来
Apache POI
可以满足你的需求,我觉估计也是唯一靠谱的选择了。
是一个开源的解析Office文件的Java库。
我以前用它来给单位的内容管理客户端做过Word文档展示。
总的来说,POI库就是把各种Office文件解析成一种文档树。
当时我是修改了一下POI的一个例子程序把word转成html文件来显示的。
有很多支持的包,我用的是poi包,注意版本,要和excel版本相符。然后网上有例子,直接可以拿到数据,怎么显示出来就简单了。
2.Android开发如何读取并显示word和pdf文档
通过对数据库的索引,我们还为您准备了:Android开发如何读取并显示word和pdf文档呢 问:有做过类似项目的朋友讲一下么?答:大家好! 我是个Android新手,最近有个项目,其中有个需求就是在Android应用程序中查看word和pdf格式的文档(PS:不是用intent调用第三方软件打开文档哦~),可惜Android没有直接显示word和pdf文档的view。
于是本菜鸟上网查了好久好久好久哇= =。===========================================android开发中怎样读取一个文件里的内容并把内容显。
问:我以为和java的读写文件一样的,但他好像有自己的获取输入输出留的方法。答:基本上都差不多。
一般来说。文件,XML都放在assets这个文件夹下。
===========================================android怎么读取带有图片的WORD文档 问:我以为和java的读写文件一样的,但他好像有自己的获取输入输出留的方法。答:用Document to go或者quick office这类软件就可以了。
这些软件在机锋市场和豌豆荚里一搜就有===========================================【Android开发】请问Android怎么打开word文件? 问:请问Android怎么打开word文件?网上看了好多,但都不能运行,有的说用PO。答:用quick ooffice,在百度移动应用上下载quick office(pro版),拷贝到手机,安装好就行===========================================android编程:怎样读取txt文件 问:请问Android怎么打开word文件?网上看了好多,但都不能运行,有的说用PO。
答:StringBuffer buffer = new StringBuffer(); try { FileInputStream fis = new FileInputStream("/sdcard/XXX.txt"); InputStreamReader isr = new InputStreamReader(fis,"GB2312");//文件编码Unicode,UTF-8,ASCII,GB2312,Big5 Reader in = new。===========================================Android开发中读写office文件(word,ppt,excel)。
问:最近在写一个基于android平台的办公套件,其中设计到对word,ppt,excel。答:简单的,可以使用POI处理 想处理复杂和能用的,只有在服务器端处理,再返回手机android查看===========================================Android开发 ,如何读取AndroidMainfest.xml里面的。
问:AndroidMainfest.xml文件如下:我想在Androd程序中读取android:largeHea。答:largeheap是一个布尔类型的===========================================android程序中如何打开并编辑word,excel等文件? 问:我现在已经使用POI包,将内容放在html里,在webview上显示出来,但是不。
答:word?excel?笑话,微软都没有开发基于安卓版本的word,不过最近应该有动作了把。但是,你的软件和人家的软件,是属于两个APP,最多是给你个接口让你启动,但是至于编辑,你得看看人家的应用有没给你接口===========================================android开发中,如何实现读取pdf格式的文件,并把。
问:最近做关于android开发,读取pdf格式文件的应用,但是不知道如何下手啊。答:得嵌入PDF第三方软件或自己编写一个类似的打开软件吧,否则理论上是看不了的。
(仅供参考)。
3.Android开发如何读取并显示word和pdf文档呢
大家好! 我是个Android新手,最近有个项目,其中有个需求就是在Android应用程序中查看word和pdf格式的文档(PS:不是用intent调用第三方软件打开文档哦~),可惜Android没有直接显示word和pdf文档的view。
于是本菜鸟上网查了好久好久好久哇= =。 对于word,很多人说是用poi解析之后,再复写成html,最后用WebView显示。
那么,这个就是最普遍最简单的方法了么? 我感到很麻烦= = 还有别的方法么? 对于pdf,好像也是Apache旗下的pdfbox解析pdf,难道也要付写成html? 我下了一个MUPDF阅读器源码,好像不是那样做的。不过也是很麻烦很麻烦。
我是菜鸟嘛,先不提解析源文件和复写html的难度,就是能复写成html,我总感觉不保险,能保证和源文档格式一模一样么,能保证不会有些内容被遗漏么。
还有,有人说poi只能解析.doc然后复写html,针对.docx很难弄成html?可是有人却说poi解析.docx是持续更新维护的技术,而poi解析.doc那部分组件已经不更新了。
我就更迷茫了,如果我下功夫学习poi解析.doc,这个组件健全么,能完全解析正确么? 还有如果.doc解析好了,.docx能用poi解决问题嘛? 我只是不想浪费时间多走弯路,所以在这里请教csdn里的大神们给点建议和方向好么?。
4.Android开发如何读取并显示word和pdf文档
通过对数据库的索引,我们还为您准备了:Android开发如何读取并显示word和pdf文档呢 问:有做过类似项目的朋友讲一下么?答:大家好! 我是个Android新手,最近有个项目,其中有个需求就是在Android应用程序中查看word和pdf格式的文档(PS:不是用intent调用第三方软件打开文档哦~),可惜Android没有直接显示word和pdf文档的view。
于是本菜鸟上网查了好久好久好久哇= =。===========================================android开发中怎样读取一个文件里的内容并把内容显。
问:我以为和java的读写文件一样的,但他好像有自己的获取输入输出留的方法。答:基本上都差不多。
一般来说。文件,XML都放在assets这个文件夹下。
===========================================android怎么读取带有图片的WORD文档 问:我以为和java的读写文件一样的,但他好像有自己的获取输入输出留的方法。答:用Document to go或者quick office这类软件就可以了。
这些软件在机锋市场和豌豆荚里一搜就有===========================================【Android开发】请问Android怎么打开word文件? 问:请问Android怎么打开word文件?网上看了好多,但都不能运行,有的说用PO。答:用quick ooffice,在百度移动应用上下载quick office(pro版),拷贝到手机,安装好就行===========================================android编程:怎样读取txt文件 问:请问Android怎么打开word文件?网上看了好多,但都不能运行,有的说用PO。
答:StringBuffer buffer = new StringBuffer(); try { FileInputStream fis = new FileInputStream("/sdcard/XXX.txt"); InputStreamReader isr = new InputStreamReader(fis,"GB2312");//文件编码Unicode,UTF-8,ASCII,GB2312,Big5 Reader in = new。===========================================Android开发中读写office文件(word,ppt,excel)。
问:最近在写一个基于android平台的办公套件,其中设计到对word,ppt,excel。答:简单的,可以使用POI处理 想处理复杂和能用的,只有在服务器端处理,再返回手机android查看===========================================Android开发 ,如何读取AndroidMainfest.xml里面的。
问:AndroidMainfest.xml文件如下:我想在Androd程序中读取android:largeHea。答:largeheap是一个布尔类型的===========================================android程序中如何打开并编辑word,excel等文件? 问:我现在已经使用POI包,将内容放在html里,在webview上显示出来,但是不。
答:word?excel?笑话,微软都没有开发基于安卓版本的word,不过最近应该有动作了把。但是,你的软件和人家的软件,是属于两个APP,最多是给你个接口让你启动,但是至于编辑,你得看看人家的应用有没给你接口===========================================android开发中,如何实现读取pdf格式的文件,并把。
问:最近做关于android开发,读取pdf格式文件的应用,但是不知道如何下手啊。答:得嵌入PDF第三方软件或自己编写一个类似的打开软件吧,否则理论上是看不了的。
(仅供参考)。
5.android怎么打开word文件
Android ----Intent 的各种打开文件 doc word import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.net.Uri.Builder; import java.io.File; import android.content.Intent;//自定义android Intent类,//可用于获取打开以下文件的intent//PDF,PPT,WORD,EXCEL,CHM,HTML,TEXT,AUDIO,VIDEO public class MyIntent {//android获取一个用于打开HTML文件的intent public static Intent getHtmlFileIntent( String param ) { Uri uri = Uri.parse(param ).buildUpon().encodedAuthority("com.android.htmlfileprovider").scheme("content").encodedPath(param ).build(); Intent intent = new Intent("android.intent.action.VIEW"); intent.setDataAndType(uri, "text/html"); return intent; }//android获取一个用于打开图片文件的intent public static Intent getImageFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "image/*"); return intent; }//android获取一个用于打开PDF文件的intent public static Intent getPdfFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "application/pdf"); return intent; }//android获取一个用于打开文本文件的intent public static Intent getTextFileIntent( String paramString, boolean paramBoolean) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (paramBoolean) { Uri uri1 = Uri.parse(param ); intent.setDataAndType(uri1, "text/plain"); } while (true) { return intent; Uri uri2 = Uri.fromFile(new File(param )); intent.setDataAndType(uri2, "text/plain"); } }//android获取一个用于打开音频文件的intent public static Intent getAudioFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.putExtra("oneshot", 0); intent.putExtra("configchange", 0); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "audio/*"); return intent; }//android获取一个用于打开视频文件的intent public static Intent getVideoFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.putExtra("oneshot", 0); intent.putExtra("configchange", 0); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "video/*"); return intent; }//android获取一个用于打开CHM文件的intent public static Intent getChmFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "application/x-chm"); return intent; }//android获取一个用于打开Word文件的intent public static Intent getWordFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "application/msword"); return intent; }//android获取一个用于打开Excel文件的intent public static Intent getExcelFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "application/vnd.ms-excel"); return intent; }//android获取一个用于打开PPT文件的intent public static Intent getPptFileIntent( String param ) { Intent intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File(param )); intent.setDataAndType(uri, "application/vnd.ms-powerpoint"); return intent; }。
转载请注明出处51数据库 » android显示word文件名
白领只为优雅女人