摘要: Oauth认证作为当前主流的开发公共API认证方式,越来越受到一些开发者的使用。它主要是为了保证账号的安全性。下面以新浪微博API为例:OAuth2的authorize接口URLhttps://api.weibo.com/oauth2/authorizeHTTP请求方式GET/POST请求参数必选类型及范围说明client_idtruestring申请应用时分配的AppKey。redirect_uritruestring授权回调地址,站外应用需与设置的回调地址一致,站内应用需填写canvas page的地址。response_typefalsestring返回类型,支持code、token,默 阅读全文
posted @ 2012-08-11 15:14 暗殇 阅读(665) 评论(0) 推荐(0)
摘要: /**截屏操作 * * 把图片保存到SD卡 */ private void ScreenShot(View v,String fileName){ View view = v.getRootView(); view.setDrawingCacheEnabled(true); Bitmap bitmap = view.getDrawingCache(); FileOutputStream fos = null; File dirFile = new File(DIRPAT... 阅读全文
posted @ 2012-08-11 14:59 暗殇 阅读(329) 评论(0) 推荐(0)