android拍照保存至SD卡并生成预览(非调用系统拍照功能)

上传者: daijian79 | 上传时间: 2021-09-22 20:31:00 | 文件大小: 703KB | 文件类型: ZIP
这是一个自制简易相机的范例,本程序以Activity为基底,在Layout配置1个”拍照”按钮和一个预览取景框。当单击“拍照”按钮,程序将画面截取下来,存储在SD存储卡临时盘中,最后将拍下来的图片文件显示在Activity里的ImageView中。

文件下载

资源详情

[{"title":"( 56 个子文件 703KB ) android拍照保存至SD卡并生成预览(非调用系统拍照功能)","children":[{"title":"camera","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 324.29KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"camera.apk <span style='color:#111;'> 158.12KB </span>","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"camera","children":[{"title":"MainActivity.class <span style='color:#111;'> 5.01KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"MainActivity$3.class <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"TakePictureRunnable.class <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"PreviewActivity.class <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"MainActivity$4.class <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 395B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 21.42KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"activity_preview.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 108B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 89B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"preview.xml <span style='color:#111;'> 596B </span>","children":null,"spread":false},{"title":"activity_preview.xml <span style='color:#111;'> 511B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 36.23KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"camera","children":[{"title":"BuildConfig.java <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"camera","children":[{"title":"MainActivity.java <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"TakePictureRunnable.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"PreviewActivity.java <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 341.07KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • zbl12345 :
    很不错可以用
    2015-06-25
  • rong324400497 :
    下不了!不知怎么回事!
    2015-01-06
  • l_fxxx :
    真棒~有帮助
    2014-10-24
  • futurezym :
    不错 自制的 确实不是调用系统相机功能
    2014-08-04
  • myloveisnt :
    这个做的相对简单
    2014-07-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明