Android
android.app
public abstract class

android.app.LauncherActivity

java.lang.Object
android.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity ComponentCallbacks KeyEvent.Callback LayoutInflater.Factory View.OnCreateContextMenuListener Window.Callback
android.app.ListActivity
android.app.LauncherActivity

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

Summary

Constants inherited from class android.app.Activity
Constants inherited from class android.content.Context
Fields inherited from class android.app.ListActivity

Public Constructors

            LauncherActivity()

Protected Methods

abstract          Intent  getTargetIntent()
          void  onCreate(Bundle savedInstanceState)
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.
Methods inherited from class android.app.ListActivity
Methods inherited from class android.app.Activity
Methods inherited from class android.view.ContextThemeWrapper
Methods inherited from class android.content.ContextWrapper
Methods inherited from class android.content.Context
Methods inherited from class java.lang.Object
Methods inherited from interface android.content.ComponentCallbacks
Methods inherited from interface android.view.KeyEvent.Callback
Methods inherited from interface android.view.LayoutInflater.Factory
Methods inherited from interface android.view.View.OnCreateContextMenuListener
Methods inherited from interface android.view.Window.Callback

Details

Public Constructors

public LauncherActivity()

Protected Methods

protected abstract Intent getTargetIntent()

protected void onCreate(Bundle savedInstanceState)

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

savedInstanceState 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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48