android - How to get the path of an image stored in internal storage? -
i want path of image internal storage.
if (requestcode == take_photo_code && resultcode == result_ok) { log.d("camerademo", "pic saved"); string whatsappmessage = "this number plate of vehicle in going travel "; //you can read image external drove uri uri = uri.parse("here want path of image stored in internal storage"); intent intent = new intent(); intent.setaction(intent.action_send); intent.putextra(intent.extra_text, whatsappmessage); intent.settype("text/plain"); intent.putextra(intent.extra_stream,uri); intent.settype("image/jpg"); intent.setpackage("com.whatsapp"); startactivity(intent); }
how it?
for internal
environment.getdatadirectory()
for external
environment.getexternalstoragedirectory()
Comments
Post a Comment