共用方式為


ApplicationErrorReport.GetErrorReportReceiver 方法

定義

在 receiverPackage 中傳回處理ACTION_APP_ERROR的活動。

[Android.Runtime.Register("getErrorReportReceiver", "(Landroid/content/Context;Ljava/lang/String;I)Landroid/content/ComponentName;", "")]
public static Android.Content.ComponentName? GetErrorReportReceiver (Android.Content.Context? context, string? packageName, Android.Content.PM.ApplicationInfoFlags appFlags);
[<Android.Runtime.Register("getErrorReportReceiver", "(Landroid/content/Context;Ljava/lang/String;I)Landroid/content/ComponentName;", "")>]
static member GetErrorReportReceiver : Android.Content.Context * string * Android.Content.PM.ApplicationInfoFlags -> Android.Content.ComponentName

參數

context
Context
packageName
String

傳回

在 receiverPackage 中處理ACTION_APP_ERROR的活動元件,如果找不到則為 null

屬性

備註

android.app.ApplicationErrorReport.getErrorReportReceiver(android.content.pm.PackageManager, java.lang.String, java.lang.String)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於