Android Question (Solved)Intent.action.View isn't working on Dropbox

Discussion in 'Android Questions' started by opus, Feb 21, 2015.

  1. opus

    opus Member Licensed User

    Hi, I use the code posted below in the in Manifest-Editor to launch my app when a *.Dat file is clicked in the file-editor. That works! However, if I try to use a file in the Dropbox it doesn't. (Intent.GetExtra("key_filename") is returning nothing)
    What would be a correct or better way to open a file from the dropbox?

      <action android:name=
    "android.intent.action.VIEW" />
      <category android:name=
    "android.intent.category.DEFAULT" />
      <category android:name=
    "android.intent.category.BROWSABLE" />
      <data android:scheme=
    "file" />
      <data android:mimeType=
    "*/*" />
      <data android:pathPattern=
    ".*\\.dat" />
      <data android:host=
    "*" />
  2. Mahares

    Mahares Well Known Member Licensed User

    Dropbox allows only certain files with a given extension. This link has a list of the permitted extensions.
    Dat is not one of the extensions permitted. Try to change the file extension or contact Dropbox support and ask them to add the extension specifically to your app. I hope this answers your question as I had a similar situation.
  3. opus

    opus Member Licensed User

    Thanks, I'll change the extension.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice