答案 0 :(得分:1)
以下是OneDrive SDK for Android的快速示例,它将显示驱动器ID和剩余空间的祝酒。
oneDriveClient
.getDrive()
.buildRequest()
.get(new ICallback<Drive>() {
@Override
public void success(final Drive drive) {
final String msg = "Found Drive " + drive.id + ", with " drive.quota.remaining + " bytes available";
Toast.makeText(getActivity(), msg, Toast.LENGTH_SHORT).show();
}
});