Intent intent = new Intent();
//intent.addCategory("android.intent.category.DEFAULT");
intent.setAction(android.content.Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(new File(param));
intent.setDataAndType(uri, "application/pdf");
//Intent intent2 = new Intent();
//intent2.setAction(Intent.ACTION_CHOOSER);
//intent2.putExtra(Intent.EXTRA_TITLE, "请选择能够打开pdf的应用");
//intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//intent2.putExtra(Intent.EXTRA_INTENT, intent);
ComponentName componetName = new ComponentName(
//这个是另外一个应用程序的包名
"com.chaozh.iReaderFree",
//这个是要启动的Activity
"com.chaozh.iReader.ui.activity.WelcomeActivity");
intent.setComponent(componetName);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// startActivity(intent);
System.out.println( android.os.Build.MODEL+"," + android.os.Build.VERSION.SDK + ","+ android.os.Build.VERSION.RELEASE);
分享到:
相关推荐
android pdf 的翻页效果,单击显示进度条,拖动进度条到指定页码,双击放大。花了蛮多时间搞出来的,希望对大家有帮助
Android PDF转图片,PdfContext pdfContext =new PdfContext(); PdfDocument pdfDocument=(PdfDocument)pdfContext.openDocument(pdfPath);//path为要截图的pdf的路径,String类型 int pageCount = pdfDocument....
很流畅的AndroidPDf开源阅读器,大家可以下载看看,绝对是干货!
AndroidPDf阅读实现例子
android pdf阅读器,亲测可用。如有疑问,请留言。本人必将又问必答
Android PDF Viewer介绍: 一个读取和显示pdf文件的类库。 测试环境: Eclipse 4.2, Android 3.0 以上。 注意:测试环境并不代表适用环境。
Android PDF 阅读器源码.zip
Android官方对PDF文档的完美解析,完全原生
https://github.com/muennich/mupdf 使用库源码
该控件一款专业的 Android PDF 控件,用于在 Android 手机应用程序中创建、读取、操作和转换 PDF 文档,运行环境无需安装 Adobe Acrobat 或其他任何第三方组件。支持的功能如下: PDF 文档安全性设置,画文本、图片...
Android PDF阅读器源代码介绍: 一个开源的PDF阅读器源码,代码挺多,有兴趣的可以看看。
向大家推荐一款开源的android 下pdf阅读器源码 一起学习
可运行的android pdf源码。由于项目需要,android导出word和pdf 然后通过蓝牙打印和预览。 打印word和pdf正在封装lib库,后续上传csdn共享。
Gradle Recipes for Android Master the New Build System for Android 英文pdf
Android Pdf Viewer源代码,一款运行于Android平台的PDF文件查看器,在手机上可阅读PDF格式的文件,源代码项目比较完整,一共有100多个代码文件,在Android手机中实现对PDF文件的支持,可参考本项目源码,来自国外,...
随意感受下android pdf,希望大家有分享的心态互相交流呗,不要分哦
android-pdfview是一个Android类库,提供一个快速读取显示Android PDF文件的组件——PDFView,该组件支持手势、动画和缩放。并且基于Google的VuDroid类库解码PDF文件。可以通过手势滑动PDF文件、对PDF文件进行放大...
android pdf 实现查看功能,包含源码和jar包提供,使用说明等!
androidPDF
用的是droidtext库 网上有个教程:http://blog.csdn.net/qp120291570/article/details/8849791