com.h20.course.tp4
Class TP4

java.lang.Object
  extended by ListActivity
      extended by com.h20.course.tp4.TP4

public class TP4
extends ListActivity

This class implements the first part of the course homework. It simply displays a list of addresses into the screen.

Author:
fpereira

Constructor Summary
TP4()
           
 
Method Summary
 boolean onContextItemSelected(MenuItem item)
          The actions that will take place once a context menu is selected.
 void onCreate(Bundle savedInstanceState)
          Sets up this activity.
 void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
          Creates a new context menu, once an item in the list is clicked.
 boolean onCreateOptionsMenu(Menu menu)
          Creates the menu for this application.
 boolean onMenuItemSelected(int featureId, MenuItem item)
          Define the event handler for when one item of the menu is selected.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TP4

public TP4()
Method Detail

onCreate

public final void onCreate(Bundle savedInstanceState)
Sets up this activity.

Parameters:
savedInstanceState - the parameters to the activity.

onCreateOptionsMenu

public final boolean onCreateOptionsMenu(Menu menu)
Creates the menu for this application.

Parameters:
menu - the Menu instance that will aggregate the menu items.
Returns:
always true.

onMenuItemSelected

public final boolean onMenuItemSelected(int featureId,
                                        MenuItem item)
Define the event handler for when one item of the menu is selected.

Parameters:
featureId - the item that was chosen by the user.
item - the item that was chose by the user.
Returns:
a boolean value.

onCreateContextMenu

public final void onCreateContextMenu(ContextMenu menu,
                                      View v,
                                      ContextMenuInfo menuInfo)
Creates a new context menu, once an item in the list is clicked.

Parameters:
menu - the object that joins all the context menus together.
v - the view where the menu will pop up.
menuInfo - information related to the menu.

onContextItemSelected

public final boolean onContextItemSelected(MenuItem item)
The actions that will take place once a context menu is selected.

Parameters:
item - the menu item selected.
Returns:
always true.