boolean
|
bindIsolatedService(Intent service, int flags, String instanceName, Executor executor, ServiceConnection conn)
分離という特定のケースでの bindService(Intent, BindServiceFlags, Executor, ServiceConnection) のバリエーション。
使用して、呼び出し元がサービスの複数のインスタンスを
単一のコンポーネントの宣言から取得できます。
|
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 または自身の呼び出しプロセスが許可されているかどうかを確認する
アクセス権限を付与できます。
|
int[]
|
checkCallingOrSelfUriPermissions(List<Uri> uris, int modeFlags)
IPC または自身の呼び出しプロセスが許可されているかどうかを確認する
アクセス権限を付与できます。
|
abstract
int
|
checkCallingPermission(String permission)
対応中の IPC の呼び出しプロセスが
特定の権限を付与できます。
|
abstract
int
|
checkCallingUriPermission(Uri uri, int modeFlags)
通話プロセスとユーザー ID が
アクセス権限を付与できます。
|
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 が付与されているかどうかを判別する
アクセス権限を付与できます。
|
int[]
|
checkUriPermissions(List<Uri> uris, int pid, int uid, int modeFlags)
特定のプロセスとユーザー ID が付与されているかどうかを判別する
アクセス権限を付与できます。
|
abstract
void
|
clearWallpaper()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.clear() を使用してください。
このメソッドでは、呼び出し元が権限を保持している必要があります。
Manifest.permission.SET_WALLPAPER 。
|
Context
|
createAttributionContext(String attributionTag)
現在の Context の新しい Context オブジェクトを返しますが、別のタグに帰属します。
|
abstract
Context
|
createConfigurationContext(Configuration overrideConfiguration)
現在の Context に対して、そのリソースが持つ新しい Context オブジェクトを返します。
特定の構成に一致するように調整されます。
|
Context
|
createContext(ContextParams contextParams)
特定のプロパティと動作を含むコンテキストを作成します。
|
abstract
Context
|
createContextForSplit(String splitName)
指定された分割名の新しい Context オブジェクトを返します。
|
Context
|
createDeviceContext(int deviceId)
現在のコンテキストから、デバイスを関連付けた新しい Context オブジェクトを返します。
deviceId に基づいています
|
abstract
Context
|
createDeviceProtectedStorageContext()
現在の Context の新しい Context オブジェクトを返します。ただし、
API は、デバイス保護されたストレージを基盤としています。
|
abstract
Context
|
createDisplayContext(Display display)
現在のコンテキストからリソースを含む新しい Context オブジェクトを返します。
display の指標に合わせて調整されています。
|
abstract
Context
|
createPackageContext(String packageName, int flags)
指定されたアプリケーション名の新しい Context オブジェクトを返します。
|
Context
|
createWindowContext(int type, Bundle options)
アクティビティ以外のウィンドウのコンテキストを作成します。
|
Context
|
createWindowContext(Display display, int type, Bundle options)
指定されたイベントに activity 以外のウィンドウの Context を作成します。
Display 。
|
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 の呼び出しプロセスも 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 が承認されていない場合
アクセス権限を付与した場合は、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 が付与されていない場合
アクセス権限を付与した場合は、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()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 30 で利用できます。
これらのディレクトリはまだ存在し、スキャンされますが、デベロッパーは
コンテンツの挿入は、
他のアプリと同様に、MediaStore コレクションを直接使用できます。
新しいメディアを MediaStore に投稿する必要はありません
必要な権限については、
Build.VERSION_CODES.Q 。
|
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 Manager の 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()
このコンテキストに関連付けられている Theme オブジェクトを返します。
|
abstract
Drawable
|
getWallpaper()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.get() を使用してください。
|
abstract
int
|
getWallpaperDesiredMinimumHeight()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.getDesiredMinimumHeight() を使用してください。
|
abstract
int
|
getWallpaperDesiredMinimumWidth()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.getDesiredMinimumWidth() を使用してください。
|
abstract
void
|
grantUriPermission(String toPackage, Uri uri, int modeFlags)
特定の URI にアクセスする権限を別のパッケージに付与する(場所は問わない)
そのパッケージに、URI の URI にアクセスするための一般的な権限があるかどうかが
コンテンツ プロバイダを指定します。
|
abstract
boolean
|
isDeviceProtectedStorage()
このコンテキストのストレージ API が
保存されることはありません。
|
boolean
|
isRestricted()
このコンテキストが制限されているかどうかを示します。
|
boolean
|
isUiContext()
コンテキストが、次のような UI コンポーネントにアクセスできる UI コンテキストである場合、true を返します。
WindowManager 、LayoutInflater 、または
WallpaperManager 。
|
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)
このコンテキストのアプリケーション パッケージに関連付けられている非公開ファイルを開く
あります。
|
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()
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.peek() を使用してください。
|
void
|
registerComponentCallbacks(ComponentCallbacks callback)
新しい 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)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
abstract
void
|
removeStickyBroadcastAsUser(Intent intent, UserHandle user)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
void
|
revokeSelfPermissionOnKill(String permName)
実行時の権限の非同期取り消しをトリガーします。
|
void
|
revokeSelfPermissionsOnKill(Collection<String> permissions)
呼び出し元パッケージに対する 1 つ以上の権限の取り消しをトリガーします。
|
abstract
void
|
revokeUriPermission(Uri uri, int modeFlags)
特定のコンテンツ プロバイダ URI にアクセスするための権限をすべて削除する
以前に grantUriPermission(String, Uri, int) または他のメカニズムで追加された機能。
|
abstract
void
|
revokeUriPermission(String toPackage, Uri uri, int modeFlags)
特定のコンテンツ プロバイダの URI へのアクセス権を削除する
以前に特定のターゲットに grantUriPermission(String, Uri, int) を使用して追加されたもの。
パッケージ化されています。
|
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)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で使用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
void
|
sendStickyBroadcast(Intent intent, Bundle options)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 31 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更の発生時にアプリが現在の値を取得する別のメカニズムが
あります。
|
abstract
void
|
sendStickyBroadcastAsUser(Intent intent, UserHandle user)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
abstract
void
|
sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
abstract
void
|
sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 21 で利用できます。
スティッキー ブロードキャストは使用しないでください。セキュリティは提供されず、
保護の対象外(誰でも変更できる)、その他多くの問題があります。
推奨されるパターンは、スティッキーのないブロードキャストを使用して、何かが
変更されたため、変更のたびにアプリが現在の値を取得する別のメカニズムが
あります。
|
abstract
void
|
setTheme(int resid)
このコンテキストのベーステーマを設定します。
|
abstract
void
|
setWallpaper(Bitmap bitmap)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
API レベル 15 で利用できます。
代わりに WallpaperManager.set() を使用してください。
このメソッドでは、呼び出し元が権限を保持している必要があります。
Manifest.permission.SET_WALLPAPER 。
|
abstract
void
|
setWallpaper(InputStream data)
<ph type="x-smartling-placeholder"></ph>
このメソッドは非推奨となりました
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) に似ていますが、次の暗黙的な Promise があります。
実行が開始されると、サービスは 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)
以前に登録された ComponentCallbacks オブジェクトを削除する
registerComponentCallbacks(android.content.ComponentCallbacks) に置き換えます。
|
void
|
unregisterDeviceIdChangeListener(IntConsumer listener)
デバイス ID が変更されたリスナーをコンテキストから削除します。
|
abstract
void
|
unregisterReceiver(BroadcastReceiver receiver)
以前に登録された BroadcastReceiver の登録を解除する。
|
void
|
updateServiceGroup(ServiceConnection conn, int group, int importance)
以前に bindService(Intent, BindServiceFlags, Executor, ServiceConnection) または関連するメソッドにバインドされていたサービスの場合は、
システムがそのサービスのプロセスを他のプロセスと関連付けて管理する仕組み。
|