Closed DavidVasquezMindstrong closed 3 years ago
@DavidVasquezMindstrong I first recommend using the Android SDK version 4.2.3 found here. I apologize, but version 5.0.0 is a a beta. Also, I recommend trying to a run simple upload command as shown in our docs here. If this works, then I would try doing what you are doing with BoxFutureTask
.
Also, some sample code can be found here in our sample app. I hope this helps!
Thanks for the response. The samples helped me to get to the solution. I ended up adding a completion listener to the future task
boxFutureTask.addOnCompletedListener(boxResponse -> {
if (boxResponse.isSuccess()) {
fileId = ((BoxFile) boxResponse.getResult()).getId();
}
});
Thanks again
Hello
I'm uploading files using the sdk
com.box:box-android-sdk:5.0.0
. After the file has been successfully uploaded, I try to get the file ID but it always returnsnull
.After the file is uploaded, I use
uploadFile.getId()
, but this always returnsnull
Can anyone help me to solve how to get the ID of the file?
Thank you