Good day. I began to learn android and now I study the explicit and implicit intents. So I open the contacts from the application


public void openContactList(View v) { Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivity(intent); } 

Got a question:

For example, I need to open an SMS list or, say, a calendar. This is where to get this (Intent.ACTION_PICK), and especially this (ContactsContract.Contacts.CONTENT_URI) part of the code? Can anyone throw a silk on a section in the documentation or article where it is described?

    2 answers 2

    Official Android Documentation - Intent Class

    Official Android Documentation - Intent Class Description

      I can advise a good library, greatly simplifying the work with implicit intents. On the docks you can find a list of them. https://github.com/marvinlabs/android-intents