Android Question Intent Based Camera & targetsdkversion 26

Discussion in 'Android Questions' started by Pencil3, Feb 14, 2018.

  1. Pencil3

    Pencil3 Member Licensed User

    Trying to use the Intent Based Camera Tutorial with a targetsdkversion set to 26 and receive the below error.

    (FileUriExposedException) android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/b4a.example/files/tempimage.jpg exposed beyond app through ClipData.Item.getUri()
    Believe I need to use fileProvider, but I'm not sure what exactly. Is this Tutorial a step in the right direction?
  2. DonManfred

    DonManfred Expert Licensed User

    Erel likes this.
  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