title: how to show popup when an item from listview is selected?
body: <p>//This is the main activity which displays the list</p>
  
  <pre><code> public class MainActivity extends ListActivity
  {
          protected void onCreate(Bundle savedInstanceState) 
          {
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.activity_main);
                      final ListView listView=(ListView) findViewById(R.id.times_list);
                  timeTrackerAdapter=new TimeTrackerAdapter();
                  listView.setAdapter(timeTrackerAdapter);
                  listView.setOnItemClickListener(new OnItemClickListener() {
  
                  @Override
                  public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                      long arg3) {
                  //how to show a popup or dialog box 
                      //my popup layout file is popup_layout_file.xml
  
                  }
              });
  
           }
    }
  </code></pre>