title: Get value from database in autocomplete textview and show relative values in textviews
body: <p>Suppose I have this database table:</p>
  
  <pre><code>Name: A,B,C,D
  
  Id:   1,2,3,4
  
  Phone no: 991,928,902,397
  </code></pre>
  
  <p>I am using an autocomplete textview for showing the names.the autocomplete code is here:</p>
  
  <pre><code>final ArrayList&lt;String&gt; s1 = new ArrayList&lt;String&gt;();
  
  
          for (StudentInfo cn : studentInfo) {
              s1.add(cn.getName());
  
          }
          ArrayAdapter&lt;String&gt; adapter =  new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_dropdown_item_1line,s1); 
  
          a1.setThreshold(1); 
          a1.setAdapter(adapter);
  </code></pre>
  
  <p>Here <code>a1 is the autocomplete textview</code>.Now If I select a name from autocomplete textview suppose B.Then the Id and Phone no of B is 2 and 902 which I want to show as 2 text view.Here actually I want to show the relative id and phone no of the name in two textview t1,t2.</p>
  
  <pre><code>a1.setOnItemClickListener(new OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                      long arg3) {
  
  
   }
          });
  </code></pre>