Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android使用java sdk获取不了空间使用情况 #6

Open
CXXN008 opened this issue May 19, 2015 · 4 comments
Open

Android使用java sdk获取不了空间使用情况 #6

CXXN008 opened this issue May 19, 2015 · 4 comments

Comments

@CXXN008
Copy link

CXXN008 commented May 19, 2015

我的代码是

    private long usage;
    private UpYun upYun;

    upYun = new UpYun("...","...","...");
    new Thread(new Runnable() {
        @Override
        public void run() {
            usage = upYun.getBucketUsage();
            Log.i("slz",usage+"");
        }
    }).start();

返回是-1
但是同样的代码在java项目中可以用

@wxlfight
Copy link
Contributor

正在测试重现问题,请稍后...

@stdying
Copy link

stdying commented May 19, 2015

UpYun(String bucketName, String userName, String password),
password 密码为操作员密码,不是登录密码,请确认是否正确。

@CXXN008
Copy link
Author

CXXN008 commented May 19, 2015

完整代码和日志:
java
android

java project中行,android project不行,但我用nexus4去运行又是好的,好诡异。。。

@wxlfight
Copy link
Contributor

本地在android 和真机上测试是ok的。如果还没有解决问题,请提供一个重现问题的方法,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants