xuyin58
AVUser user = new AVUser(); user.setUsername(fieldsJson.getString("username")); user.setPassword(fieldsJson.getString("password")); user.signUpInBackground().subscribe(new Observer<AVUser>() { @Override public void onSubscribe(Disposable disposable) { } @Override public void onNext(AVUser avUs…
最终我通过这样获得了错误码: AVException avException = new AVException(throwable); int code = avException.getCode(); JSONObject errorCode = new JSONObject(); errorCode.put("code", code); errorCode.put("message", throwable.getMessage());
比如我想获得上传进度和上传过程出现的问题等? 用的最新版sdk'cn.leancloud:storage-android:5.0.20'; 发现api说明文档和GitHub关于avfile类的案例都太老旧了. 比如新版这个函数就无返回值,而说明文档可以获得返回值 说明文档 : avFile.saveInBackground(new ProgressCallback(){ @Override public void done(Integer percentDone) { } }); 而这个: avFile.saveInBackground().subscribe((new Observer<…
你给我这个链接,我和上边那个链接(说明文档)是一样的呀, 这个文档说明有误: Observable<AVFile> result = file.saveInBackground(new ProgressCallback() { @Override public void done(Integer percent) { // percent 是一个 0 到 100 之间的整数,表示上传进度 } }); 实际使用中并没有返回值; 2019-08-12_180158.png 701x1079 88.3 KB 这个我知道可以获得上传进度,除了上传进度我还想获得上传过程中出现的问题;