'How to call custom uri using content provider kotlin

Basically what i want to call a SOS number using the android content provider from a smart watch. I have searched a lot but not able to find the correct path to implement this. this is the uri:

content://[MY_URI]/table where cmd_key=SOS1

Here is what i have done:

   val cr = contentResolver
   cr.call(Uri.parse(APIURL.CONTENT_URL), "myFunction", "SOS1", null)

Your help will be appreciated. Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source