人人网开放平台开发Renren-api-android-sdk-3.0-Demo 如何获得access_token最好写个例子程序我看看,比如可以在人人网上发条信息,或者发照片
解决方案 »
- 怎么用openGL播放视频啊
- android2.1 如何通过手机号码查找联系人?
- 关于ListView的一个问题
- APK更新问题?
- JNI高手来帮忙出点建议
- Waiting for HOME ('android.process.acore') to be launched...
- developer.android.com 上不去了 我们的系统检测到您的计算机网络中存在异常流量
- android中读取并显示excel
- PopupWindow.setSplitTouchEnabled(true);是什么意思?
- android 画图(循环,重绘)
- android不明原因报错
- http请求,使用GZIP,但是不成功,急求各位~~!!
授权的sdk里有封装,public void authorize(Activity activity, PasswordFlowRequestParam param, final RenrenAuthListener listener) {
if (this.isSessionKeyValid()) {
listener.onComplete(new Bundle());
return;
}
if(param.getPermissions() == null) {
param.setPermissions(DEFAULT_PERMISSIONS);
}
PasswordFlowHelper passwordFlowHelper = new PasswordFlowHelper();
param.setApiKey(apiKey);
param.setSecretKey(secret);
passwordFlowHelper.login(activity, param, listener, this);
}
所以初始化了class之后直接用
renren.authorize(activity, listener);
调用就行了。
下面是自己写的发状态的封装。public void publishStatus(String status){
StatusSetRequestParam param = new StatusSetRequestParam(status);
AsyncRenren aRenren = new AsyncRenren(renren);
aRenren.publishStatus(param, null, true);
}