Set Avatar:
New//drawable drawable = drawable.createfrompath (path); Avator.setbackgrounddrawable (drawable);
String filepath = "/sdcard/paiyipai.jpg"= bitmapfactory.decodefile (filepath); // Btimapdrawable is a subclass of drawable, and ultimately directly uses the BD object. bitmapdrawable bd=new bitmapdrawable (BM); Imageview.setbackgrounddrawable (BD);
Reference:
Seven Qiniu store Android client and Java service-side code written. http://www.mamicode.com/info-detail-551140.html
Android client implements seven Cow cloud storage file upload. http://blog.csdn.net/lixiaodaoaaa/article/details/42713563
Android Development upload image to seven Cow cloud storage server. http://www.2cto.com/kf/201503/385879.html
Seven cow Android upload token generation and upload. http://download.csdn.net/detail/hehuoren1/8553977
Android image upload (Avatar cut + original). http://www.2cto.com/kf/201501/371520.html
Android upload image clipping feature. http://www.open-open.com/lib/view/open1352201409844.html
Android Development (25)--android uploading files to seven kn