选择本地图片

上传者: abc6368765 | 上传时间: 2023-03-12 15:59:47 | 文件大小: 2.82MB | 文件类型: ZIP
主要实现了用户头像的上传功能: 1、打开相册或者相机,获取用户选择的图片路径 2、图片缩放加载进入内存 3、对图片进行压缩并转换为base64编码格式的字符串。 4、根据服务器端提供的接口,简单描述用户头像上传的思路。

文件下载

资源详情

[{"title":"( 79 个子文件 2.82MB ) 选择本地图片","children":[{"title":"ChoosePicturesDemo","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 1.40MB </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},{"title":"upload.png <span style='color:#111;'> 356B </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":"android-support-v4-1c6902caa938dc8ca3ec8fda326a8f43.jar <span style='color:#111;'> 460.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"choose","children":[{"title":"BuildConfig.class <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"ChooseFragment.class <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"BaseActivity$2.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 538B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 461B </span>","children":null,"spread":false},{"title":"ChooseFragment$1.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"view","children":[{"title":"SelectPicPopupWindow$1.class <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"SelectPicPopupWindow.class <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$attr.class <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"ChooseActivity$2.class <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 719B </span>","children":null,"spread":false},{"title":"ChooseActivity$3.class <span style='color:#111;'> 994B </span>","children":null,"spread":false},{"title":"BaseActivity.class <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"BaseActivity$1.class <span style='color:#111;'> 985B </span>","children":null,"spread":false},{"title":"ChooseFragment$2.class <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"ChooseFragment$3.class <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"adapter","children":[{"title":"UploadImageAdapter.class <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"ChooseActivity.class <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"ChooseFragmentActivity.class <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"BaseActivity$OnFragmentResult.class <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"ImageUtils.class <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"ImgToBase64Util.class <span style='color:#111;'> 26.22KB </span>","children":null,"spread":false},{"title":"LogUtil.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$style.class <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"ChooseActivity$1.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 45.29KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"ChoosePicturesDemo.apk <span style='color:#111;'> 524.77KB </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;'> 378B </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},{"title":"upload.png <span style='color:#111;'> 1.52KB </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;'> 181B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 978B </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":"anim","children":[{"title":"push_bottom_in.xml <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"push_bottom_out.xml <span style='color:#111;'> 354B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"layout_popupwindow_pic.xml <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"fragment_choose.xml <span style='color:#111;'> 952B </span>","children":null,"spread":false},{"title":"activity_choose_fragment.xml <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"activity_choose.xml <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true},{"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":"choose","children":[{"title":"BuildConfig.java <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 3.52KB </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":"choose","children":[{"title":"view","children":[{"title":"SelectPicPopupWindow.java <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"adapter","children":[{"title":"UploadImageAdapter.java <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"ChooseActivity.java <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"BaseActivity.java <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"ChooseFragmentActivity.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"LogUtil.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"ImgToBase64Util.java <span style='color:#111;'> 25.86KB </span>","children":null,"spread":false},{"title":"ImageUtils.java <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"ChooseFragment.java <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 854B </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.13KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 1.36MB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

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