Android Question Problems with FileProvider and intent.

Discussion in 'Android Questions' started by Lowegaterecords, Dec 7, 2018.

  1. Lowegaterecords

    Lowegaterecords Member Licensed User

    Hi I'm having problems with the FileProvider, I can not open pdf files with an external app. I use an intent to view other apps, but no apps appear in the selection panel, a message appears saying (that the app for this intent has either been blocked or not installed) but outside of my app in the device are installed. I do not see the problem can someone help me?

    Sub BtApriCon_Click
    File.Copy(File.DirDefaultExternal,FileName, Starter.Provider.SharedFolder,FileName)
    Dim ia As Intent
        ia.Initialize (ia.ACTION_VIEW,
    "" )
        ia.SetType ( 
    "application/pdf" )
        ia.WrapAsIntentChooser ( 
    "Select" )
        ia.Flags = 
        StartActivity (ia)
    ToastMessageShow("Select App",True)

    End Sub
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which version of Android are you using?
  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