title: How to apply notifications in OnItemClickListener?
body: <p>I have 3 errors in the code of notification using OnItemClickListener 
  i need to apply that when an item is clicked it display notification
  here is the code: </p>
  
  <pre><code>    list.setOnItemClickListener(new OnItemClickListener(){
  
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              // TODO Auto-generated method stub
  
  
              Bundle programNum = getIntent().getExtras();
              final String progNum = programNum.getString("ProgNum");
              final String dayNum = programNum.getString("DayNum");
  
              final List&lt;TouringPrograms&gt; startTime = datasource.getTouringProgramsStartTime(progNum, dayNum);
              final List&lt;TouringPrograms&gt; endTime = datasource.getTouringProgramsEndTime(progNum, dayNum);
  
              Intent intent = new Intent(this, ProgramsList2.class);
              PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0);
              String body = (String) ((TextView)parent.getChildAt(position)).getText();
              String title = "Egypt On The Go";
              String time = body + "\n start at:" + startTime.get(position)+ "\n end at:" + endTime.get(position);
              Notification n = new Notification(R.drawable.egypt, time, System.currentTimeMillis());
              n.setLatestEventInfo(this, title, time, pi);
              n.defaults = Notification.DEFAULT_ALL;
              nm.notify(uniqueID, n);
              //String time1 = "" + System.currentTimeMillis();
              //Toast.makeText(this, time1, Toast.LENGTH_SHORT).show();
              //finish();
  
          }});
  </code></pre>
  
  <p>the 3 error :</p>
  
  <p>1.Intent intent = new Intent(this, ProgramsList2.class);</p>
  
  <p>2.PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0);</p>
  
  <p>3.n.setLatestEventInfo(this, title, time, pi);</p>
  
  <p>any help please?</p>