yedawei007 / android-weibo-sdk

Automatically exported from code.google.com/p/android-weibo-sdk
0 stars 0 forks source link

How to use ShareActiivty by send button? #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when I encounter this method followed:
setHeader(method, request, params, url, token);
I get a error : auth fail.

when steping into the method , I found that "mAuth" is null.

if (!isBundleEmpty(authParam) && mAuth !=null) {
            authHeader = mAuth.getWeiboAuthHeader(httpMethod, url, authParam, Weibo.getAppKey(),
                    Weibo.getAppSecret(), token);
            if (authHeader != null) {
                request.setHeader("Authorization", authHeader);
            }
        }

but,when I get the request token and access token, "mAuth" is setted like this:
Utility.setAuthorization(new RequestTokenHeader());
Utility.setAuthorization(new AccessTokenHeader());

so,what "mAuth" can be setted when I call the sina api to avoid "mAuth" null?

Original issue reported on code.google.com by liyuejia...@gmail.com on 20 Apr 2012 at 6:30