I am trying to share an image. To do so i need the path of the bitmap to send it in Uri. The current line i have is deprecated and depending on the API result Null.
String path = MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, "Challengers", null);
What is the proper way to get the path of a Bitmap to share a Bitmap to other app using Uri?
Thanks in advance for your help.