close
The Wayback Machine - https://web.archive.org/web/20170204123936/https://developer.android.com/reference/android/app/AliasActivity.html
Skip to content

Most visited

Recently visited

navigation

AliasActivity

public class AliasActivity
extends Activity

java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ 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. To use this activity, you should include in the manifest for the associated component an entry named "android.app.alias". It is a reference to an XML resource describing an intent that launches the real application.

Summary

Inherited constants

BERJAYAFrom class android.app.Activity
BERJAYAFrom class android.content.Context
BERJAYAFrom interface android.content.ComponentCallbacks2

Inherited fields

BERJAYAFrom class android.app.Activity

Public constructors

AliasActivity()

Protected methods

void onCreate(Bundle savedInstanceState)

Called when the activity is starting.

Inherited methods

BERJAYAFrom class android.app.Activity
BERJAYAFrom class android.view.ContextThemeWrapper
BERJAYAFrom class android.content.ContextWrapper
BERJAYAFrom class android.content.Context
BERJAYAFrom class java.lang.Object
BERJAYAFrom interface android.view.LayoutInflater.Factory2
BERJAYAFrom interface android.view.Window.Callback
BERJAYAFrom interface android.view.KeyEvent.Callback
BERJAYAFrom interface android.view.View.OnCreateContextMenuListener
BERJAYAFrom interface android.content.ComponentCallbacks2
BERJAYAFrom interface android.view.LayoutInflater.Factory
BERJAYAFrom interface android.content.ComponentCallbacks

Public constructors

AliasActivity

Added in API level 1
AliasActivity ()

Protected methods

onCreate

Added in API level 1
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 Bundle: 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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.