android - Can't launch intent to show local image -


within fragment, trying start intent display local image gallery app on phone.

the 3 lines in question are

string path = string.format ("content:/{0}.jpg", cachecontroller.static.getpath (m)); android.net.uri uri = android.net.uri.parse(path); startactivity (new intent (intent.actionview, uri)); 

the value of path content://data/data/appname.subname/files/cache/107.jpg.

i tried using file:/ @ beginning of uri didn't help.

you trying share image in folder private app. first need copy image public folder , make intent pointing image. have here , here


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -