boolean
|
bindIsolatedService(Intent service, int flags, String instanceName, Executor executor, ServiceConnection conn)
bindService(Intent, BindServiceFlags, Executor, ServiceConnection) のバリエーション。分離されたサービスの特定のケースで、呼び出し元が 1 つのコンポーネント宣言からサービスの複数のインスタンスを生成できるようにします。
|
boolean
|
bindIsolatedService(Intent service, Context.BindServiceFlags flags, String instanceName, Executor executor, ServiceConnection conn)
bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection) を参照して、BindServiceFlags#of(long) を呼び出すと、BindServiceFlags オブジェクトを取得できます。
|
boolean
|
bindService(Intent service, int flags, Executor executor, ServiceConnection conn)
bindService(Intent, ServiceConnection, int) と同様に、ServiceConnection コールバックを制御するエグゼキュータがあります。
|
boolean
|
bindService(Intent service, ServiceConnection conn, Context.BindServiceFlags flags)
bindService(android.content.Intent, android.content.ServiceConnection, int) を参照して、BindServiceFlags#of(long) を呼び出すと、BindServiceFlags オブジェクトを取得できます。
|
abstract
boolean
|
bindService(Intent service, ServiceConnection conn, int flags)
アプリケーション サービスに接続し、必要に応じて作成します。
|
boolean
|
bindService(Intent service, Context.BindServiceFlags flags, Executor executor, ServiceConnection conn)
bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection) を参照して、BindServiceFlags#of(long) を呼び出すと、BindServiceFlags オブジェクトを取得できます。
|
boolean
|
bindServiceAsUser(Intent service, ServiceConnection conn, int flags, UserHandle user)
bindService(Intent, BindServiceFlags, Executor, ServiceConnection) と同じ方法で、指定された user 内のサービスにバインドします。
|
boolean
|
bindServiceAsUser(Intent service, ServiceConnection conn, Context.BindServiceFlags flags, UserHandle user)
bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle) を参照して、BindServiceFlags#of(long) を呼び出すと、BindServiceFlags オブジェクトを取得できます。
|
abstract
int
|
checkCallingOrSelfPermission(String permission)
IPC の呼び出しプロセスにまたは自身の権限が付与されているかどうかを確認します。
|
abstract
int
|
checkCallingOrSelfUriPermission(Uri uri, int modeFlags)
IPC または自分の呼び出しプロセスに、特定の URI へのアクセス権限が付与されているかどうかを確認します。
|
int[]
|
checkCallingOrSelfUriPermissions(List<Uri> uris, int modeFlags)
IPC または自分の呼び出しプロセスに、URI のリストにアクセスする権限が付与されているかどうかを判断します。
|
abstract
int
|
checkCallingPermission(String permission)
処理している IPC の呼び出しプロセスに特定の権限が付与されているかどうかを判断します。
|
abstract
int
|
checkCallingUriPermission(Uri uri, int modeFlags)
呼び出し側のプロセスとユーザー ID に、特定の URI へのアクセス権限が付与されているかどうかを確認します。
|
int[]
|
checkCallingUriPermissions(List<Uri> uris, int modeFlags)
呼び出し側のプロセスとユーザー ID に、URI のリストにアクセスする権限が付与されているかどうかを判断します。
|
abstract
int
|
checkPermission(String permission, int pid, int uid)
特定の権限が、システム内で実行されている特定のプロセスとユーザー ID に対して許可されるかどうかを判断します。
|
abstract
int
|
checkSelfPermission(String permission)
特定の権限がご自身に付与されているかどうかを確認します。
|
abstract
int
|
checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags)
URI と標準の権限の両方を確認します。
|
abstract
int
|
checkUriPermission(Uri uri, int pid, int uid, int modeFlags)
特定のプロセスとユーザー ID に、特定の URI へのアクセス権限が付与されているかどうかを判断します。
|
int[]
|
checkUriPermissions(List<Uri> uris, int pid, int uid, int modeFlags)
特定のプロセスとユーザー ID に、URI のリストにアクセスする権限が付与されているかどうかを判断します。
|
abstract
void
|
clearWallpaper()
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.clear() を使用してください。 このメソッドでは、呼び出し元が権限 Manifest.permission.SET_WALLPAPER を保持している必要があります。
|
Context
|
createAttributionContext(String attributionTag)
現在の Context について、別のタグに属する新しい Context オブジェクトを返します。
|
abstract
Context
|
createConfigurationContext(Configuration overrideConfiguration)
現在の Context の新しい Context オブジェクトを返しますが、そのリソースは指定された Configuration に一致するように調整されています。
|
Context
|
createContext(ContextParams contextParams)
特定のプロパティと動作を持つコンテキストを作成します。
|
abstract
Context
|
createContextForSplit(String splitName)
指定された分割名の新しい Context オブジェクトを返します。
|
Context
|
createDeviceContext(int deviceId)
現在のコンテキストから、deviceId で指定されたデバイスとの関連付けを使用して、新しい Context オブジェクトを返します。
|
abstract
Context
|
createDeviceProtectedStorageContext()
現在の Context について、ただしそのストレージ API がデバイス保護ストレージによってサポートされている新しい Context オブジェクトを返します。
|
abstract
Context
|
createDisplayContext(Display display)
現在のコンテキストから、リソース display の指標に合わせてリソースが調整された新しい Context オブジェクトを返します。
|
abstract
Context
|
createPackageContext(String packageName, int flags)
指定されたアプリケーション名の新しい Context オブジェクトを返します。
|
Context
|
createWindowContext(int type, Bundle options)
アクティビティ以外のウィンドウ用のコンテキストを作成します。
|
Context
|
createWindowContext(Display display, int type, Bundle options)
指定された Display で、activity 以外のウィンドウの Context を作成します。
|
abstract
String[]
|
databaseList()
このコンテキストのアプリ パッケージに関連付けられているプライベート データベースの名前を示す文字列の配列を返します。
|
abstract
boolean
|
deleteDatabase(String name)
このコンテキストのアプリ パッケージに関連付けられている既存の非公開 SQLiteDatabase を削除します。
|
abstract
boolean
|
deleteFile(String name)
このコンテキストのアプリ パッケージに関連付けられている特定のプライベート ファイルを削除します。
|
abstract
boolean
|
deleteSharedPreferences(String name)
既存の共有環境設定ファイルを削除します。
|
abstract
void
|
enforceCallingOrSelfPermission(String permission, String message)
自分自身と、処理している IPC の呼び出しプロセスのどちらも特定の権限が付与されていない場合は、SecurityException をスローします。
|
abstract
void
|
enforceCallingOrSelfUriPermission(Uri uri, int modeFlags, String message)
IPC または自分の呼び出しプロセスに特定の URI へのアクセス権限が付与されていない場合は、SecurityException をスローします。
|
abstract
void
|
enforceCallingPermission(String permission, String message)
処理している IPC の呼び出しプロセスに特定の権限が付与されていない場合は、SecurityException をスローします。
|
abstract
void
|
enforceCallingUriPermission(Uri uri, int modeFlags, String message)
呼び出し側のプロセスとユーザー ID に、特定の URI にアクセスする権限が付与されていない場合は、SecurityException をスローします。
|
abstract
void
|
enforcePermission(String permission, int pid, int uid, String message)
指定された権限が、システム内で実行されている特定のプロセスとユーザー ID で許可されていない場合は、SecurityException をスローします。
|
abstract
void
|
enforceUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message)
URI 権限と標準の権限の両方を適用します。
|
abstract
void
|
enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message)
特定のプロセスとユーザー ID に、特定の URI へのアクセス権限が付与されていない場合は、SecurityException をスローします。
|
abstract
String[]
|
fileList()
このコンテキストのアプリ パッケージに関連付けられているプライベート ファイルの名前を示す文字列の配列を返します。
|
abstract
Context
|
getApplicationContext()
現在のプロセスの単一のグローバル アプリケーション オブジェクトのコンテキストを返します。
|
abstract
ApplicationInfo
|
getApplicationInfo()
このコンテキストのパッケージの完全なアプリケーション情報を返します。
|
abstract
AssetManager
|
getAssets()
アプリのパッケージの AssetManager インスタンスを返します。
|
AttributionSource
|
getAttributionSource()
|
String
|
getAttributionTag()
複雑なアプリでアトリビューションを使用すると、アプリの各部分を論理的に分離できます。
|
abstract
File
|
getCacheDir()
ファイル システム上のアプリケーション固有のキャッシュ ディレクトリへの絶対パスを返します。
|
abstract
ClassLoader
|
getClassLoader()
このパッケージ内のクラスの取得に使用できるクラスローダーを返します。
|
abstract
File
|
getCodeCacheDir()
キャッシュされたコードを格納するように設計されたファイル システム上のアプリケーション固有のキャッシュ ディレクトリへの絶対パスを返します。
|
final
int
|
getColor(int id)
特定のリソース ID に関連付けられ、現在のテーマのスタイルが設定された色を返します。
|
final
ColorStateList
|
getColorStateList(int id)
特定のリソース ID に関連付けられ、現在のテーマに合わせてスタイル設定されたカラー状態リストを返します。
|
abstract
ContentResolver
|
getContentResolver()
アプリのパッケージの ContentResolver インスタンスを返します。
|
abstract
File
|
getDataDir()
このアプリに属するすべてのプライベート ファイルが保存される、ファイル システム上のディレクトリへの絶対パスを返します。
|
abstract
File
|
getDatabasePath(String name)
openOrCreateDatabase(String, int, CursorFactory) で作成されたデータベースが保存されているファイル システム上の絶対パスを返します。
|
int
|
getDeviceId()
このコンテキストが関連付けられているデバイス ID を取得します。
|
abstract
File
|
getDir(String name, int mode)
アプリケーションが独自のカスタムデータファイルを配置できる新しいディレクトリを取得します(必要に応じて作成)。
|
Display
|
getDisplay()
このコンテキストが関連付けられているディスプレイを取得します。
|
final
Drawable
|
getDrawable(int id)
特定のリソース ID に関連付けられ、現在のテーマに合わせてスタイル設定されたドローアブル オブジェクトを返します。
|
abstract
File
|
getExternalCacheDir()
アプリが所有するキャッシュ ファイルを配置できるプライマリ共有ストレージ/外部ストレージ デバイス上のアプリケーション固有のディレクトリへの絶対パスを返します。
|
abstract
File[]
|
getExternalCacheDirs()
アプリが自身のキャッシュ ファイルを配置できるすべての共有ストレージ/外部ストレージ デバイス上にあるアプリ固有のディレクトリへの絶対パスを返します。
|
abstract
File
|
getExternalFilesDir(String type)
アプリが所有する永続ファイルを配置できる、プライマリ共有/外部ストレージ デバイスのディレクトリへの絶対パスを返します。
|
abstract
File[]
|
getExternalFilesDirs(String type)
アプリがアプリが所有する永続ファイルを配置できるすべての共有ストレージ/外部ストレージ デバイス上のアプリ固有のディレクトリへの絶対パスを返します。
|
abstract
File[]
|
getExternalMediaDirs()
このメソッドは API レベル 30 で非推奨になりました。
これらのディレクトリはまだ存在し、スキャンされますが、Build.VERSION_CODES.Q 以降、どのアプリも権限なしで新しいメディアを MediaStore に提供できるため、デベロッパーはコンテンツを MediaStore コレクションに直接挿入するよう移行することをおすすめします。
|
abstract
File
|
getFileStreamPath(String name)
openFileOutput(String, int) で作成されたファイルが保存されている、ファイルシステム上の絶対パスを返します。
|
abstract
File
|
getFilesDir()
openFileOutput(String, int) で作成されたファイルが保存されているファイル システム上のディレクトリへの絶対パスを返します。
|
Executor
|
getMainExecutor()
このコンテキストに関連付けられたメインスレッドで、キューに追加されたタスクを実行する Executor を返します。
|
abstract
Looper
|
getMainLooper()
現在のプロセスのメインスレッドの Looper を返します。
|
abstract
File
|
getNoBackupFilesDir()
ファイル システム上のディレクトリへの絶対パスを返します(getFilesDir() と同様)。
|
abstract
File
|
getObbDir()
このアプリケーションの OBB ファイル(存在する場合)が見つかった、共有/外部ストレージのプライマリ ディレクトリを返します。
|
abstract
File[]
|
getObbDirs()
アプリの OBB ファイル(存在する場合)が存在するすべての共有ストレージ/外部ストレージ デバイス上にアプリ固有のディレクトリへの絶対パスを返します。
|
String
|
getOpPackageName()
このコンテキストから AppOpsManager の呼び出しに使用するパッケージ名を返します。これにより、App Ops マネージャーの uid 検証がその名前で機能するようになります。
|
abstract
String
|
getPackageCodePath()
このコンテキストのプライマリ Android パッケージへのフルパスを返します。
|
abstract
PackageManager
|
getPackageManager()
PackageManager インスタンスを返して、グローバル パッケージ情報を確認します。
|
abstract
String
|
getPackageName()
このアプリケーションのパッケージの名前を返します。
|
abstract
String
|
getPackageResourcePath()
このコンテキストのプライマリ Android パッケージへのフルパスを返します。
|
ContextParams
|
getParams()
createContext(android.content.ContextParams) で作成された場合は、このコンテキストの作成に使用されたパラメータのセットを返します。
|
abstract
Resources
|
getResources()
アプリのパッケージの Resources インスタンスを返します。
|
abstract
SharedPreferences
|
getSharedPreferences(String name, int mode)
環境設定ファイル「name」の内容を取得して保持し、その値の取得と変更に使用する SharedPreferences を返します。
|
final
String
|
getString(int resId)
アプリのパッケージのデフォルト文字列テーブルからローカライズされた文字列を返します。
|
final
String
|
getString(int resId, Object... formatArgs)
Formatter と String.format(String, Object) で定義されている形式引数を置き換えて、アプリのパッケージのデフォルトの文字列テーブルからローカライズされた形式の文字列を返します。
|
final
<T>
T
|
getSystemService(Class<T> serviceClass)
クラスごとにシステムレベルのサービスへのハンドルを返します。
|
abstract
Object
|
getSystemService(String name)
名前を指定して、システムレベルのサービスへのハンドルを返します。
|
abstract
String
|
getSystemServiceName(Class<?> serviceClass)
指定されたクラスで表されるシステムレベルのサービスの名前を取得します。
|
final
CharSequence
|
getText(int resId)
アプリケーションのパッケージのデフォルト文字列テーブルから、ローカライズされたスタイル付き CharSequence を返します。
|
abstract
Resources.Theme
|
getTheme()
この Context に関連付けられているテーマ オブジェクトを返します。
|
abstract
Drawable
|
getWallpaper()
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.get() を使用してください。
|
abstract
int
|
getWallpaperDesiredMinimumHeight()
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.getDesiredMinimumHeight() を使用してください。
|
abstract
int
|
getWallpaperDesiredMinimumWidth()
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.getDesiredMinimumWidth() を使用してください。
|
abstract
void
|
grantUriPermission(String toPackage, Uri uri, int modeFlags)
特定の URI にアクセスする権限を別のパッケージに付与します。そのパッケージが、その URI のコンテンツ プロバイダにアクセスする一般的な権限を持っているかどうかは関係ありません。
|
abstract
boolean
|
isDeviceProtectedStorage()
この Context のストレージ API が、デバイス保護ストレージによって支えられているかどうかを示します。
|
boolean
|
isRestricted()
この Context が制限されているかどうかを示します。
|
boolean
|
isUiContext()
コンテキストが、UI コンポーネント(WindowManager 、LayoutInflater 、WallpaperManager など)にアクセスできる UI コンテキストである場合、true を返します。
|
abstract
boolean
|
moveDatabaseFrom(Context sourceContext, String name)
指定されたソース ストレージ コンテキストからこのコンテキストに、既存のデータベース ファイルを移動します。
|
abstract
boolean
|
moveSharedPreferencesFrom(Context sourceContext, String name)
指定されたソース ストレージ コンテキストからこのコンテキストに既存の共有環境設定ファイルを移動します。
|
final
TypedArray
|
obtainStyledAttributes(AttributeSet set, int[] attrs)
このコンテキストのテーマでスタイル付き属性情報を取得します。
|
final
TypedArray
|
obtainStyledAttributes(AttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes)
このコンテキストのテーマでスタイル付き属性情報を取得します。
|
final
TypedArray
|
obtainStyledAttributes(int resid, int[] attrs)
このコンテキストのテーマでスタイル付き属性情報を取得します。
|
final
TypedArray
|
obtainStyledAttributes(int[] attrs)
このコンテキストのテーマでスタイル付き属性情報を取得します。
|
abstract
FileInputStream
|
openFileInput(String name)
この Context のアプリ パッケージに関連付けられているプライベート ファイルを読み取り用に開きます。
|
abstract
FileOutputStream
|
openFileOutput(String name, int mode)
このコンテキストのアプリケーション パッケージに関連付けられたプライベート ファイルを、書き込み用に開きます。
|
abstract
SQLiteDatabase
|
openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler)
このコンテキストのアプリ パッケージに関連付けられている新しいプライベート SQLiteDatabase を開きます。
|
abstract
SQLiteDatabase
|
openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory)
このコンテキストのアプリ パッケージに関連付けられている新しいプライベート SQLiteDatabase を開きます。
|
abstract
Drawable
|
peekWallpaper()
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.peek() を使用してください。
|
void
|
registerComponentCallbacks(ComponentCallbacks callback)
Context のベースアプリに新しい ComponentCallbacks を追加します。これは、アクティビティやその他のコンポーネントの ComponentCallbacks メソッドが呼び出されるのと同時に呼び出されます。
|
void
|
registerDeviceIdChangeListener(Executor executor, IntConsumer listener)
新しいデバイス ID 変更リスナーを Context に追加します。このリスナーは、デバイスの関連付けがシステムによって変更されたときに呼び出されます。
|
abstract
Intent
|
registerReceiver(BroadcastReceiver receiver, IntentFilter filter)
メイン アクティビティ スレッドで実行する BroadcastReceiver を登録します。
|
abstract
Intent
|
registerReceiver(BroadcastReceiver receiver, IntentFilter filter, int flags)
インテント ブロードキャストを受信するよう登録し、レシーバを必要に応じて Instant Apps に公開します。
|
abstract
Intent
|
registerReceiver(BroadcastReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler, int flags)
インテント ブロードキャストを受信するために登録し、scheduler のコンテキスト内で実行します。
|
abstract
Intent
|
registerReceiver(BroadcastReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler)
インテント ブロードキャストを受信するために登録し、scheduler のコンテキスト内で実行します。
|
abstract
void
|
removeStickyBroadcast(Intent intent)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
abstract
void
|
removeStickyBroadcastAsUser(Intent intent, UserHandle user)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
void
|
revokeSelfPermissionOnKill(String permName)
実行時の権限の非同期の取り消しをトリガーします。
|
void
|
revokeSelfPermissionsOnKill(Collection<String> permissions)
呼び出し元のパッケージの 1 つ以上の権限の取り消しをトリガーします。
|
abstract
void
|
revokeUriPermission(Uri uri, int modeFlags)
以前に grantUriPermission(String, Uri, int) またはその他のメカニズムで追加された、特定のコンテンツ プロバイダ URI にアクセスするための権限をすべて削除します。
|
abstract
void
|
revokeUriPermission(String toPackage, Uri uri, int modeFlags)
特定のターゲット パッケージ用に grantUriPermission(String, Uri, int) で以前に追加された特定のコンテンツ プロバイダ URI にアクセスする権限を削除します。
|
void
|
sendBroadcast(Intent intent, String receiverPermission, Bundle options)
指定されたインテントを関係するすべての BroadcastReceiver にブロードキャストし、オプションの必要な権限を適用できるようにします。
|
abstract
void
|
sendBroadcast(Intent intent, String receiverPermission)
指定されたインテントを関係するすべての BroadcastReceiver にブロードキャストし、オプションの必要な権限を適用できるようにします。
|
abstract
void
|
sendBroadcast(Intent intent)
指定されたインテントを、関連するすべての BroadcastReceiver にブロードキャストします。
|
abstract
void
|
sendBroadcastAsUser(Intent intent, UserHandle user)
ブロードキャストの送信先ユーザーを指定できる sendBroadcast(android.content.Intent) のバージョン。
|
abstract
void
|
sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission)
ブロードキャストの送信先ユーザーを指定できる sendBroadcast(android.content.Intent, java.lang.String) のバージョン。
|
void
|
sendBroadcastWithMultiplePermissions(Intent intent, String[] receiverPermissions)
指定されたインテントを対象のすべての BroadcastReceiver にブロードキャストして、必要な権限の配列を適用します。
|
void
|
sendOrderedBroadcast(Intent intent, String receiverPermission, String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle) のバージョン。アプリ操作を指定して、ブロードキャストの送信先のレシーバに制限を適用できます。
|
abstract
void
|
sendOrderedBroadcast(Intent intent, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
ブロードキャストからデータを受け取ることができる sendBroadcast(android.content.Intent) のバージョン。
|
void
|
sendOrderedBroadcast(Intent intent, String receiverPermission, Bundle options)
指定されたインテントを関係するすべての BroadcastReceiver にブロードキャストし、一度に 1 つずつ配信します。これにより、優先順位の低いレシーバにブロードキャストが配信される前に、優先度の高いレシーバがブロードキャストを消費できるようになります。
|
void
|
sendOrderedBroadcast(Intent intent, String receiverPermission, Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
ブロードキャストからデータを受け取ることができる sendBroadcast(android.content.Intent) のバージョン。
|
abstract
void
|
sendOrderedBroadcast(Intent intent, String receiverPermission)
指定されたインテントを関係するすべての BroadcastReceiver にブロードキャストし、一度に 1 つずつ配信します。これにより、優先順位の低いレシーバにブロードキャストが配信される前に、優先度の高いレシーバがブロードキャストを消費できるようになります。
|
abstract
void
|
sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
ブロードキャストの送信先ユーザーを指定できる sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle) のバージョン。
|
abstract
void
|
sendStickyBroadcast(Intent intent)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
void
|
sendStickyBroadcast(Intent intent, Bundle options)
このメソッドは API レベル 31 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
abstract
void
|
sendStickyBroadcastAsUser(Intent intent, UserHandle user)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
abstract
void
|
sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
abstract
void
|
sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
このメソッドは API レベル 21 で非推奨になりました。
スティッキー ブロードキャストを使用しないでください。セキュリティ(誰もがアクセスできる)や保護(誰でも変更できる)など、多くの問題は提供されません。
何かが変更されたことを非スティッキー ブロードキャストで報告し、アプリが必要なときに現在の値を取得する別のメカニズムを使用することをおすすめします。
|
abstract
void
|
setTheme(int resid)
このコンテキストのベーステーマを設定します。
|
abstract
void
|
setWallpaper(Bitmap bitmap)
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.set() を使用してください。 このメソッドでは、呼び出し元が権限 Manifest.permission.SET_WALLPAPER を保持している必要があります。
|
abstract
void
|
setWallpaper(InputStream data)
このメソッドは API レベル 15 で非推奨になりました。
代わりに WallpaperManager.set() を使用してください。 このメソッドでは、呼び出し元が権限 Manifest.permission.SET_WALLPAPER を保持している必要があります。
|
abstract
void
|
startActivities(Intent[] intents, Bundle options)
複数の新しいアクティビティを起動する
|
abstract
void
|
startActivities(Intent[] intents)
オプションを指定しない startActivities(android.content.Intent[], android.os.Bundle) と同じです。
|
abstract
void
|
startActivity(Intent intent)
オプションを指定しない startActivity(android.content.Intent, android.os.Bundle) と同じです。
|
abstract
void
|
startActivity(Intent intent, Bundle options)
新しいアクティビティを起動する
|
abstract
ComponentName
|
startForegroundService(Intent service)
startService(android.content.Intent) に似ていますが、Service の実行が開始されると startForeground(int, android.app.Notification) を呼び出すことが暗黙的に約束されています。
|
abstract
boolean
|
startInstrumentation(ComponentName className, String profileFile, Bundle arguments)
Instrumentation クラスの実行を開始します。
|
abstract
void
|
startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
オプションを指定しない startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle) と同じです。
|
abstract
void
|
startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)
startActivity(android.content.Intent, android.os.Bundle) に似ていますが、IntentSender を受け取ります。
|
abstract
ComponentName
|
startService(Intent service)
特定のアプリケーション サービスを開始するようリクエストします。
|
abstract
boolean
|
stopService(Intent service)
特定のアプリケーション サービスの停止をリクエストします。
|
abstract
void
|
unbindService(ServiceConnection conn)
アプリケーション サービスとの接続を解除します。
|
void
|
unregisterComponentCallbacks(ComponentCallbacks callback)
以前に registerComponentCallbacks(android.content.ComponentCallbacks) で登録された ComponentCallbacks オブジェクトを削除します。
|
void
|
unregisterDeviceIdChangeListener(IntConsumer listener)
デバイス ID が変更されたリスナーを Context から削除します。
|
abstract
void
|
unregisterReceiver(BroadcastReceiver receiver)
以前登録した BroadcastReceiver の登録を解除。
|
void
|
updateServiceGroup(ServiceConnection conn, int group, int importance)
以前に bindService(Intent, BindServiceFlags, Executor, ServiceConnection) または関連するメソッドにバインドされていたサービスについて、そのサービスのプロセスを他のプロセスとの関連でシステムが管理する方法を変更します。
|