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
Post a Comment