title: URI(Uniform Resource Identifier)?
body: <ol>
  <li><p>What does <code>Uri</code> actually do in android?</p></li>
  <li><p>ContactsContract.Contacts.CONTENT_URI</p>
  
  <p>what is the purpose of <code>CONTENT_URI</code> here?</p></li>
  <li><p><code>Uri uri = data.getData();
  Intent intent = new Intent(Intent.ACTION_VIEW, uri);</code></p>
  
  <p>why did they use Uri here?</p></li>
  <li><p><em>Is there any</em> <strong>substitute</strong> <em>of Uri?</em></p></li>
  </ol>
  
  <p><em>P.S I've googled it, went to AndroidDevelopers website, still confused.</em></p>
  
  <p><strong>the code for reference</strong> </p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      public boolean onTouchEvent(MotionEvent motionEvent) {  
          if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {   
              startActivityForResult(new Intent
            (Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI),PICK_CONTACT_REQUEST);
  
              return true;
          }
          return false;
      }
  
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  
          if (requestCode == PICK_CONTACT_REQUEST) {
              if (resultCode == RESULT_OK) {
                  Uri uri = data.getData();
                  Intent intent = new Intent(Intent.ACTION_VIEW, uri);  
                  startActivity(intent);
              }
          }
      }
  </code></pre>
  
  <p>wasn't I supposed to put the name of a class here -> <code>new Intent(Intent.ACTION_VIEW,</code><strong>uri</strong><code>);</code></p>