title: get data from customize listview
body: <p>Here is my code,</p>
  <pre><code>public class SecondScreenActivity extends Activity {
  ListView foodJntListView;
  ArrayList&lt;Restaurent&gt; restaurentData;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      setContentView(R.layout.second_screen);
  
      restaurentData = getFoodJnt();
  
      foodJntListView=(ListView)findViewById(R.id.listView_foodjnt);
      foodJntListView.bringToFront();
  
      // setting the adapter to the list 
      foodJntListView.setAdapter(new RestaurantBaseAdapter(this,restaurentData));
  
      //setting the onclick listener,activity on clicking on an item of the 
      foodJntListView.setOnItemClickListener(new OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position,
                  long id) {
              // TODO Auto-generated method stub
              String hotelname=restaurentData.get(position).toString();
               //things to write
          }
      });
  }
  
  // get all the list of foodjoints
  
  private ArrayList&lt;Restaurent&gt; getFoodJnt() {
      // TODO Auto-generated method stub
      ArrayList&lt;Restaurent&gt; results=new ArrayList&lt;Restaurent&gt;();
  
      Restaurent restrnt=new Restaurent();
  
      restrnt.setFoodJointname(&quot;Ashila&quot;);
      restrnt.setCuisine(&quot;Biriyani,Moughlai&quot;);
      restrnt.setAddress(&quot;Kolkata,E M Bypass&quot;);
      restrnt.setOpenhours(&quot;10:00am-10:00pm&quot;);
      results.add(restrnt);
  
      restrnt=new Restaurent();
      restrnt.setFoodJointname(&quot;Bhajohori Manna&quot;);
      restrnt.setCuisine(&quot;Bengali,Chinese&quot;);
      restrnt.setAddress(&quot;Kolkata,Esplanede&quot;);
      restrnt.setOpenhours(&quot;10:00am-10:00pm&quot;);
      results.add(restrnt);
  
      restrnt=new Restaurent();
      restrnt.setFoodJointname(&quot;Bar B Q&quot;);
      restrnt.setCuisine(&quot;Bengali,Chinese,Thai&quot;);
      restrnt.setAddress(&quot;Kolkata,Park Street&quot;);
      restrnt.setOpenhours(&quot;10:00am-10:00pm&quot;);
      results.add(restrnt);
  
      return results;
  }
  
  
  public void makeAToast(String str) {
      //yet to implement
      Toast toast = Toast.makeText(this, str, Toast.LENGTH_SHORT);
      toast.setGravity(Gravity.CENTER, 0, 0);
      toast.show();
  }
  </code></pre>
  <p>I can able to show a customized listview with a bunch of textview on it as it's item but,I want to get the Name of the restauirants setOnItemClick on the List view.</p>
  <p>e.g whenever I click Click on &quot;Bar B Q&quot;,&quot;calcutta Food Court&quot;,it'll show me only &quot;Bar B Q&quot;,&quot;calcutta Food Court&quot; not other informations.
  thnx in advance.Feel free to if u need anything.</p>
  <p><img src="https://i.stack.imgur.com/SoeXO.jpg" alt="enter image description here" />&quot;my application screen shot&quot;</p>