cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Open file in Android Dropbox

Open file in Android Dropbox

DiscoExperiments
New member | Level 2
Go to solution

I'm trying to preview a file entity I've fetched from files-list_folder in Dropbox android app. I've noticed there is files-get_temporary_link endpoint when creating an intent like that:

Intent(Intent.ACTION_VIEW, Uri.parse(tempLink)).setPackage(Pkgs.DROPBOX)

It seems that it can't be resolved by the Dropbox Android app. Is there any way to open Dropbox android app to preview the file?

 

Context:
I'm writing and library for Android launchers that queries APIs for application user has installed on their device for user searchable data (dropbox file in this case) and allows the user to access this data directly from the launcher. I was able to integrate multiple could storage services but I struggle with dropbox.

1 Accepted Solution

Accepted Solutions

DiscoExperiments
New member | Level 2
Go to solution

I've found a way to open a file in Dropbox Android app by creating a shared link via this endpoint sharing-create_shared_link_with_settings - then creating Intent with this url and package set to dropbox - like in the code above. We can close this now.

View solution in original post

1 Reply 1

DiscoExperiments
New member | Level 2
Go to solution

I've found a way to open a file in Dropbox Android app by creating a shared link via this endpoint sharing-create_shared_link_with_settings - then creating Intent with this url and package set to dropbox - like in the code above. We can close this now.

Need more support?