public void openPDFReader(int index) {  if (dataList != null && dataList.size() > index) {   CoverFlowData tempData = dataList.get(index);//   Log.v("wenjianming>>>>>>>>>>", Global.magazinePath+tempData.name+".pdf");         File file = new File(Global.magazinePath+tempData.name+".pdf");         if (file.exists()) {             Uri path = Uri.fromFile(file);             Intent intent = new Intent(Intent.ACTION_VIEW);             intent.setDataAndType(path, "application/pdf");             intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);             try {                 startActivity(intent);             }             catch (ActivityNotFoundException e) {                 Toast.makeText(ActivityCoverFlow.this,                     "No Application Available to View PDF",                     Toast.LENGTH_SHORT).show();             }          }  }


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Launcher2
  2. android反编译apk文件
  3. IDA动态调试Android的DEX文件
  4. android后台获取当前屏幕截图(screencap.c
  5. Eclipse 不能finish android工程
  6. 2012-7-23 android shape
  7. SharePreferences实现
  8. android 学习之---Android之GoogleMap(转
  9. Android home键和back键区别
  10. Android中使用SVG矢量图打造多边形图形框