AliasActivity 类

定义

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

[Android.Runtime.Register("android/app/AliasActivity", DoNotGenerateAcw=true)]
public class AliasActivity : Android.App.Activity
[<Android.Runtime.Register("android/app/AliasActivity", DoNotGenerateAcw=true)>]
type AliasActivity = class
    inherit Activity
继承
属性

注解

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。 这是实现类似别名的机制的简单方法。

若要使用此活动,应在关联组件的清单中包含名为“android.app.alias”的条目。 它是对 XML 资源的引用,该资源描述启动实际应用程序的意向。

此成员已弃用。 直接使用 <activity-alias> 或子类活动。

android.app.AliasActivityJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

构造函数

AliasActivity()
AliasActivity(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

字段

AccessibilityService

使用 和 #getSystemService(String) 检索 , android.view.accessibility.AccessibilityManager 以便通过已注册的事件侦听器向用户提供 UI 事件反馈。

(继承自 Context)
AccountService

使用 和 #getSystemService(String) 检索 , android.accounts.AccountManager 以便在选择时接收意向。

(继承自 Context)
ActivityService

使用 和 #getSystemService(String) 检索 用于 android.app.ActivityManager 与全局系统状态交互的 。

(继承自 Context)
AlarmService

使用 和 #getSystemService(String) 检索 , android.app.AlarmManager 以便在选择时接收意向。

(继承自 Context)
AppOpsService

使用 和 #getSystemService(String) 检索 , android.app.AppOpsManager 以跟踪设备上的应用程序操作。

(继承自 Context)
AppSearchService

使用 和 #getSystemService(String) 检索 , android.app.appsearch.AppSearchManager 以便为系统管理的应用数据编制索引和查询。

(继承自 Context)
AppwidgetService

使用 和 #getSystemService(String) 检索 用于 android.appwidget.AppWidgetManager 访问 AppWidgets 的 。

(继承自 Context)
AudioService

使用 和 #getSystemService(String) 检索 , android.media.AudioManager 以处理音量、响铃模式和音频路由的管理。

(继承自 Context)
BatteryService

使用 和 #getSystemService(String) 检索 用于 android.os.BatteryManager 管理电池状态的 。

(继承自 Context)
BindAllowActivityStarts
已过时.

标志 #bindService:如果从可见的应用绑定,则允许绑定服务从后台启动活动。

(继承自 Context)
BindExternalServiceLong

的工作方式与 相同 #BIND_EXTERNAL_SERVICE,但它被定义为 (

(继承自 Context)
BindNotPerceptible
已过时.

标志 #bindService:如果从可见或用户可感知的应用绑定,请将目标服务的重要性降低到可感知级别以下。

(继承自 Context)
BindSharedIsolatedProcess
已过时.

标志 #bindIsolatedService:将服务绑定到共享隔离进程。

(继承自 Context)
BiometricService

与 配合使用 #getSystemService(String) 以检索 用于 android.hardware.biometrics.BiometricManager 处理生物识别和 PIN/模式/密码身份验证的 。

(继承自 Context)
BlobStoreService

使用 和 #getSystemService(String) 检索 , android.app.blob.BlobStoreManager 以便从系统维护的 Blob 存储中提供和访问数据 Blob。

(继承自 Context)
BluetoothService

使用 和 #getSystemService(String) 检索以 android.bluetooth.BluetoothManager 使用蓝牙。

(继承自 Context)
BugreportService

用于捕获 bug 报告的服务。

(继承自 Context)
CameraService

使用 和 #getSystemService(String) 检索用于 android.hardware.camera2.CameraManager 与相机设备交互的 。

(继承自 Context)
CaptioningService

使用 与 #getSystemService(String) 一起使用 android.view.accessibility.CaptioningManager ,检索 用于获取字幕属性和侦听字幕首选项的更改。

(继承自 Context)
CarrierConfigService

将 与 一起使用 #getSystemService(String) ,检索 android.telephony.CarrierConfigManager 用于读取运营商配置值的 。

(继承自 Context)
ClipboardService

使用 和 #getSystemService(String) 检索 , android.content.ClipboardManager 以便访问和修改全局剪贴板的内容。

(继承自 Context)
CompanionDeviceService

使用 与 #getSystemService(String) 一起使用,检索 android.companion.CompanionDeviceManager 用于管理配套设备的

(继承自 Context)
ConnectivityDiagnosticsService

使用 和 #getSystemService(String) 检索 ,android.net.ConnectivityDiagnosticsManager以便执行网络连接诊断以及从系统接收网络连接信息。

(继承自 Context)
ConnectivityService

使用 和 #getSystemService(String) 检索用于 android.net.ConnectivityManager 处理网络连接管理的 。

(继承自 Context)
ConsumerIrService

将 与 一起使用 #getSystemService(String) ,检索 android.hardware.ConsumerIrManager 用于从设备传输红外信号的 。

(继承自 Context)
CredentialService

使用 和 #getSystemService(String) 检索 , android.credentials.CredentialManager 以向应用验证用户身份。

(继承自 Context)
CrossProfileAppsService

使用 与 #getSystemService(String) 检索 android.content.pm.CrossProfileApps 跨配置文件操作的 。

(继承自 Context)
DeviceIdDefault

默认设备 ID,即主 (非虚拟) 设备的 ID。

(继承自 Context)
DeviceIdInvalid

设备 ID 无效。

(继承自 Context)
DeviceLockService

将 与 一起使用#getSystemService(String)android.devicelock.DeviceLockManager以检索 。

(继承自 Context)
DevicePolicyService

使用 和 #getSystemService(String) 检索 , android.app.admin.DevicePolicyManager 以使用全局设备策略管理。

(继承自 Context)
DisplayHashService

使用 和 #getSystemService(String) 访问 android.view.displayhash.DisplayHashManager 以处理显示哈希。

(继承自 Context)
DisplayService

使用 和 #getSystemService(String) 检索用于 android.hardware.display.DisplayManager 与显示设备交互的 。

(继承自 Context)
DomainVerificationService

使用 和 #getSystemService(String) 访问 android.content.pm.verify.domain.DomainVerificationManager ,以检索已声明 Web 域的审批和用户状态。

(继承自 Context)
DownloadService

使用 和 #getSystemService(String) 检索 android.app.DownloadManager 用于请求 HTTP 下载的 。

(继承自 Context)
DropboxService

使用 与 #getSystemService(String) 一起使用,检索用于记录诊断日志的 android.os.DropBoxManager 实例。

(继承自 Context)
EuiccService

使用 与 #getSystemService(String) 一起使用 android.telephony.euicc.EuiccManager ,检索 以管理设备 eUICC (嵌入式 SIM 卡) 。

(继承自 Context)
FileIntegrityService

将 与 一起使用 #getSystemService(String) 以检索 android.security.FileIntegrityManager

(继承自 Context)
FingerprintService

使用 和 #getSystemService(String) 检索用于 android.hardware.fingerprint.FingerprintManager 处理指纹管理的 。

(继承自 Context)
FullscreenModeRequestEnter
已过时.

请求类型 #requestFullscreenMode(int, OutcomeReceiver)为 ,以请求从多窗口模式进入全屏模式。

(继承自 Activity)
FullscreenModeRequestExit
已过时.

请求类型 为 #requestFullscreenMode(int, OutcomeReceiver),请求退出请求的全屏模式并还原到以前的多窗口模式。

(继承自 Activity)
GameService

将 与 一起使用#getSystemService(String)GameManager以检索 。

(继承自 Context)
GrammaticalInflectionService

将 与 一起使用#getSystemService(String)GrammaticalInflectionManager以检索 。

(继承自 Context)
HardwarePropertiesService

使用 和 #getSystemService(String) 检索用于 android.os.HardwarePropertiesManager 访问硬件属性服务的 。

(继承自 Context)
HealthconnectService

将 与 一起使用#getSystemService(String)android.health.connect.HealthConnectManager以检索 。

(继承自 Context)
InputMethodService

使用 和 #getSystemService(String) 检索 用于 android.view.inputmethod.InputMethodManager 访问输入法的 。

(继承自 Context)
InputService

使用 和 #getSystemService(String) 检索用于 android.hardware.input.InputManager 与输入设备交互的 。

(继承自 Context)
IpsecService

使用 和 #getSystemService(String) 检索 , android.net.IpSecManager 以使用 IPSec 对套接字或网络进行加密。

(继承自 Context)
JobSchedulerService

使用 和 #getSystemService(String) 检索 android.app.job.JobScheduler 用于管理偶尔后台任务的实例。

(继承自 Context)
KeyguardService

将 与 一起使用 #getSystemService(String) ,检索 android.app.KeyguardManager 用于控制键卫的 。

(继承自 Context)
LauncherAppsService

使用 和 #getSystemService(String) 检索 , android.content.pm.LauncherApps 以便跨用户配置文件查询和监视可启动的应用。

(继承自 Context)
LayoutInflaterService

使用 和 #getSystemService(String) 检索 android.view.LayoutInflater ,以便在此上下文中扩充布局资源。

(继承自 Context)
LocaleService

将 与 一起使用#getSystemService(String)android.app.LocaleManager以检索 。

(继承自 Context)
LocationService

使用 和 #getSystemService(String) 检索 , android.location.LocationManager 以控制位置更新。

(继承自 Context)
MediaCommunicationService

将 与 一起使用 #getSystemService(String) 以检索android.media.MediaCommunicationManager 用于管理 android.media.MediaSession2

(继承自 Context)
MediaMetricsService

使用 和 #getSystemService(String) 检索用于 android.media.metrics.MediaMetricsManager 与设备上的媒体指标交互的 。

(继承自 Context)
MediaProjectionService

使用 和 #getSystemService(String) 检索 android.media.projection.MediaProjectionManager 用于管理媒体投影会话的实例。

(继承自 Context)
MediaRouterService

使用 和 #getSystemService 检索 , android.media.MediaRouter 以控制和管理媒体的路由。

(继承自 Context)
MediaSessionService

使用 和 #getSystemService(String) 检索用于 android.media.session.MediaSessionManager 管理媒体会话的 。

(继承自 Context)
MidiService

将 与 一起使用 #getSystemService(String) ,检索 android.media.midi.MidiManager 用于访问 MIDI 服务的 。

(继承自 Context)
NetworkStatsService

将 与 一起使用 #getSystemService(String) ,检索 android.app.usage.NetworkStatsManager 用于查询网络使用情况统计信息的 。

(继承自 Context)
NfcService

使用 与 #getSystemService(String) 检索 , android.nfc.NfcManager 以使用 NFC。

(继承自 Context)
NotificationService

使用 和 #getSystemService(String) 检索 , android.app.NotificationManager 以通知用户后台事件。

(继承自 Context)
NsdService

将 与 一起使用 #getSystemService(String) ,检索 android.net.nsd.NsdManager 用于处理网络服务发现的管理

(继承自 Context)
OverlayService

使用 和 #getSystemService(String) 检索用于 android.content.om.OverlayManager 管理覆盖包的 。

(继承自 Context)
OverrideTransitionClose
已过时.

请求类型 #overrideActivityTransition(int, int, int) 为 或 #overrideActivityTransition(int, int, int, int),以替代结束转换。

(继承自 Activity)
OverrideTransitionOpen
已过时.

请求类型 #overrideActivityTransition(int, int, int) 为 或 #overrideActivityTransition(int, int, int, int),以替代开始转换。

(继承自 Activity)
PeopleService

使用 和 #getSystemService(String) 访问 , PeopleManager 以便与已发布的对话进行交互。

(继承自 Context)
PerformanceHintService

将 与 一起使用 #getSystemService(String) ,检索 android.os.PerformanceHintManager 用于访问性能提示服务的 。

(继承自 Context)
PowerService

使用 和 #getSystemService(String) 检索 android.os.PowerManager 用于控制电源管理的 ,包括“唤醒锁”,使你可以在运行长时间任务时使设备保持打开状态。

(继承自 Context)
PrintService

android.print.PrintManager 用于打印和管理打印机和打印任务。

(继承自 Context)
ReceiverExported
已过时.

标志 #registerReceiver:接收方可以接收来自其他应用的广播。

(继承自 Context)
ReceiverNotExported
已过时.

标志 #registerReceiver:接收方无法接收来自其他应用的广播。

(继承自 Context)
ReceiverVisibleToInstantApps
已过时.

标志 #registerReceiver:接收方可以从即时应用接收广播。

(继承自 Context)
RestrictionsService

使用 和 #getSystemService(String) 检索 , android.content.RestrictionsManager 用于检索应用程序限制和请求受限操作的权限。

(继承自 Context)
RoleService

使用 和 #getSystemService(String) 检索用于 android.app.role.RoleManager 管理角色的 。

(继承自 Context)
SearchService

使用 和 #getSystemService(String) 检索 android.app.SearchManager 用于处理搜索的 。

(继承自 Context)
SensorService

将 与 一起使用 #getSystemService(String) ,检索 android.hardware.SensorManager 用于访问传感器的 。

(继承自 Context)
ShortcutService

使用 和 #getSystemService(String) 检索用于 android.content.pm.ShortcutManager 访问启动器快捷方式服务的 。

(继承自 Context)
StatusBarService

使用 和 #getSystemService(String) 检索用于 android.app.StatusBarManager 与状态栏和快速设置交互的 。

(继承自 Context)
StorageService

使用 和 #getSystemService(String) 检索 用于 android.os.storage.StorageManager 访问系统存储函数的 。

(继承自 Context)
StorageStatsService

将 与 一起使用 #getSystemService(String) ,检索 android.app.usage.StorageStatsManager 用于访问系统存储统计信息的 。

(继承自 Context)
SystemHealthService

与 配合使用 #getSystemService(String) 以检索 android.os.health.SystemHealthManager 用于访问系统运行状况 (电池、电源、内存等) 指标。

(继承自 Context)
TelecomService

使用 和 #getSystemService(String) 检索 , android.telecom.TelecomManager 以管理设备与电信相关的功能。

(继承自 Context)
TelephonyImsService

将 与 配合使用 #getSystemService(String) 以检索 android.telephony.ims.ImsManager

(继承自 Context)
TelephonyService

使用 和 #getSystemService(String) 检索 , android.telephony.TelephonyManager 以处理设备的电话功能管理。

(继承自 Context)
TelephonySubscriptionService

使用 和 #getSystemService(String) 检索 , android.telephony.SubscriptionManager 以处理设备的电话订阅的管理。

(继承自 Context)
TextClassificationService

使用 和 #getSystemService(String) 检索 TextClassificationManager 文本分类服务的 。

(继承自 Context)
TextServicesManagerService

使用 和 #getSystemService(String) 检索 以 android.view.textservice.TextServicesManager 访问文本服务。

(继承自 Context)
TvInputService

使用 来 #getSystemService(String) 检索 , android.media.tv.TvInputManager 以便与设备上的电视输入进行交互。

(继承自 Context)
TvInteractiveAppService

使用 和 #getSystemService(String) 检索 , android.media.tv.interactive.TvInteractiveAppManager 以便与设备上的电视交互式应用程序交互。

(继承自 Context)
UiModeService

使用 和 #getSystemService(String) 检索 用于 android.app.UiModeManager 控制 UI 模式的 。

(继承自 Context)
UsageStatsService

使用 和 #getSystemService(String) 检索 用于 android.app.usage.UsageStatsManager 查询设备使用情况统计信息的 。

(继承自 Context)
UsbService

使用 和 #getSystemService(String) 检索 android.hardware.usb.UsbManager 以访问 USB 设备 (作为 USB 主机) ,并控制此设备作为 USB 设备的行为。

(继承自 Context)
UserService

使用 和 #getSystemService(String) 检索 , android.os.UserManager 以在支持多个用户的设备上管理用户。

(继承自 Context)
VibratorManagerService

使用 来 #getSystemService(String) 检索 用于 android.os.VibratorManager 访问设备振动器、与单个振动器交互并在多个振动器上播放同步效果的 。

(继承自 Context)
VibratorService

使用 和 #getSystemService(String) 检索 用于 android.os.Vibrator 与振动硬件交互的 。

(继承自 Context)
VirtualDeviceService

使用 和 #getSystemService(String) 检索 用于 android.companion.virtual.VirtualDeviceManager 管理虚拟设备的 。

(继承自 Context)
VpnManagementService

使用 和 #getSystemService(String) 检索 , android.net.VpnManager 以管理平台内置 VPN 的配置文件。

(继承自 Context)
WallpaperService

使用 和 #getSystemService(String) 检索 com。

(继承自 Context)
WifiAwareService

使用 和 #getSystemService(String) 检索 , android.net.wifi.aware.WifiAwareManager 以处理 Wi-Fi Aware 的管理。

(继承自 Context)
WifiP2pService

使用 和 #getSystemService(String) 检索 , android.net.wifi.p2p.WifiP2pManager 以处理 Wi-Fi 对等连接的管理。

(继承自 Context)
WifiRttRangingService

使用 和 #getSystemService(String) 检索 android.net.wifi.rtt.WifiRttManager 具有 wifi 的测距设备的 。

(继承自 Context)
WifiService

使用 和 #getSystemService(String) 检索 , android.net.wifi.WifiManager 以处理 Wi-Fi 访问的管理。

(继承自 Context)
WindowService

使用 和 #getSystemService(String) 检索 用于 android.view.WindowManager 访问系统的窗口管理器的 。

(继承自 Context)

属性

ActionBar

检索对此活动的 ActionBar 的引用。

(继承自 Activity)
Application

返回拥有此活动的应用程序。

(继承自 Activity)
ApplicationContext

返回当前进程的单个全局 Application 对象的上下文。

(继承自 ContextWrapper)
ApplicationInfo

返回此上下文包的完整应用程序信息。

(继承自 ContextWrapper)
Assets

返回应用程序的包的 AssetManager 实例。

(继承自 ContextWrapper)
AttributionSource

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
AttributionTag

可在复杂应用中使用归因,以逻辑方式分隔应用的各个部分。

(继承自 Context)
BaseContext (继承自 ContextWrapper)
CacheDir

返回文件系统上特定于应用程序的缓存目录的绝对路径。

(继承自 ContextWrapper)
CallingActivity

返回调用此活动的活动的名称。

(继承自 Activity)
CallingPackage

返回调用此活动的包的名称。

(继承自 Activity)
ChangingConfigurations

如果此活动因为无法处理 (更改的配置参数而遭到销毁,因此其#onConfigurationChanged(Configuration)方法不是<<>>) 调用的,则可以使用此方法发现在销毁过程中发生的更改集。

(继承自 Activity)
Class

返回此 Object的运行时类。

(继承自 Object)
ClassLoader

返回可用于检索此包中的类的类加载程序。

(继承自 ContextWrapper)
CodeCacheDir

返回用于存储缓存代码的文件系统上特定于应用程序的缓存目录的绝对路径。

(继承自 ContextWrapper)
ComponentName

返回此活动的完整组件名称。

(继承自 Activity)
ContentResolver

返回应用程序包的 ContentResolver 实例。

(继承自 ContextWrapper)
ContentScene

Scene检索表示此窗口当前内容的 。

(继承自 Activity)
ContentTransitionManager

TransitionManager检索负责此窗口中的默认转换的 。 - 或 - 设置 TransitionManager 要用于此窗口中的默认转换的 。

(继承自 Activity)
CurrentFocus

在此活动的窗口上调用 android.view.Window#getCurrentFocus 以返回当前聚焦的视图。

(继承自 Activity)
DataDir

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
DeviceId

获取与此上下文关联的设备 ID。

(继承自 Context)
Display

获取与此上下文关联的显示。

(继承自 Context)
ExternalCacheDir

返回主外部文件系统 (目录的绝对路径,该目录位于应用程序可以放置其拥有的缓存文件的某个位置 ExternalStorageDirectory

(继承自 ContextWrapper)
FilesDir

返回文件系统上存储使用 OpenFileOutput(String, FileCreationMode) 创建的文件的目录的绝对路径。

(继承自 ContextWrapper)
FragmentManager

返回用于与此活动关联的片段交互的 FragmentManager。

(继承自 Activity)
Handle

基础 Android 实例的句柄。

(继承自 Object)
HasWindowFocus

如果此活动的 <em> main</em> 窗口当前具有窗口焦点,则返回 true。

(继承自 Activity)
Immersive

位,指示此活动是“沉浸式的”,如果可能,不应被通知打断。 - 或 - 调整当前沉浸式模式设置。

(继承自 Activity)
Intent

返回启动此活动的意向。 - 或 - 更改 返回的 #getIntent意向。

(继承自 Activity)
IsActivityTransitionRunning

返回此活动上当前是否正在运行任何活动转换。

(继承自 Activity)
IsChangingConfigurations

检查此活动是否处于销毁过程中,以便使用新配置重新创建。

(继承自 Activity)
IsChild

此活动是否嵌入到另一个活动内?

(继承自 Activity)
IsDestroyed

如果对 Activity 进行了最终 #onDestroy() 调用,则返回 true,因此此实例现在已死。

(继承自 Activity)
IsDeviceProtectedStorage

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
IsFinishing

检查此活动是否正在完成,可能是因为你调用 #finish 了它,或者其他人已请求它完成。

(继承自 Activity)
IsInMultiWindowMode

如果活动当前处于多窗口模式,则返回 true。

(继承自 Activity)
IsInPictureInPictureMode

如果活动当前处于画中画模式,则返回 true。

(继承自 Activity)
IsLaunchedFromBubble

指示此活动是否从气泡启动。

(继承自 Activity)
IsLocalVoiceInteractionSupported

查询当前启用的语音交互服务是否支持返回供活动使用的语音交互器。

(继承自 Activity)
IsRestricted

指示此上下文是否受到限制。

(继承自 Context)
IsTaskRoot

返回此活动是否为任务的根。

(继承自 Activity)
IsUiContext

true如果上下文是可访问 UI 组件(如 、 或 android.app.WallpaperManager WallpaperManagerWindowManager的 UI 上下文,android.view.LayoutInflater LayoutInflater则返回 。

(继承自 Context)
IsVoiceInteraction

检查此活动是否作为与用户的语音交互的一部分运行。

(继承自 Activity)
IsVoiceInteractionRoot

与 一样 #isVoiceInteraction,但仅当这也是语音交互的根时,才会返回 true

(继承自 Activity)
JniIdentityHashCode

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
JniPeerMembers

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

LastNonConfigurationInstance

检索以前由 #onRetainNonConfigurationInstance()返回的非配置实例数据。

(继承自 Activity)
LaunchedFromPackage

返回最初启动此活动的应用的包名称。

(继承自 Activity)
LaunchedFromUid

返回最初启动此活动的应用的 uid。

(继承自 Activity)
LayoutInflater

方便调用 android.view.Window#getLayoutInflater

(继承自 Activity)
LoaderManager

返回此活动的 LoaderManager,并根据需要创建它。

(继承自 Activity)
LocalClassName

返回此活动的类名,其中删除了包前缀。

(继承自 Activity)
MainExecutor

返回一个 Executor ,它将在此上下文关联的main线程上运行排队任务。

(继承自 Context)
MainLooper

返回当前进程的main线程的 Looper。

(继承自 ContextWrapper)
MaxNumPictureInPictureActions

返回当用户与当前处于画中画模式的活动交互时,将在画中画 UI 中显示的操作数。

(继承自 Activity)
MediaController

获取当此活动位于前台时应接收媒体密钥和卷事件的控制器。 - 或 - 设置以 MediaController 发送媒体键和卷更改。

(继承自 Activity)
MenuInflater

返回 MenuInflater 具有此上下文的 。

(继承自 Activity)
NoBackupFilesDir

返回文件系统上目录的绝对路径,类似于 FilesDir

(继承自 ContextWrapper)
ObbDir

返回主外部存储目录,如果可以找到任何) ,则此应用程序的 OBB 文件 (。

(继承自 ContextWrapper)
OnBackInvokedDispatcher

返回与此 OnBackInvokedDispatcher 活动附加到的窗口关联的实例。

(继承自 Activity)
OpPackageName

返回应该用于 android.app.AppOpsManager 来自此上下文的调用的包名称,以便应用操作管理器的 uid 验证将使用该名称。

(继承自 Context)
PackageCodePath

返回此上下文的主 Android 包的完整路径。

(继承自 ContextWrapper)
PackageManager

返回 PackageManager 实例以查找全局包信息。

(继承自 ContextWrapper)
PackageName

返回此应用程序的包的名称。

(继承自 ContextWrapper)
PackageResourcePath

返回此上下文的主 Android 包的完整路径。

(继承自 ContextWrapper)
Params

返回创建此上下文时使用 的参数集(如果它是通过 #createContext(ContextParams)创建的)。

(继承自 Context)
Parent

如果此视图是嵌入的子级,则返回父活动。

(继承自 Activity)
ParentActivityIntent

获取一个 Intent ,它将启动此活动的逻辑父级指定的显式目标活动。

(继承自 Activity)
PeerReference

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
Referrer

返回有关启动此活动的人员的信息。

(继承自 Activity)
RequestedOrientation

返回活动的当前请求方向。 - 或 - 更改此活动的所需方向。

(继承自 Activity)
Resources

返回应用程序包的 Resources 实例。

(继承自 ContextWrapper)
SearchEvent

在 onSearchRequested () 回调期间,此函数将返回 SearchEvent 触发回调的 (如果存在)。

(继承自 Activity)
SplashScreen

获取活动用于与初始屏幕对话的界面。

(继承自 Activity)
TaskId

返回此活动所参与的任务的标识符。

(继承自 Activity)
Theme

返回与此上下文关联的 Theme 对象。

(继承自 ContextWrapper)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

Title

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
TitleColor
已过时.

更改与此活动关联的标题的颜色。

(继承自 Activity)
TitleFormatted

更改与此活动关联的标题。

(继承自 Activity)
VoiceInteractor

VoiceInteractor检索用户要经历以与此活动交互的活动。

(继承自 Activity)
VolumeControlStream

获取建议的音频流,其音量应由硬件音量控件更改。 - 或 - 建议应由硬件音量控件更改其音量的音频流。

(继承自 Activity)
Wallpaper (继承自 ContextWrapper)
WallpaperDesiredMinimumHeight (继承自 ContextWrapper)
WallpaperDesiredMinimumWidth (继承自 ContextWrapper)
Window

检索活动的当前 android.view.Window

(继承自 Activity)
WindowManager

检索用于显示自定义窗口的窗口管理器。

(继承自 Activity)

方法

AddContentView(View, ViewGroup+LayoutParams)

向活动添加其他内容视图。

(继承自 Activity)
ApplyOverrideConfiguration(Configuration)

调用 以在此上下文上设置“替代配置”-这是一种配置,用于回复应用于上下文的标准配置的一个或多个值。

(继承自 ContextThemeWrapper)
AttachBaseContext(Context)

设置此 ContextWrapper 的基本上下文。

(继承自 ContextWrapper)
BindService(Intent, Bind, IExecutor, IServiceConnection)

#bindService(Intent, ServiceConnection, int) bindService(Intent, ServiceConnection, int) 用于控制 ServiceConnection 回调的执行程序相同。

(继承自 Context)
BindService(Intent, Context+BindServiceFlags, IExecutor, IServiceConnection)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
BindService(Intent, IServiceConnection, Bind)

连接到应用程序服务,根据需要创建它。

(继承自 ContextWrapper)
BindService(Intent, IServiceConnection, Context+BindServiceFlags)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
BindServiceAsUser(Intent, IServiceConnection, Context+BindServiceFlags, UserHandle)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
BindServiceAsUser(Intent, IServiceConnection, Int32, UserHandle)

以与 相同的方式#bindService绑定到给定 user 中的服务。

(继承自 Context)
CheckCallingOrSelfPermission(String)

确定 IPC 的调用过程或 是否已被授予特定权限。

(继承自 ContextWrapper)
CheckCallingOrSelfUriPermission(Uri, ActivityFlags)

确定 IPC 的调用过程或 是否已被授予访问特定 URI 的权限。

(继承自 ContextWrapper)
CheckCallingOrSelfUriPermissions(IList<Uri>, Int32)

确定 IPC <或>you</em> 的调用进程是否已被授予访问 URI 列表的权限。

(继承自 Context)
CheckCallingPermission(String)

确定你正在处理的 IPC 的调用过程是否已被授予特定权限。

(继承自 ContextWrapper)
CheckCallingUriPermission(Uri, ActivityFlags)

确定是否向调用进程和用户 ID 授予了访问特定 URI 的权限。

(继承自 ContextWrapper)
CheckCallingUriPermissions(IList<Uri>, Int32)

确定是否向调用进程和用户 ID 授予了访问 URI 列表的权限。

(继承自 Context)
CheckPermission(String, Int32, Int32)

确定是否允许对系统中运行的特定进程和用户 ID 使用给定权限。

(继承自 ContextWrapper)
CheckSelfPermission(String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
CheckUriPermission(Uri, Int32, Int32, ActivityFlags)

确定是否向特定进程和用户 ID 授予了访问特定 URI 的权限。

(继承自 ContextWrapper)
CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags)

检查 URI 和正常权限。

(继承自 ContextWrapper)
CheckUriPermissions(IList<Uri>, Int32, Int32, Int32)

确定是否向特定进程和用户 ID 授予了访问 URI 列表的权限。

(继承自 Context)
ClearOverrideActivityTransition(OverrideTransition)

清除从 #overrideActivityTransition设置的动画。

(继承自 Activity)
ClearWallpaper()
已过时.
(继承自 ContextWrapper)
Clone()

创建并返回此对象的副本。

(继承自 Object)
CloseContextMenu()

以编程方式关闭最近打开的上下文菜单(如果显示)。

(继承自 Activity)
CloseOptionsMenu()

自动关闭选项菜单。

(继承自 Activity)
CreateAttributionContext(String)

返回当前 Context 的新 Context 对象,但属性为不同的标记。

(继承自 Context)
CreateConfigurationContext(Configuration)

返回当前上下文的新 Context 对象,但其资源已调整为与给定配置匹配。

(继承自 ContextWrapper)
CreateContext(ContextParams)

创建具有特定属性和行为的上下文。

(继承自 Context)
CreateContextForSplit(String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
CreateDeviceContext(Int32)

从当前上下文返回一个新的 Context 对象,但具有 由 deviceId给定的设备关联。

(继承自 Context)
CreateDeviceProtectedStorageContext()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
CreateDisplayContext(Display)

返回当前 Context 的新 Context 对象,但其资源已调整为匹配给定 Display 的指标。

(继承自 ContextWrapper)
CreatePackageContext(String, PackageContextFlags)

返回给定应用程序名称的新 Context 对象。

(继承自 ContextWrapper)
CreatePendingResult(Int32, Intent, PendingIntentFlags)

创建一个新的 PendingIntent 对象,你可以将其交给其他人,以便他们用来将结果数据发送回回调 #onActivityResult

(继承自 Activity)
CreateWindowContext(Display, Int32, Bundle)

Context为给定 Display上的非android.app.Activity activity窗口创建 。

(继承自 Context)
CreateWindowContext(Int32, Bundle)

为非活动窗口创建上下文。

(继承自 Context)
DatabaseList()

返回一个字符串数组,这些字符串命名与此上下文的应用程序包关联的专用数据库。

(继承自 ContextWrapper)
DeleteDatabase(String)

删除与此上下文的应用程序包关联的现有专用 SQLiteDatabase。

(继承自 ContextWrapper)
DeleteFile(String)

删除与此上下文的应用程序包关联的给定专用文件。

(继承自 ContextWrapper)
DeleteSharedPreferences(String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
DismissDialog(Int32)
已过时.

关闭以前通过 #showDialog(int)显示的对话框。

(继承自 Activity)
DismissKeyboardShortcutsHelper()

关闭“键盘快捷方式”屏幕。

(继承自 Activity)
DispatchGenericMotionEvent(MotionEvent)

调用以处理一般运动事件。

(继承自 Activity)
DispatchKeyEvent(KeyEvent)

调用以处理关键事件。

(继承自 Activity)
DispatchKeyShortcutEvent(KeyEvent)

调用以处理键快捷方式事件。

(继承自 Activity)
DispatchPopulateAccessibilityEvent(AccessibilityEvent)

调用以处理 的 AccessibilityEvent填充。

(继承自 Activity)
DispatchTouchEvent(MotionEvent)

调用以处理触摸屏事件。

(继承自 Activity)
DispatchTrackballEvent(MotionEvent)

调用以处理轨迹球事件。

(继承自 Activity)
Dispose()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
Dispose(Boolean)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
Dump(String, FileDescriptor, PrintWriter, String[])

将活动的状态输出到给定流中。

(继承自 Activity)
EnforceCallingOrSelfPermission(String, String)

如果你和正在处理的 IPC 的调用进程均未被授予特定权限,则 SecurityException引发 。

(继承自 ContextWrapper)
EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String)

如果 IPC 的调用进程 或你 尚未被授予访问特定 URI 的权限,则引发 SecurityException

(继承自 ContextWrapper)
EnforceCallingPermission(String, String)

如果正在处理的 IPC 的调用过程尚未被授予特定权限,请 SecurityException引发 。

(继承自 ContextWrapper)
EnforceCallingUriPermission(Uri, ActivityFlags, String)

如果尚未向调用进程和用户 ID 授予访问特定 URI 的权限,请引发 SecurityException

(继承自 ContextWrapper)
EnforcePermission(String, Int32, Int32, String)

如果系统中运行的特定进程和用户 ID 不允许给定权限,则 SecurityException引发 。

(继承自 ContextWrapper)
EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String)

如果尚未向特定进程和用户 ID 授予访问特定 URI 的权限,请引发 SecurityException

(继承自 ContextWrapper)
EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String)

强制执行 URI 和普通权限。

(继承自 ContextWrapper)
EnterPictureInPictureMode()

如果可能,将活动置于“画中画”模式,使其处于当前系统状态。

(继承自 Activity)
EnterPictureInPictureMode(PictureInPictureParams)

如果可能,将活动置于“画中画”模式,使其处于当前系统状态。

(继承自 Activity)
Equals(Object)

指示其他某个对象是否“等于”此对象。

(继承自 Object)
FileList()

返回一个字符串数组,这些字符串命名与此上下文的应用程序包关联的专用文件。

(继承自 ContextWrapper)
FindViewById(Int32)

查找由 android:id#onCreate处理的 XML 属性标识的视图。

(继承自 Activity)
FindViewById<T>(Int32)

查找由 XML 布局资源中的 id 属性标识的视图。

(继承自 Activity)
Finish()

在活动完成且应关闭时调用它。

(继承自 Activity)
FinishActivity(Int32)

强制完成之前使用 #startActivityForResult启动的另一个活动。

(继承自 Activity)
FinishActivityFromChild(Activity, Int32)

当此活动的子活动调用其 finishActivity () 时,将调用它。

(继承自 Activity)
FinishAffinity()

完成此活动以及当前任务中其下方具有相同相关性的所有活动。

(继承自 Activity)
FinishAfterTransition()

反转活动场景条目转换,并触发调用活动以反转其退出转换。

(继承自 Activity)
FinishAndRemoveTask()

当活动完成并且应关闭并且应在完成该任务的根活动过程中完全删除该任务时调用它。

(继承自 Activity)
FinishFromChild(Activity)

当此子活动的子活动调用其 方法时,将调用此方法 #finish

(继承自 Activity)
GetColor(Int32)

返回与特定资源 ID 关联的颜色,并为当前主题设置样式。

(继承自 Context)
GetColorStateList(Int32)

返回与特定资源 ID 关联的颜色状态列表,并为当前主题设置样式。

(继承自 Context)
GetDatabasePath(String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
GetDir(String, FileCreationMode)

检索并根据需要创建一个新目录,应用程序可在其中放置其自己的自定义数据文件。

(继承自 ContextWrapper)
GetDrawable(Int32)

返回与特定资源 ID 关联的可绘制对象,该对象为当前主题设置样式。

(继承自 Context)
GetExternalCacheDirs()

返回应用程序可在其拥有的缓存文件的所有外部存储设备上特定于应用程序的目录的绝对路径。

(继承自 ContextWrapper)
GetExternalFilesDir(String)

返回主外部文件系统 (上的目录的绝对路径,该目录位于) 应用程序可以放置其拥有的永久性文件的某个位置 ExternalStorageDirectory

(继承自 ContextWrapper)
GetExternalFilesDirs(String)

返回应用程序可在其拥有的持久文件的所有外部存储设备上特定于应用程序的目录的绝对路径。

(继承自 ContextWrapper)
GetExternalMediaDirs()
已过时.

返回应用程序可以放置媒体文件的所有外部存储设备上特定于应用程序的目录的绝对路径。

(继承自 ContextWrapper)
GetFileStreamPath(String)

返回文件系统上的绝对路径,其中使用 创建 OpenFileOutput(String, FileCreationMode) 的文件是在其中创建的。

(继承自 ContextWrapper)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
GetObbDirs()

返回所有外部存储设备上特定于应用程序的目录的绝对路径,其中应用程序的 OBB 文件 ((如果可以找到任何) )。

(继承自 ContextWrapper)
GetPreferences(FileCreationMode)

检索一个 SharedPreferences 对象,用于访问此活动专用的首选项。

(继承自 Activity)
GetSharedPreferences(String, FileCreationMode)

检索并保存首选项文件“name”的内容,返回一个共享首选项,通过该共享首选项可以检索和修改其值。

(继承自 ContextWrapper)
GetString(Int32)

从应用程序包的默认字符串表中返回本地化的字符串。

(继承自 Context)
GetString(Int32, Object[])

从应用程序包的默认字符串表中返回本地化的字符串。

(继承自 Context)
GetSystemService(Class)

按类返回系统级服务的句柄。

(继承自 Context)
GetSystemService(String)

按名称将句柄返回到系统级服务。

(继承自 ContextWrapper)
GetSystemServiceName(Class)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
GetText(Int32)

从应用程序包的默认字符串表中返回带样式的本地化 CharSequence。

(继承自 Context)
GetTextFormatted(Int32)

从应用程序包的默认字符串表中返回带样式的本地化 CharSequence。

(继承自 Context)
GrantUriPermission(String, Uri, ActivityFlags)

向另一个包授予访问特定 URI 的权限,而不管该包是否具有访问 Uri 内容提供程序的常规权限。

(继承自 ContextWrapper)
InvalidateOptionsMenu()

声明选项菜单已更改,因此应重新创建。

(继承自 Activity)
JavaFinalize()

当垃圾回收确定不再引用对象时,由对象上的垃圾回收器调用。

(继承自 Object)
ManagedQuery(Uri, String[], String, String[], String)
已过时.

包装器ContentResolver#query(android.net.Uri , String[], String, String[], String) ,使生成的 Cursor 调用 #startManagingCursor ,以便活动将为你管理其生命周期。

(继承自 Activity)
MoveDatabaseFrom(Context, String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
MoveSharedPreferencesFrom(Context, String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
MoveTaskToBack(Boolean)

将包含此活动的任务移到活动堆栈的后面。

(继承自 Activity)
NavigateUpTo(Intent)

从此活动导航到 upIntent 指定的活动,并在进程中完成此活动。

(继承自 Activity)
NavigateUpToFromChild(Activity, Intent)

当此子活动的子活动调用其 方法时,将调用此方法 #navigateUpTo

(继承自 Activity)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
ObtainStyledAttributes(IAttributeSet, Int32[])

检索此上下文主题中的带样式的属性信息。

(继承自 Context)
ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32)

检索此上下文主题中的带样式的属性信息。

(继承自 Context)
ObtainStyledAttributes(Int32, Int32[])

检索此上下文主题中的带样式的属性信息。

(继承自 Context)
ObtainStyledAttributes(Int32[])

检索此上下文主题中的带样式的属性信息。

(继承自 Context)
OnActionModeFinished(ActionMode)

通知活动操作模式已完成。

(继承自 Activity)
OnActionModeStarted(ActionMode)

通知活动操作模式已启动。

(继承自 Activity)
OnActivityReenter(Int32, Intent)

当通过活动转换启动的活动通过返回的活动转换公开此活动时调用,从而提供 resultCode 及其中的任何其他数据。

(继承自 Activity)
OnActivityResult(Int32, Result, Intent)

在启动的活动退出时调用,提供启动它的 requestCode、返回的 resultCode 以及来自该活动的任何其他数据。

(继承自 Activity)
OnApplyThemeResource(Resources+Theme, Int32, Boolean)

#setTheme 调用 并将 #getTheme 主题资源应用于当前 Theme 对象。

(继承自 ContextThemeWrapper)
OnAttachedToWindow()

当与活动关联的main窗口已附加到窗口管理器时调用。

(继承自 Activity)
OnAttachFragment(Fragment)

在将片段附加到此活动时调用,紧接在其 Fragment#onAttach Fragment.onAttach() 方法调用之后,在 之前 Fragment#onCreate Fragment.onCreate()调用。

(继承自 Activity)
OnBackPressed()

当活动检测到用户按下后退键时调用。

(继承自 Activity)
OnChildTitleChanged(Activity, ICharSequence)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
OnChildTitleChanged(Activity, String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
OnConfigurationChanged(Configuration)

在活动运行时设备配置发生更改时由系统调用。

(继承自 Activity)
OnContentChanged()

每当屏幕的内容视图由于调用 M:Android.Views.Window.SetContentView (Android.Views.View,LayoutParams) AddContentView(View, ViewGroup+LayoutParams)) 。

(继承自 Activity)
OnContextItemSelected(IMenuItem)

每当选择上下文菜单中的项时,将调用此挂钩。

(继承自 Activity)
OnContextMenuClosed(IMenu)

每当关闭上下文菜单 (用户通过后退/菜单按钮取消菜单时,或者在) 选中某个项时,将调用此挂钩。

(继承自 Activity)
OnCreate(Bundle)

在活动启动时调用。

(继承自 Activity)
OnCreate(Bundle, PersistableBundle)

与 相同 #onCreate(android.os.Bundle) ,但对创建的活动调用,并将 属性 android.R.attr#persistableMode 设置为 persistAcrossReboots

(继承自 Activity)
OnCreateContextMenu(IContextMenu, View, IContextMenuContextMenuInfo)

在即将显示 的 view 上下文菜单时调用。

(继承自 Activity)
OnCreateDescription()

为此活动生成新说明。

(继承自 Activity)
OnCreateDescriptionFormatted()

为此活动生成新说明。

(继承自 Activity)
OnCreateDialog(Int32)
已过时.

此成员已弃用。

(继承自 Activity)
OnCreateDialog(Int32, Bundle)
已过时.

用于创建由活动) 保存和还原 (管理的对话的回调。

(继承自 Activity)
OnCreateNavigateUpTaskStack(TaskStackBuilder)

定义将在从其他任务向上导航期间生成的综合任务堆栈。

(继承自 Activity)
OnCreateOptionsMenu(IMenu)

初始化活动的标准选项菜单的内容。

(继承自 Activity)
OnCreatePanelMenu(Int32, IMenu)

的默认实现android.view.Window.Callback#onCreatePanelMenu 活动。

(继承自 Activity)
OnCreatePanelView(Int32)

的默认实现android.view.Window.Callback#onCreatePanelView 活动。

(继承自 Activity)
OnCreateThumbnail(Bitmap, Canvas)

此成员已弃用。

(继承自 Activity)
OnCreateView(String, Context, IAttributeSet)

使用 返回#getSystemService的 LayoutInflater 进行膨胀时使用 的标准实现android.view.LayoutInflater.Factory#onCreateView

(继承自 Activity)
OnCreateView(View, String, Context, IAttributeSet)

的标准实现android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) 使用 返回 #getSystemService的 LayoutInflater 进行膨胀时使用。

(继承自 Activity)
OnDestroy()

在销毁活动之前执行任何最终清理。

(继承自 Activity)
OnDetachedFromWindow()

当与活动关联的main窗口已从窗口管理器分离时调用。

(继承自 Activity)
OnEnterAnimationComplete()

活动在其窗口进行动画处理的时间段内无法绘制。

(继承自 Activity)
OnGenericMotionEvent(MotionEvent)

当活动内的任何视图未处理泛型运动事件时调用。

(继承自 Activity)
OnGetDirectActions(CancellationSignal, IConsumer)

返回应用支持的直接操作的列表。

(继承自 Activity)
OnKeyDown(Keycode, KeyEvent)

在按下某个键且未由活动内的任何视图处理时调用。

(继承自 Activity)
OnKeyLongPress(Keycode, KeyEvent)

的默认实现 KeyEvent.Callback#onKeyLongPress(int, KeyEvent) KeyEvent.Callback.onKeyLongPress():始终返回 false, (不处理事件) 。

(继承自 Activity)
OnKeyMultiple(Keycode, Int32, KeyEvent)

的默认实现 KeyEvent.Callback#onKeyMultiple(int, int, KeyEvent) KeyEvent.Callback.onKeyMultiple():始终返回 false, (不处理事件) 。

(继承自 Activity)
OnKeyShortcut(Keycode, KeyEvent)

当活动中的任何视图都不处理键快捷方式事件时调用。

(继承自 Activity)
OnKeyUp(Keycode, KeyEvent)

在释放键且未由活动内的任何视图处理时调用。

(继承自 Activity)
OnLocalVoiceInteractionStarted()

指示 #startLocalVoiceInteraction(Bundle) 已启动语音交互会话的回调。

(继承自 Activity)
OnLocalVoiceInteractionStopped()

指示本地语音交互已停止的回调,原因是该交互是通过对 的调用 #stopLocalVoiceInteraction() 请求的,或者因为用户取消了本地语音交互。

(继承自 Activity)
OnLowMemory()

当整个系统的内存不足,并且主动运行的进程应削减其内存使用量时,将调用此方法。

(继承自 Activity)
OnMenuItemSelected(Int32, IMenuItem)

的默认实现android.view.Window.Callback#onMenuItemSelected 活动。

(继承自 Activity)
OnMenuOpened(Int32, IMenu)

要添加

(继承自 Activity)
OnMultiWindowModeChanged(Boolean)

当活动从全屏模式更改为多窗口模式时由系统调用,反之亦然。

(继承自 Activity)
OnMultiWindowModeChanged(Boolean, Configuration)

当活动从全屏模式更改为多窗口模式时由系统调用,反之亦然。

(继承自 Activity)
OnNavigateUp()

每当用户从操作栏选择在应用程序的活动层次结构中向上导航时,将调用此方法。

(继承自 Activity)
OnNavigateUpFromChild(Activity)

当此活动的子活动尝试向上导航时,将调用此活动。

(继承自 Activity)
OnNewIntent(Intent)

对于在其包中将 launchMode 设置为“singleTop”的活动,或者如果客户端在调用 #startActivity时使用了 标志,Intent#FLAG_ACTIVITY_SINGLE_TOP则调用此方法。

(继承自 Activity)
OnOptionsItemSelected(IMenuItem)

每当选择选项菜单中的项时,将调用此挂钩。

(继承自 Activity)
OnOptionsMenuClosed(IMenu)

每当关闭选项菜单时,将调用此挂钩, (用户通过后退/菜单按钮取消菜单,或者在) 选中某个项。

(继承自 Activity)
OnPanelClosed(Int32, IMenu)

活动的默认 android.view.Window.Callback#onPanelClosed(int, Menu) 实现。

(继承自 Activity)
OnPause()

当用户不再主动与活动交互,但仍在屏幕上可见时,作为活动生命周期的一部分调用。

(继承自 Activity)
OnPerformDirectAction(String, Bundle, CancellationSignal, IConsumer)

调用它以执行应用之前定义的操作。

(继承自 Activity)
OnPictureInPictureModeChanged(Boolean)

当活动更改为“画中画”模式和从“画中画”模式时由系统调用。

(继承自 Activity)
OnPictureInPictureModeChanged(Boolean, Configuration)

当活动更改为“画中画”模式和从“画中画”模式时由系统调用。

(继承自 Activity)
OnPictureInPictureRequested()

在图片模式中应输入图片(如果支持)的各种情况下,系统会调用此方法。

(继承自 Activity)
OnPictureInPictureUiStateChanged(PictureInPictureUiState)

当活动在 PiP 中且状态发生更改时由系统调用。

(继承自 Activity)
OnPostCreate(Bundle)

在活动启动完成 (之后 #onStart 调用,并且 #onRestoreInstanceState 已) 调用。

(继承自 Activity)
OnPostCreate(Bundle, PersistableBundle)

这与 #onPostCreate(Bundle) 相同,但对于使用 属性 android.R.attr#persistableMode 设置为 persistAcrossReboots创建的活动调用。

(继承自 Activity)
OnPostResume()

在) 调用后,当活动恢复完成 (时 #onResume 调用。

(继承自 Activity)
OnPrepareDialog(Int32, Dialog)
已过时.

此成员已弃用。

(继承自 Activity)
OnPrepareDialog(Int32, Dialog, Bundle)
已过时.

提供在显示托管对话之前准备托管对话的机会。

(继承自 Activity)
OnPrepareNavigateUpTaskStack(TaskStackBuilder)

准备综合任务堆栈,该堆栈将在从其他任务向上导航期间生成。

(继承自 Activity)
OnPrepareOptionsMenu(IMenu)

准备要显示的屏幕标准选项菜单。

(继承自 Activity)
OnPreparePanel(Int32, View, IMenu)

的默认实现android.view.Window.Callback#onPreparePanel 活动。

(继承自 Activity)
OnProvideAssistContent(AssistContent)

当用户请求协助时,将调用此方法,以提供对与当前活动相关的内容的引用。

(继承自 Activity)
OnProvideAssistData(Bundle)

当用户请求协助时,会调用此方法,以使用当前应用程序的所有上下文生成完整的 Intent#ACTION_ASSIST 意向。

(继承自 Activity)
OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
OnProvideReferrer()

替代 ,为应用当前显示的内容生成所需的引用网站。

(继承自 Activity)
OnRequestPermissionsResult(Int32, String[], Permission[])

请求权限的结果的回调。

(继承自 Activity)
OnRestart()

#onStop在用户导航回当前活动) (向用户重新显示当前活动时调用。

(继承自 Activity)
OnRestoreInstanceState(Bundle)

当活动从以前保存的状态重新初始化时(此处在 var>savedInstanceState</var> 中<给定)之后#onStart调用此方法。

(继承自 Activity)
OnRestoreInstanceState(Bundle, PersistableBundle)

这与 #onRestoreInstanceState(Bundle) 相同,但对于使用 属性 android.R.attr#persistableMode 设置为 persistAcrossReboots创建的活动调用。

(继承自 Activity)
OnResume()

在 、 #onRestart#onPause之后#onRestoreInstanceState调用。

(继承自 Activity)
OnRetainNonConfigurationInstance()

由系统调用,作为由于配置更改而销毁活动的一部分,当已知将立即为新配置创建新实例时。

(继承自 Activity)
OnSaveInstanceState(Bundle)

调用以在终止之前从活动检索每个实例的状态,以便可以在 中 #onCreate 还原状态,或 #onRestoreInstanceState (Bundle 此方法填充的 将传递到两个) 。

(继承自 Activity)
OnSaveInstanceState(Bundle, PersistableBundle)

这与 #onSaveInstanceState 相同,但对于使用 属性 android.R.attr#persistableMode 设置为 persistAcrossReboots创建的活动调用。

(继承自 Activity)
OnSearchRequested()

当用户发出开始搜索的信号时调用。

(继承自 Activity)
OnSearchRequested(SearchEvent)

当用户发出开始搜索的信号时,将调用此挂钩。

(继承自 Activity)
OnStart()

在 &mdash 之后 #onCreate 调用;或在活动停止后 #onRestart 调用,但现在再次向用户显示。

(继承自 Activity)
OnStateNotSaved()

在其他恢复前回调(如 #onNewIntent#onActivityResult)出现时#onResume调用。

(继承自 Activity)
OnStop()

在用户不再可见时调用。

(继承自 Activity)
OnTitleChanged(ICharSequence, Color)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
OnTitleChanged(String, Color)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
OnTopResumedActivityChanged(Boolean)

当活动获取或丢失系统中的顶部恢复位置时调用。

(继承自 Activity)
OnTouchEvent(MotionEvent)

当活动中的任何视图都不处理触摸屏事件时调用。

(继承自 Activity)
OnTrackballEvent(MotionEvent)

在移动轨迹球且未由活动内的任何视图处理时调用。

(继承自 Activity)
OnTrimMemory(TrimMemory)

当操作系统确定现在是进程从进程中剪裁不需要的内存的好时机时调用。

(继承自 Activity)
OnUserInteraction()

每当将键、触摸或轨迹球事件调度到活动时调用。

(继承自 Activity)
OnUserLeaveHint()

当活动即将作为用户选择的结果进入后台时,作为活动生命周期的一部分调用。

(继承自 Activity)
OnVisibleBehindCanceled()

当此活动的半透明活动变得不透明或启动另一个活动时调用。

(继承自 Activity)
OnWindowAttributesChanged(WindowManagerLayoutParams)

每当当前窗口属性更改时,将调用它。

(继承自 Activity)
OnWindowFocusChanged(Boolean)

当活动的当前 Window 获得或失去焦点时调用。

(继承自 Activity)
OnWindowStartingActionMode(ActionMode+ICallback)

让活动有机会控制系统请求的操作模式的 UI。

(继承自 Activity)
OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)

让活动有机会控制系统请求的操作模式的 UI。

(继承自 Activity)
OpenContextMenu(View)

以编程方式打开特定 view的上下文菜单。

(继承自 Activity)
OpenFileInput(String)

打开与此上下文的应用程序包关联的专用文件以供读取。

(继承自 ContextWrapper)
OpenFileOutput(String, FileCreationMode)

打开与此上下文的应用程序包关联的专用文件进行写入。

(继承自 ContextWrapper)
OpenOptionsMenu()

以编程方式打开选项菜单。

(继承自 Activity)
OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory)

打开与此上下文的应用程序包关联的新专用 SQLiteDatabase。

(继承自 ContextWrapper)
OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler)

打开与此上下文的应用程序包关联的新专用 SQLiteDatabase。

(继承自 ContextWrapper)
OverrideActivityTransition(OverrideTransition, Int32, Int32)

使用此活动自定义活动转换的动画。

(继承自 Activity)
OverrideActivityTransition(OverrideTransition, Int32, Int32, Int32)

使用此活动自定义活动转换的动画。

(继承自 Activity)
OverridePendingTransition(Int32, Int32)

在 或 #finish 的某个风格#startActivity(Intent)之后立即调用 ,指定要执行下一个的显式过渡动画。

(继承自 Activity)
OverridePendingTransition(Int32, Int32, Int32)

在 或 #finish 的某个风格#startActivity(Intent)之后立即调用 ,指定要执行下一个的显式过渡动画。

(继承自 Activity)
PeekWallpaper()
已过时.
(继承自 ContextWrapper)
PostponeEnterTransition()

使用 启动 android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[])Activity 时,推迟进入活动转换。

(继承自 Activity)
Recreate()

使用新实例重新创建此活动。

(继承自 Activity)
RegisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks)

注册仅 Application.ActivityLifecycleCallbacks 接收此活动的生命周期回调的实例。

(继承自 Activity)
RegisterComponentCallbacks(IComponentCallbacks)

向 Context 的基本应用程序添加一个新的 ComponentCallbacks ,它将在调用活动的 ComponentCallbacks 方法和其他组件的同时调用。

(继承自 Context)
RegisterDeviceIdChangeListener(IExecutor, IIntConsumer)

将新的设备 ID 更改侦听器添加到 Context,系统更改设备关联时将调用该侦听器。

(继承自 Context)
RegisterForContextMenu(View)

注册要为给定视图显示的上下文菜单, (多个视图可以显示上下文菜单) 。

(继承自 Activity)
RegisterReceiver(BroadcastReceiver, IntentFilter)

注册一个 BroadcastReceiver,以在main活动线程中运行。

(继承自 ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags)
已过时.

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, ReceiverFlags)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler)

注册以接收意向广播,以在计划程序上下文中运行。

(继承自 ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags)
已过时.

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ReceiverFlags)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
RegisterScreenCaptureCallback(IExecutor, Activity+IScreenCaptureCallback)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
ReleaseInstance()

请求释放此活动的本地应用实例以释放其内存。

(继承自 Activity)
RemoveDialog(Int32)
已过时.

删除对此活动管理的对话的任何内部引用。

(继承自 Activity)
RemoveStickyBroadcast(Intent)
已过时.
(继承自 ContextWrapper)
RemoveStickyBroadcastAsUser(Intent, UserHandle)
已过时.
(继承自 ContextWrapper)
ReportFullyDrawn()

向系统报告你的应用现在已完全绘制,以便进行诊断和优化。

(继承自 Activity)
RequestDragAndDropPermissions(DragEvent)

创建 DragAndDropPermissions 绑定到此活动的 对象,并控制与 DragEvent关联的内容 URI 的访问权限。

(继承自 Activity)
RequestFullscreenMode(FullscreenModeRequest, IOutcomeReceiver)

请求将任意多边形活动置于全屏状态。

(继承自 Activity)
RequestPermissions(String[], Int32)

请求授予此应用程序的权限。

(继承自 Activity)
RequestShowKeyboardShortcuts()

请求显示“键盘快捷方式”屏幕。

(继承自 Activity)
RequestVisibleBehind(Boolean)

希望在其上方半透明活动后面保持可见的活动必须在 的开始 #onResume() 和从 #onPause()返回之间随时调用此方法。

(继承自 Activity)
RequestWindowFeature(WindowFeatures)

启用扩展窗口功能。

(继承自 Activity)
RequireViewById(Int32)

查找由 android:id#onCreate处理的 XML 属性标识的视图,或者如果 ID 无效或层次结构中没有匹配视图,则引发 IllegalArgumentException。

(继承自 Activity)
RequireViewById<T>(Int32)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
RevokeSelfPermissionOnKill(String)

触发运行时权限的异步吊销。

(继承自 Context)
RevokeSelfPermissionsOnKill(ICollection<String>)

触发对调用包的一个或多个权限的吊销。

(继承自 Context)
RevokeUriPermission(String, Uri, ActivityFlags)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
RevokeUriPermission(Uri, ActivityFlags)

删除之前使用 ) M:Android.Content.Context.GrantUriPermission (System.String、Android.Net.Uri、Android.Net.Uri) 添加的特定内容提供程序 URI 的所有权限。

(继承自 ContextWrapper)
RunOnUiThread(Action)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
RunOnUiThread(IRunnable)

在 UI 线程上运行指定的操作。

(继承自 Activity)
SendBroadcast(Intent)

向所有感兴趣的 BroadcastReceivers 广播给定意向。

(继承自 ContextWrapper)
SendBroadcast(Intent, String)

将给定意向广播给所有感兴趣的 BroadcastReceivers,从而允许强制实施可选的必需权限。

(继承自 ContextWrapper)
SendBroadcast(Intent, String, Bundle)

向所有感兴趣的 BroadcastReceivers 广播给定意向,从而允许强制实施可选的必需权限。

(继承自 Context)
SendBroadcastAsUser(Intent, UserHandle)

SendBroadcast(Intent)允许指定将广播发送到的用户的版本。

(继承自 ContextWrapper)
SendBroadcastAsUser(Intent, UserHandle, String)

SendBroadcast(Intent, String)允许指定将广播发送到的用户的版本。

(继承自 ContextWrapper)
SendBroadcastWithMultiplePermissions(Intent, String[])

向所有感兴趣的 BroadcastReceivers 广播给定意向,从而允许强制实施所需的权限数组。

(继承自 Context)
SendOrderedBroadcast(Intent, Int32, String, String, BroadcastReceiver, Handler, String, Bundle, Bundle)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
SendOrderedBroadcast(Intent, String)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

SendBroadcast(Intent)的版本允许从广播中接收回数据。

(继承自 ContextWrapper)
SendOrderedBroadcast(Intent, String, Bundle)

向所有感兴趣的 BroadcastReceiver 广播给定意向,一次传送一个,以允许更多首选接收器在将广播传送到不太首选的接收方之前使用广播。

(继承自 Context)
SendOrderedBroadcast(Intent, String, Bundle, BroadcastReceiver, Handler, Result, String, Bundle)

#sendBroadcast(Intent)允许从广播中接收回数据的 版本。

(继承自 Context)
SendOrderedBroadcast(Intent, String, String, BroadcastReceiver, Handler, Result, String, Bundle)

#sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)允许你指定应用操作以强制限制广播将发送到哪些接收方的版本。

(继承自 Context)
SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
SendStickyBroadcast(Intent)
已过时.

#sendBroadcast(Intent)执行“粘滞”的 ,这意味着你发送的意向在广播完成后会保留,以便其他人可以通过 的返回值#registerReceiver(BroadcastReceiver, IntentFilter)快速检索该数据。

(继承自 ContextWrapper)
SendStickyBroadcast(Intent, Bundle)

执行“ #sendBroadcast(Intent) 粘滞”的 ,这意味着你发送的意向在广播完成后会保留,以便其他人可以通过 的 #registerReceiver(BroadcastReceiver, IntentFilter)返回值快速检索该数据。

(继承自 Context)
SendStickyBroadcastAsUser(Intent, UserHandle)
已过时.
(继承自 ContextWrapper)
SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle)
已过时.
(继承自 ContextWrapper)
SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle)
已过时.
(继承自 ContextWrapper)
SetActionBar(Toolbar)

android.widget.Toolbar Toolbar将 设置为充当ActionBar此“活动”窗口的 。

(继承自 Activity)
SetContentView(Int32)

设置布局资源中的活动内容。

(继承自 Activity)
SetContentView(View)

将活动内容设置为显式视图。

(继承自 Activity)
SetContentView(View, ViewGroup+LayoutParams)

设置布局资源中的活动内容。

(继承自 Activity)
SetDefaultKeyMode(DefaultKey)

为此活动选择默认密钥处理。

(继承自 Activity)
SetEnterSharedElementCallback(SharedElementCallback)

当 用于启动活动时 android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String) , <将调用 var>回调</var> 来处理 启动 的活动上的共享元素。

(继承自 Activity)
SetExitSharedElementCallback(SharedElementCallback)

当 用于启动活动时 android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String) , <将调用 var>callback</var> 来处理 启动 活动上的共享元素。

(继承自 Activity)
SetFeatureDrawable(WindowFeatures, Drawable)

方便调用 android.view.Window#setFeatureDrawable(int, Drawable)

(继承自 Activity)
SetFeatureDrawableAlpha(WindowFeatures, Int32)

方便调用 android.view.Window#setFeatureDrawableAlpha

(继承自 Activity)
SetFeatureDrawableResource(WindowFeatures, Int32)

方便调用 android.view.Window#setFeatureDrawableResource

(继承自 Activity)
SetFeatureDrawableUri(WindowFeatures, Uri)

方便调用 android.view.Window#setFeatureDrawableUri

(继承自 Activity)
SetFinishOnTouchOutside(Boolean)

设置在超出其窗口边界时是否完成此活动。

(继承自 Activity)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetInheritShowWhenLocked(Boolean)

指定每当锁屏打开并且此活动后面有另一个活动且设置了 showWhenLock 属性时,是否应在锁屏界面顶部显示此 Activity 活动。

(继承自 Activity)
SetLocusContext(LocusId, Bundle)

android.content.LocusId设置此活动的 。

(继承自 Activity)
SetPersistent(Boolean)

此成员已弃用。

(继承自 Activity)
SetPictureInPictureParams(PictureInPictureParams)

汇报画中画活动的属性,或将其设置为稍后调用 时#enterPictureInPictureMode()使用。

(继承自 Activity)
SetProgress(Int32)

设置标题中进度栏的进度。

(继承自 Activity)
SetProgressBarIndeterminate(Boolean)

设置游戏中的水平进度栏是否应不确定, (循环始终不确定) 。

(继承自 Activity)
SetProgressBarIndeterminateVisibility(Boolean)

设置游戏中不确定进度栏的可见性。

(继承自 Activity)
SetProgressBarVisibility(Boolean)

设置标题中进度栏的可见性。

(继承自 Activity)
SetRecentsScreenshotEnabled(Boolean)

如果设置为 false,则向系统指示它绝不应将活动的屏幕截图用作“最近”屏幕中的表示形式。

(继承自 Activity)
SetResult(Result)

调用此项可设置活动将返回到其调用方的结果。

(继承自 Activity)
SetResult(Result, Intent)

调用此项可设置活动将返回到其调用方的结果。

(继承自 Activity)
SetSecondaryProgress(Int32)

设置标题中进度栏的辅助进度。

(继承自 Activity)
SetShouldDockBigOverlays(Boolean)

指定固定大覆盖层(如电视上展开的画中画) (查看 PictureInPictureParams.Builder#setExpandedAspectRatio) 的首选项。

(继承自 Activity)
SetShowWhenLocked(Boolean)

指定每当锁屏打开并恢复活动时,是否 Activity 应在锁屏界面顶部显示 。

(继承自 Activity)
SetTaskDescription(ActivityManager+TaskDescription)

设置描述具有此活动的任务的信息,以便在“最近使用”系统 UI 进行演示。

(继承自 Activity)
SetTheme(Int32)

设置此上下文的基主题。

(继承自 ContextWrapper)
SetTheme(Resources+Theme)

设置 配置当前主题。

(继承自 ContextThemeWrapper)
SetTitle(Int32)

更改与此活动关联的标题。

(继承自 Activity)
SetTranslucent(Boolean)

将活动(尤其是具有 android.R.attr#windowIsTranslucentandroid.R.attr#windowIsFloating 属性的活动)转换为全屏不透明活动,或将其从不透明转换回半透明。

(继承自 Activity)
SetTurnScreenOn(Boolean)

指定在恢复 时 Activity 是否应打开屏幕。

(继承自 Activity)
SetVisible(Boolean)

控制此活动的main窗口是否可见。

(继承自 Activity)
SetVrModeEnabled(Boolean, ComponentName)

为此活动启用或禁用虚拟现实 (VR) 模式。

(继承自 Activity)
SetWallpaper(Bitmap)
已过时.
(继承自 ContextWrapper)
SetWallpaper(Stream)
已过时.
(继承自 ContextWrapper)
ShouldDockBigOverlays()

返回是否应按 设置 #setShouldDockBigOverlays将大型覆盖停靠在活动旁边。

(继承自 Activity)
ShouldShowRequestPermissionRationale(String)

获取在请求权限之前是否应显示具有基本原理的 UI。

(继承自 Activity)
ShouldUpRecreateTask(Intent)

如果应用在使用 targetIntent 从此活动导航“向上”时应重新创建任务,则返回 true。

(继承自 Activity)
ShowAssist(Bundle)

要求向用户显示当前助手。

(继承自 Activity)
ShowDialog(Int32)
已过时.

不带任何参数的 #showDialog(int, Bundle) 简单版本。

(继承自 Activity)
ShowDialog(Int32, Bundle)
已过时.

显示此活动管理的对话框。

(继承自 Activity)
ShowLockTaskEscapeMessage()

向用户显示系统定义的消息,告知用户如何退出锁定任务模式。

(继承自 Activity)
StartActionMode(ActionMode+ICallback)

启动默认类型的 ActionMode#TYPE_PRIMARY操作模式。

(继承自 Activity)
StartActionMode(ActionMode+ICallback, ActionModeType)

启动默认类型的 ActionMode#TYPE_PRIMARY操作模式。

(继承自 Activity)
StartActivities(Intent[])

StartActivities(Intent[], Bundle) 相同,未指定任何选项。

(继承自 ContextWrapper)
StartActivities(Intent[], Bundle)

启动多个新活动。

(继承自 ContextWrapper)
StartActivity(Intent)

StartActivity(Intent, Bundle) 相同,未指定任何选项。

(继承自 ContextWrapper)
StartActivity(Intent, Bundle)

启动新活动。

(继承自 ContextWrapper)
StartActivity(Type)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Context)
StartActivityForResult(Intent, Int32)

与没有选项的调用 #startActivityForResult(Intent, int, Bundle) 相同。

(继承自 Activity)
StartActivityForResult(Intent, Int32, Bundle)

启动一个活动,当它完成时需要其结果。

(继承自 Activity)
StartActivityForResult(Type, Int32)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
StartActivityFromChild(Activity, Intent, Int32)

与没有选项的调用 #startActivityFromChild(Activity, Intent, int, Bundle) 相同。

(继承自 Activity)
StartActivityFromChild(Activity, Intent, Int32, Bundle)

当此活动的子活动调用其 或 #startActivityForResult 方法时,会调用它#startActivity

(继承自 Activity)
StartActivityFromFragment(Fragment, Intent, Int32)

与没有选项的调用 #startActivityFromFragment(Fragment, Intent, int, Bundle) 相同。

(继承自 Activity)
StartActivityFromFragment(Fragment, Intent, Int32, Bundle)

当此活动中的 Fragment 调用其 或 Fragment#startActivityForResult 方法时,会调用它Fragment#startActivity

(继承自 Activity)
StartActivityIfNeeded(Intent, Int32)

与没有选项的调用 #startActivityIfNeeded(Intent, int, Bundle) 相同。

(继承自 Activity)
StartActivityIfNeeded(Intent, Int32, Bundle)

仅在需要新活动实例来处理给定意向时才启动活动的特殊变体。

(继承自 Activity)
StartForegroundService(Intent)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
StartInstrumentation(ComponentName, String, Bundle)

开始执行类 Instrumentation

(继承自 ContextWrapper)
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 ContextWrapper)
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

例如 StartActivity(Intent, Bundle),但先获取 IntentSender。

(继承自 ContextWrapper)
StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)

与没有选项的调用 #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) 相同。

(继承自 Activity)
StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

例如 #startActivityForResult(Intent, int),但允许使用 IntentSender 描述要启动的活动。

(继承自 Activity)
StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)

与没有选项的调用 #startIntentSenderFromChild(Activity, IntentSender, int, Intent, int, int, int, Bundle) 相同。

(继承自 Activity)
StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

例如 #startActivityFromChild(Activity, Intent, int),但采用 IntentSender;请参阅#startIntentSenderForResult(IntentSender, int, Intent, int, int, int) 有关详细信息。

(继承自 Activity)
StartLocalVoiceInteraction(Bundle)

启动本地语音交互会话。

(继承自 Activity)
StartLockTask()

请求将此活动置于用户锁定到受限应用程序集的模式。

(继承自 Activity)
StartManagingCursor(ICursor)
已过时.

此方法允许活动根据活动的生命周期为你管理给定 Cursor的生命周期。

(继承自 Activity)
StartNextMatchingActivity(Intent)

与没有选项的调用 #startNextMatchingActivity(Intent, Bundle) 相同。

(继承自 Activity)
StartNextMatchingActivity(Intent, Bundle)

启动活动的特殊版本,用于替换其他活动组件时使用。

(继承自 Activity)
StartPostponedEnterTransition()

调用 后 #postponeEnterTransition() 开始推迟的转换。

(继承自 Activity)
StartSearch(String, Boolean, Bundle, Boolean)

调用此挂钩以启动搜索 UI。

(继承自 Activity)
StartService(Intent)

请求启动给定的应用程序服务。

(继承自 ContextWrapper)
StopLocalVoiceInteraction()

请求终止以前使用 #startLocalVoiceInteraction(Bundle)启动的当前语音交互。

(继承自 Activity)
StopLockTask()

阻止当前任务被锁定。

(继承自 Activity)
StopManagingCursor(ICursor)
已过时.

给定之前提供给 #startManagingCursor的游标,停止活动管理该游标。

(继承自 Activity)
StopService(Intent)

请求停止给定的应用程序服务。

(继承自 ContextWrapper)
TakeKeyEvents(Boolean)

请求关键事件来到此活动。

(继承自 Activity)
ToArray<T>()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
TriggerSearch(String, Bundle)

类似于 #startSearch,但实际上在调用搜索对话框后会触发搜索查询。

(继承自 Activity)
UnbindService(IServiceConnection)

断开与应用程序服务的连接。

(继承自 ContextWrapper)
UnregisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks)

注销 Application.ActivityLifecycleCallbacks 以前使用 注册的 #registerActivityLifecycleCallbacks

(继承自 Activity)
UnregisterComponentCallbacks(IComponentCallbacks)

ComponentCallbacks删除以前向 注册#registerComponentCallbacks(ComponentCallbacks)的对象。

(继承自 Context)
UnregisterDeviceIdChangeListener(IIntConsumer)

从上下文中删除设备 ID 更改的侦听器。

(继承自 Context)
UnregisterForContextMenu(View)

防止为给定视图显示上下文菜单。

(继承自 Activity)
UnregisterFromRuntime()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
UnregisterReceiver(BroadcastReceiver)

注销以前注册的 BroadcastReceiver。

(继承自 ContextWrapper)
UnregisterScreenCaptureCallback(Activity+IScreenCaptureCallback)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Activity)
UpdateServiceGroup(IServiceConnection, Int32, Int32)

对于以前与 #bindService 或相关方法绑定的服务,更改系统管理该服务进程的方式(相对于其他进程)。

(继承自 Context)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.Finalized()

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

GetJniTypeName(IJavaPeerable)

启动另一个活动的存根活动 (,然后根据组件清单元数据中的信息完成自身) 。

适用于