Change setType() to setDataAndType(), and get rid of EXTRA_STREAM. EXTRA_STREAM is used for ACTION_SEND, not ACTION_VIEW, and so the Gallery has no idea what it is that you are asking it to view.
↧
Answer by CommonsWare for Sharing images from internal storage using FileProvider
↧