Android
android.app
public class

android.app.AliasActivity

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.AliasActivity

Stub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data. This is a simple way to implement an alias-like mechanism.

Summary

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

Fields

public    final  String  ALIAS_META_DATA  This is the name under which you should store in your component the meta-data information about the alias. 

Public Constructors

            AliasActivity()

Protected Methods

          void  onCreate(Bundle savedInstanceState)
Called when the activity is starting.
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

Fields

public final String ALIAS_META_DATA

This is the name under which you should store in your component the meta-data information about the alias. It is a reference to an XML resource describing an intent that launches the real application.
Constant Value: "android.app.alias"

Public Constructors

public AliasActivity()

Protected Methods

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