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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -