# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
调用系统相机和相册并实现上传单张图片
共47个文件
class:12个
xml:10个
png:9个
1星 需积分: 11 17 下载量 4 浏览量
2016-05-02
22:05:41
上传
评论 2
收藏 2.74MB ZIP 举报
温馨提示
原理:把Bitmap转为字节数组,然后把自己转换为Base64编码数据的字符串。 图片一般调用系统相机和调用手机本地相册获取.1:调用系统相机可以直接获取到Bitmap,《Bitmap bitmap = data.getExtras().getParcelable("data")即可》 通常我们会裁剪后上传,把此时的bitmapd裁剪之后得到新的bitmap上传。2:调用系统相册获取的图片一般分为Content://开头的和File://开头的,如果是以Content开头的,需要转为Bitmap,再转为File开头的才可以。
资源推荐
资源详情
资源评论
收起资源包目录
UpLoadHead(单张图片上传Demo).zip (47个子文件)
UpLoadHead
.project 846B
project.properties 563B
src
com
example
uploadhead
MainActivity.java 7KB
AndroidManifest.xml 1KB
res
drawable-ldpi
drawable-hdpi
ic_launcher.png 7KB
values-v11
styles.xml 334B
menu
main.xml 372B
drawable-mdpi
ic_launcher.png 4KB
layout
activity_main.xml 1KB
drawable-xxhdpi
ic_launcher.png 24KB
drawable-xhdpi
ic_launcher.png 12KB
values-w820dp
dimens.xml 381B
values
strings.xml 227B
styles.xml 697B
dimens.xml 220B
values-v14
styles.xml 391B
.settings
org.eclipse.jdt.core.prefs 177B
assets
gen
com
example
uploadhead
BuildConfig.java 164B
R.java 3KB
libs
android-support-v4.jar 1.23MB
android-async-http-1.4.6.jar 93KB
.classpath 475B
proguard-project.txt 781B
ic_launcher-web.png 50KB
bin
resources.ap_ 40KB
UpLoadHead.apk 508KB
classes
com
example
uploadhead
R$layout.class 415B
R$style.class 443B
R$dimen.class 473B
BuildConfig.class 353B
R$drawable.class 419B
R$attr.class 352B
R$id.class 532B
R.class 713B
R$string.class 484B
MainActivity$1.class 1KB
R$menu.class 400B
MainActivity.class 7KB
AndroidManifest.xml 1KB
dexedLibs
android-support-v4-5216a6d7adfc6b0062456f35e786b9d8.jar 422KB
android-async-http-1.4.6-5510118a310a462dd25fa39a30c4f3fd.jar 43KB
jarlist.cache 120B
res
crunch
drawable-hdpi
ic_launcher.png 6KB
drawable-mdpi
ic_launcher.png 3KB
drawable-xxhdpi
ic_launcher.png 17KB
drawable-xhdpi
ic_launcher.png 9KB
classes.dex 1.41MB
共 47 条
- 1
资源评论
- qq_308232732016-05-16谢谢楼主分享
新空气SKY
- 粉丝: 1
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功