title: All items dialling the same number in ListView
body: <p>I have successfully allowed my application to dial a number (in this case 123), when clicking on a <code>ListView</code> item. However, I have three <code>ListView</code> items and I want them all do dial separate numbers.  For example:</p>
  
  <p>Item 1: 123</p>
  
  <p>Item 2: 321</p>
  
  <p>Item 3: 231</p>
  
  <p>At present, they all dial number 123.</p>
  
  <p>Any help on differentiating between <code>ListItems</code> would be appreciated. </p>
  
  <pre><code>ListView simpleList;
          String contactList[] = {"X", "Y", "Z"};
  
          simpleList = (ListView)findViewById(R.id.contact_list);
          ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.activity_contact_list_view, R.id.textView, contactList);
          simpleList.setAdapter(arrayAdapter);
  
  simpleList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @SuppressLint("MissingPermission")
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  String value = (String)parent.getItemAtPosition(position);
  
                  Intent callIntent = new Intent(Intent.ACTION_CALL);
                  callIntent.setData(Uri.parse("tel:123"));
  
                  startActivity(callIntent);
  
              }
          });
  </code></pre>