title: Get Selected String from the ListView
body: <p>I have ListView in my project which has ListItems as in the form of String like this, </p>
  
  <p>Complete Task By Today<br>
  Assign Projects To Developers<br>
  Meeting Cancelled </p>
  
  <p>if click any one of the item from  ListView means i want that particular String should be displayed in my EditText(i,e if click meeting cancelled, i need this particular String to display in EditText).Any one guide me,This is how i'm trying to Achieve.enter code here Thanks in advance.</p>
  
  <p>final ListView listView = (ListView) findViewById(R.id.taskListDesc);
          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {</p>
  
  <pre><code>        @Override
          public void onItemClick(AdapterView&lt;?&gt; adapter, View view, int selectedItem,
                  long arg3) {
  
              System.out.println(adapter.getItemAtPosition(selectedItem));
  
              Intent intent = new Intent(getApplicationContext(),
                      ViewTaskActivity.class);
              startActivity(intent);
          }
      });
  }
  </code></pre>