Skip to content

How to Preview a File Using Box Java SDK in Android? #1318

@snehas13

Description

@snehas13

Hi,

I'm using the Box Java SDK in my Android app to access and preview files. I’m trying to generate a preview link using:

However, previewLink is always null, even though the file is a supported type (PDF, DOCX, etc.).

What I’ve Checked:
The file is uploaded and accessible.
The file type is supported for preview.
I’m authenticated using a valid developer token.
The file has been uploaded for a while, so it should be processed.

Questions:
Are there specific scopes or permissions required for getPreviewLink() to work?
Is this method supported in Android, or should I use a different approach?
Any known issues or workarounds?
Thanks in advance for any help!

Metadata

Metadata

Labels

questionAdded to questions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions