public abstract class

LauncherActivity

extends ListActivity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ android.app.ListActivity
             ↳ android.app.LauncherActivity

Class Overview

Displays a list of all activities which can be performed for a given intent. Launches when clicked.

Summary

Nested Classes
public abstract class LauncherActivity.IconResizer Utility class to resize icons to match default icon size. 
public abstract class LauncherActivity.ListItem An item in the list  
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
Public Constructors
LauncherActivity()
Public Methods
List<LauncherActivity.ListItem> makeListItems()
Perform the query to determine which results to show and return a list of them.
Protected Methods
Intent getTargetIntent()
Get the base intent to use when running queryIntentActivities(Intent, int).
Intent intentForPosition(int position)
Return the actual Intent for a specific position in our ListView.
void onCreate(Bundle icicle)
Called when the activity is starting.
void onListItemClick(ListView l, View v, int position, long id)
This method will be called when an item in the list is selected.
[Expand]
Inherited Methods
From class android.app.ListActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback

Public Constructors

public LauncherActivity ()

Public Methods

public List<LauncherActivity.ListItem> makeListItems ()

Perform the query to determine which results to show and return a list of them.

Protected Methods

protected Intent getTargetIntent ()

Get the base intent to use when running queryIntentActivities(Intent, int).

protected Intent intentForPosition (int position)

Return the actual Intent for a specific position in our ListView.

Parameters
position The item whose Intent to return

protected void onCreate (Bundle icicle)

Called when the activity is starting. This is where most initialization should go: calling setContentView(int) to inflate the activity's UI, using findViewById(int) to programmatically interact with widgets in the UI, calling managedQuery(android.net.Uri, String[], String, String[], String) to retrieve cursors for data being displayed, etc.

You can call finish() from within this function, in which case onDestroy() will be immediately called without any of the rest of the activity lifecycle (onStart(), onResume(), onPause(), etc) executing.

Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

Parameters
icicle If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in onSaveInstanceState(Bundle). Note: Otherwise it is null.

protected void onListItemClick (ListView l, View v, int position, long id)

This method will be called when an item in the list is selected. Subclasses should override. Subclasses can call getListView().getItemAtPosition(position) if they need to access the data associated with the selected item.

Parameters
l The ListView where the click happened
v The view that was clicked within the ListView
position The position of the view in the list
id The row id of the item that was clicked