Android7.0相机相册闪退处理,向下兼容

上传者: xiangxiang_8_8 | 上传时间: 2019-12-21 22:00:56 | 文件大小: 2.62MB | 文件类型: rar
上一篇博文其实解决过这个问题,但是,博主更希望能够一行代码调起相机和相册,并且回调拿到相应的bitmap,于是,在上一篇博文的基础上,博主又进行了相关优化,并且将相机相册的调用封装成了一个jar包,让和博主一样希望更简单写代码的诸位能够更轻松的使用相机相册。注明:该jar包处理了7.0的相机调起异常,向下兼容。

文件下载

资源详情

[{"title":"( 51 个子文件 2.62MB ) Android7.0相机相册闪退处理,向下兼容","children":[{"title":"CGCamera","children":[{"title":"CGCamera.jar <span style='color:#111;'> 19.33KB </span>","children":null,"spread":false},{"title":"TestCamera","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 1.35MB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"CGCamera-f759a39c13633b6a277881dbde97b8b8.jar <span style='color:#111;'> 9.97KB </span>","children":null,"spread":false},{"title":"android-support-v4-5913d7d5e4de64d02dc635ca571520c2.jar <span style='color:#111;'> 445.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"testcamera","children":[{"title":"MainActivity.class <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 761B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"R$xml.class <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 443B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 41.29KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"TestCamera.apk <span style='color:#111;'> 493.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 372B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"xml","children":[{"title":"filepath1.xml <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"testcamera","children":[{"title":"BuildConfig.java <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"testcamera","children":[{"title":"MainActivity.java <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 846B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </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.49KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 1.30MB </span>","children":null,"spread":false},{"title":"CGCamera.jar <span style='color:#111;'> 19.33KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"readme.txt <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 98kai :
    按照readme里面的步骤来报错了在manifest中添加provider的第一行android:name="cn.com.cg.core.camera.CGFileProvider"报错内容:Val
    2020-05-19

免责申明

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