The right way to make Uri to solve content?

Reading the previous posts, I can check the entire content provider that is on my system.

I was wondering what is the right way to make Uri to allow content? We just put it all the way like Uri.parse("content://org.company.example.sampleprovider/items"); or should we go step by step like

  Uri.builder.scheme("content://"); Uri.builder.authority("org.company.example.sampleprovider"); 

What is the right next step for getting items? How is Uri.matcher used? in this whole procedure?

+4
source share

Source: https://habr.com/ru/post/1415721/


All Articles