Android Question ContentResolver for file pdf

Discussion in 'Android Questions' started by Roberto P., Jul 3, 2015.

  1. Roberto P.

    Roberto P. Well-Known Member Licensed User

    I created an application that opens the PDF file, with an activity that works well with Samsung Tablet and smartphone but does not work with other devices?

    Here error shown in Figure



    someone knows how I configure indicate AndroidManifest?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The image is missing.
     
  3. Roberto P.

    Roberto P. Well-Known Member Licensed User

    here it is

    upload_2015-7-6_7-35-30.png
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the code that generates this error?
     
  5. Roberto P.

    Roberto P. Well-Known Member Licensed User

    here it is

    Code:
    In.Initialize(In.ACTION_VIEW, "file://" & aFile)
                
    In.SetType("application/pdf")
                
    In.SetComponent("android/com.android.internal.app.ResolverActivity")
    precise that the error I found on Huawei devices
     
    Last edited: Jul 6, 2015
  6. Erel

    Erel Administrator Staff Member Licensed User

    Why are you setting this component? It is not needed.
     
    Last edited: Jul 8, 2015
  7. Roberto P.

    Roberto P. Well-Known Member Licensed User

    I thought it was necessary to solve the problem.
    so it is a test
     
Loading...