Added in API level 1
Deprecated in API level 30

LauncherActivity

abstract class LauncherActivity : ListActivity
kotlin.Any
   ↳ android.content.Context
   ↳ android.content.ContextWrapper
   ↳ android.view.ContextThemeWrapper
   ↳ android.app.Activity
   ↳ android.app.ListActivity
   ↳ android.app.LauncherActivity

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

Summary

Nested classes
open

Utility class to resize icons to match default icon size.

open

An item in the list

Inherited constants
Public constructors

Public methods
open MutableList<LauncherActivity.ListItem!>!

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

open Unit

open Unit
setTitle(titleId: Int)

Protected methods
open Intent!

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

open Intent!

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

open LauncherActivity.ListItem!
itemForPosition(position: Int)

Return the ListItem for a specific position in our android.widget.ListView.

open Unit
onCreate(icicle: Bundle?)

open Unit
onListItemClick(l: ListView!, v: View!, position: Int, id: Long)

open MutableList<ResolveInfo!>!

Perform query on package manager for list items.

open Unit

Override to call setContentView() with your own content view to customize the list layout.

Inherited functions
Inherited properties

Public constructors

LauncherActivity

LauncherActivity()

Public methods

makeListItems

Added in API level 3
Deprecated in API level 30
open fun makeListItems(): MutableList<LauncherActivity.ListItem!>!

Deprecated: Deprecated in Java.

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

setTitle

Added in API level 1
open fun setTitle(title: CharSequence!): Unit

Deprecated: Deprecated in Java.

setTitle

Added in API level 1
open fun setTitle(titleId: Int): Unit

Deprecated: Deprecated in Java.

Protected methods

getTargetIntent

Added in API level 1
protected open fun getTargetIntent(): Intent!

Deprecated: Deprecated in Java.

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

intentForPosition

Added in API level 3
Deprecated in API level 30
protected open fun intentForPosition(position: Int): Intent!

Deprecated: Deprecated in Java.

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

Parameters
position Int: The item whose Intent to return

itemForPosition

Added in API level 4
Deprecated in API level 30
protected open fun itemForPosition(position: Int): LauncherActivity.ListItem!

Deprecated: Deprecated in Java.

Return the ListItem for a specific position in our android.widget.ListView.

Parameters
position Int: The item to return

onCreate

Added in API level 1
protected open fun onCreate(icicle: Bundle?): Unit

Deprecated: Deprecated in Java.

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. Note: Otherwise it is null.

onListItemClick

Added in API level 1
protected open fun onListItemClick(
    l: ListView!,
    v: View!,
    position: Int,
    id: Long
): Unit

Deprecated: Deprecated in Java.

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

onQueryPackageManager

Added in API level 5
Deprecated in API level 30
protected open fun onQueryPackageManager(queryIntent: Intent!): MutableList<ResolveInfo!>!

Deprecated: Deprecated in Java.

Perform query on package manager for list items. The default implementation queries for activities.

onSetContentView

Added in API level 5
Deprecated in API level 30
protected open fun onSetContentView(): Unit

Deprecated: Deprecated in Java.

Override to call setContentView() with your own content view to customize the list layout.