Table of Contents

Class Context

Namespace
Android.Content
Assembly
MASES.Netdroid.dll
public class Context : JVMBridgeBase<Context>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Context>
Context
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Context>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Context>.IsAssignableFrom<T>()
JVMBridgeBase<Context>.Execute<T>(params T[])
JVMBridgeBase<Context>.DynBridgeClazz
JVMBridgeBase<Context>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Context()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Context class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Context()

Context(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Context class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Context(params object[] args)

Parameters

args object[]

Properties

ACCESSIBILITY_SERVICE

public static String ACCESSIBILITY_SERVICE { get; }

Property Value

String

ACCOUNT_SERVICE

public static String ACCOUNT_SERVICE { get; }

Property Value

String

ACTIVITY_SERVICE

public static String ACTIVITY_SERVICE { get; }

Property Value

String

ALARM_SERVICE

public static String ALARM_SERVICE { get; }

Property Value

String

APPWIDGET_SERVICE

public static String APPWIDGET_SERVICE { get; }

Property Value

String

APP_OPS_SERVICE

public static String APP_OPS_SERVICE { get; }

Property Value

String

APP_SEARCH_SERVICE

public static String APP_SEARCH_SERVICE { get; }

Property Value

String

AUDIO_SERVICE

public static String AUDIO_SERVICE { get; }

Property Value

String

BATTERY_SERVICE

public static String BATTERY_SERVICE { get; }

Property Value

String

BIND_ABOVE_CLIENT

public static int BIND_ABOVE_CLIENT { get; }

Property Value

int

BIND_ADJUST_WITH_ACTIVITY

public static int BIND_ADJUST_WITH_ACTIVITY { get; }

Property Value

int

BIND_ALLOW_ACTIVITY_STARTS

public static int BIND_ALLOW_ACTIVITY_STARTS { get; }

Property Value

int

BIND_ALLOW_OOM_MANAGEMENT

public static int BIND_ALLOW_OOM_MANAGEMENT { get; }

Property Value

int

BIND_AUTO_CREATE

public static int BIND_AUTO_CREATE { get; }

Property Value

int

BIND_DEBUG_UNBIND

public static int BIND_DEBUG_UNBIND { get; }

Property Value

int

BIND_EXTERNAL_SERVICE

public static int BIND_EXTERNAL_SERVICE { get; }

Property Value

int

BIND_EXTERNAL_SERVICE_LONG

public static long BIND_EXTERNAL_SERVICE_LONG { get; }

Property Value

long

BIND_IMPORTANT

public static int BIND_IMPORTANT { get; }

Property Value

int

BIND_INCLUDE_CAPABILITIES

public static int BIND_INCLUDE_CAPABILITIES { get; }

Property Value

int

BIND_NOT_FOREGROUND

public static int BIND_NOT_FOREGROUND { get; }

Property Value

int

BIND_NOT_PERCEPTIBLE

public static int BIND_NOT_PERCEPTIBLE { get; }

Property Value

int

BIND_PACKAGE_ISOLATED_PROCESS

public static int BIND_PACKAGE_ISOLATED_PROCESS { get; }

Property Value

int

BIND_SHARED_ISOLATED_PROCESS

public static int BIND_SHARED_ISOLATED_PROCESS { get; }

Property Value

int

BIND_WAIVE_PRIORITY

public static int BIND_WAIVE_PRIORITY { get; }

Property Value

int

BIOMETRIC_SERVICE

public static String BIOMETRIC_SERVICE { get; }

Property Value

String

BLOB_STORE_SERVICE

public static String BLOB_STORE_SERVICE { get; }

Property Value

String

BLUETOOTH_SERVICE

public static String BLUETOOTH_SERVICE { get; }

Property Value

String

BUGREPORT_SERVICE

public static String BUGREPORT_SERVICE { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CAMERA_SERVICE

public static String CAMERA_SERVICE { get; }

Property Value

String

CAPTIONING_SERVICE

public static String CAPTIONING_SERVICE { get; }

Property Value

String

CARRIER_CONFIG_SERVICE

public static String CARRIER_CONFIG_SERVICE { get; }

Property Value

String

CLIPBOARD_SERVICE

public static String CLIPBOARD_SERVICE { get; }

Property Value

String

COMPANION_DEVICE_SERVICE

public static String COMPANION_DEVICE_SERVICE { get; }

Property Value

String

CONNECTIVITY_DIAGNOSTICS_SERVICE

public static String CONNECTIVITY_DIAGNOSTICS_SERVICE { get; }

Property Value

String

CONNECTIVITY_SERVICE

public static String CONNECTIVITY_SERVICE { get; }

Property Value

String

CONSUMER_IR_SERVICE

public static String CONSUMER_IR_SERVICE { get; }

Property Value

String

CONTACT_KEYS_SERVICE

public static String CONTACT_KEYS_SERVICE { get; }

Property Value

String

CONTEXT_IGNORE_SECURITY

public static int CONTEXT_IGNORE_SECURITY { get; }

Property Value

int

CONTEXT_INCLUDE_CODE

public static int CONTEXT_INCLUDE_CODE { get; }

Property Value

int

CONTEXT_RESTRICTED

public static int CONTEXT_RESTRICTED { get; }

Property Value

int

CREDENTIAL_SERVICE

public static String CREDENTIAL_SERVICE { get; }

Property Value

String

CROSS_PROFILE_APPS_SERVICE

public static String CROSS_PROFILE_APPS_SERVICE { get; }

Property Value

String

DEVICE_ID_DEFAULT

public static int DEVICE_ID_DEFAULT { get; }

Property Value

int

DEVICE_ID_INVALID

public static int DEVICE_ID_INVALID { get; }

Property Value

int

DEVICE_LOCK_SERVICE

public static String DEVICE_LOCK_SERVICE { get; }

Property Value

String

DEVICE_POLICY_SERVICE

public static String DEVICE_POLICY_SERVICE { get; }

Property Value

String

DISPLAY_HASH_SERVICE

public static String DISPLAY_HASH_SERVICE { get; }

Property Value

String

DISPLAY_SERVICE

public static String DISPLAY_SERVICE { get; }

Property Value

String

DOMAIN_VERIFICATION_SERVICE

public static String DOMAIN_VERIFICATION_SERVICE { get; }

Property Value

String

DOWNLOAD_SERVICE

public static String DOWNLOAD_SERVICE { get; }

Property Value

String

DROPBOX_SERVICE

public static String DROPBOX_SERVICE { get; }

Property Value

String

EUICC_SERVICE

public static String EUICC_SERVICE { get; }

Property Value

String

FILE_INTEGRITY_SERVICE

public static String FILE_INTEGRITY_SERVICE { get; }

Property Value

String

FINGERPRINT_SERVICE

public static String FINGERPRINT_SERVICE { get; }

Property Value

String

GAME_SERVICE

public static String GAME_SERVICE { get; }

Property Value

String

GRAMMATICAL_INFLECTION_SERVICE

public static String GRAMMATICAL_INFLECTION_SERVICE { get; }

Property Value

String

HARDWARE_PROPERTIES_SERVICE

public static String HARDWARE_PROPERTIES_SERVICE { get; }

Property Value

String

HEALTHCONNECT_SERVICE

public static String HEALTHCONNECT_SERVICE { get; }

Property Value

String

INPUT_METHOD_SERVICE

public static String INPUT_METHOD_SERVICE { get; }

Property Value

String

INPUT_SERVICE

public static String INPUT_SERVICE { get; }

Property Value

String

IPSEC_SERVICE

public static String IPSEC_SERVICE { get; }

Property Value

String

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

JOB_SCHEDULER_SERVICE

public static String JOB_SCHEDULER_SERVICE { get; }

Property Value

String

KEYGUARD_SERVICE

public static String KEYGUARD_SERVICE { get; }

Property Value

String

LAUNCHER_APPS_SERVICE

public static String LAUNCHER_APPS_SERVICE { get; }

Property Value

String

LAYOUT_INFLATER_SERVICE

public static String LAYOUT_INFLATER_SERVICE { get; }

Property Value

String

LOCALE_SERVICE

public static String LOCALE_SERVICE { get; }

Property Value

String

LOCATION_SERVICE

public static String LOCATION_SERVICE { get; }

Property Value

String

MEDIA_COMMUNICATION_SERVICE

public static String MEDIA_COMMUNICATION_SERVICE { get; }

Property Value

String

MEDIA_METRICS_SERVICE

public static String MEDIA_METRICS_SERVICE { get; }

Property Value

String

MEDIA_PROJECTION_SERVICE

public static String MEDIA_PROJECTION_SERVICE { get; }

Property Value

String

MEDIA_ROUTER_SERVICE

public static String MEDIA_ROUTER_SERVICE { get; }

Property Value

String

MEDIA_SESSION_SERVICE

public static String MEDIA_SESSION_SERVICE { get; }

Property Value

String

MIDI_SERVICE

public static String MIDI_SERVICE { get; }

Property Value

String

MODE_APPEND

public static int MODE_APPEND { get; }

Property Value

int

MODE_ENABLE_WRITE_AHEAD_LOGGING

public static int MODE_ENABLE_WRITE_AHEAD_LOGGING { get; }

Property Value

int

MODE_MULTI_PROCESS

[Obsolete]
public static int MODE_MULTI_PROCESS { get; }

Property Value

int

MODE_NO_LOCALIZED_COLLATORS

public static int MODE_NO_LOCALIZED_COLLATORS { get; }

Property Value

int

MODE_PRIVATE

public static int MODE_PRIVATE { get; }

Property Value

int

MODE_WORLD_READABLE

[Obsolete]
public static int MODE_WORLD_READABLE { get; }

Property Value

int

MODE_WORLD_WRITEABLE

[Obsolete]
public static int MODE_WORLD_WRITEABLE { get; }

Property Value

int

NETWORK_STATS_SERVICE

public static String NETWORK_STATS_SERVICE { get; }

Property Value

String

NFC_SERVICE

public static String NFC_SERVICE { get; }

Property Value

String

NOTIFICATION_SERVICE

public static String NOTIFICATION_SERVICE { get; }

Property Value

String

NSD_SERVICE

public static String NSD_SERVICE { get; }

Property Value

String

OVERLAY_SERVICE

public static String OVERLAY_SERVICE { get; }

Property Value

String

PEOPLE_SERVICE

public static String PEOPLE_SERVICE { get; }

Property Value

String

PERFORMANCE_HINT_SERVICE

public static String PERFORMANCE_HINT_SERVICE { get; }

Property Value

String

PERSISTENT_DATA_BLOCK_SERVICE

public static String PERSISTENT_DATA_BLOCK_SERVICE { get; }

Property Value

String

POWER_SERVICE

public static String POWER_SERVICE { get; }

Property Value

String

PRINT_SERVICE

public static String PRINT_SERVICE { get; }

Property Value

String

PROFILING_SERVICE

public static String PROFILING_SERVICE { get; }

Property Value

String

RECEIVER_EXPORTED

public static int RECEIVER_EXPORTED { get; }

Property Value

int

RECEIVER_NOT_EXPORTED

public static int RECEIVER_NOT_EXPORTED { get; }

Property Value

int

RECEIVER_VISIBLE_TO_INSTANT_APPS

public static int RECEIVER_VISIBLE_TO_INSTANT_APPS { get; }

Property Value

int

RESTRICTIONS_SERVICE

public static String RESTRICTIONS_SERVICE { get; }

Property Value

String

ROLE_SERVICE

public static String ROLE_SERVICE { get; }

Property Value

String

SEARCH_SERVICE

public static String SEARCH_SERVICE { get; }

Property Value

String

SECURITY_STATE_SERVICE

public static String SECURITY_STATE_SERVICE { get; }

Property Value

String

SENSOR_SERVICE

public static String SENSOR_SERVICE { get; }

Property Value

String

SHORTCUT_SERVICE

public static String SHORTCUT_SERVICE { get; }

Property Value

String

STATUS_BAR_SERVICE

public static String STATUS_BAR_SERVICE { get; }

Property Value

String

STORAGE_SERVICE

public static String STORAGE_SERVICE { get; }

Property Value

String

STORAGE_STATS_SERVICE

public static String STORAGE_STATS_SERVICE { get; }

Property Value

String

SYSTEM_HEALTH_SERVICE

public static String SYSTEM_HEALTH_SERVICE { get; }

Property Value

String

TELECOM_SERVICE

public static String TELECOM_SERVICE { get; }

Property Value

String

TELEPHONY_IMS_SERVICE

public static String TELEPHONY_IMS_SERVICE { get; }

Property Value

String

TELEPHONY_SERVICE

public static String TELEPHONY_SERVICE { get; }

Property Value

String

TELEPHONY_SUBSCRIPTION_SERVICE

public static String TELEPHONY_SUBSCRIPTION_SERVICE { get; }

Property Value

String

TEXT_CLASSIFICATION_SERVICE

public static String TEXT_CLASSIFICATION_SERVICE { get; }

Property Value

String

TEXT_SERVICES_MANAGER_SERVICE

public static String TEXT_SERVICES_MANAGER_SERVICE { get; }

Property Value

String

TV_INPUT_SERVICE

public static String TV_INPUT_SERVICE { get; }

Property Value

String

TV_INTERACTIVE_APP_SERVICE

public static String TV_INTERACTIVE_APP_SERVICE { get; }

Property Value

String

UI_MODE_SERVICE

public static String UI_MODE_SERVICE { get; }

Property Value

String

USAGE_STATS_SERVICE

public static String USAGE_STATS_SERVICE { get; }

Property Value

String

USB_SERVICE

public static String USB_SERVICE { get; }

Property Value

String

USER_SERVICE

public static String USER_SERVICE { get; }

Property Value

String

VIBRATOR_MANAGER_SERVICE

public static String VIBRATOR_MANAGER_SERVICE { get; }

Property Value

String

VIBRATOR_SERVICE

[Obsolete]
public static String VIBRATOR_SERVICE { get; }

Property Value

String

VIRTUAL_DEVICE_SERVICE

public static String VIRTUAL_DEVICE_SERVICE { get; }

Property Value

String

VPN_MANAGEMENT_SERVICE

public static String VPN_MANAGEMENT_SERVICE { get; }

Property Value

String

WALLPAPER_SERVICE

public static String WALLPAPER_SERVICE { get; }

Property Value

String

WIFI_AWARE_SERVICE

public static String WIFI_AWARE_SERVICE { get; }

Property Value

String

WIFI_P2P_SERVICE

public static String WIFI_P2P_SERVICE { get; }

Property Value

String

WIFI_RTT_RANGING_SERVICE

public static String WIFI_RTT_RANGING_SERVICE { get; }

Property Value

String

WIFI_SERVICE

public static String WIFI_SERVICE { get; }

Property Value

String

WINDOW_SERVICE

public static String WINDOW_SERVICE { get; }

Property Value

String

Methods

BindIsolatedService(Intent, BindServiceFlags, String, Executor, ServiceConnection)

public bool BindIsolatedService(Intent arg0, Context.BindServiceFlags arg1, String arg2, Executor arg3, ServiceConnection arg4)

Parameters

arg0 Intent

Intent

arg1 Context.BindServiceFlags

Context.BindServiceFlags

arg2 String

String

arg3 Executor

Executor

arg4 ServiceConnection

ServiceConnection

Returns

bool

bool

BindIsolatedService(Intent, int, String, Executor, ServiceConnection)

public bool BindIsolatedService(Intent arg0, int arg1, String arg2, Executor arg3, ServiceConnection arg4)

Parameters

arg0 Intent

Intent

arg1 int

int

arg2 String

String

arg3 Executor

Executor

arg4 ServiceConnection

ServiceConnection

Returns

bool

bool

BindService(Intent, BindServiceFlags, Executor, ServiceConnection)

public bool BindService(Intent arg0, Context.BindServiceFlags arg1, Executor arg2, ServiceConnection arg3)

Parameters

arg0 Intent

Intent

arg1 Context.BindServiceFlags

Context.BindServiceFlags

arg2 Executor

Executor

arg3 ServiceConnection

ServiceConnection

Returns

bool

bool

BindService(Intent, ServiceConnection, BindServiceFlags)

public bool BindService(Intent arg0, ServiceConnection arg1, Context.BindServiceFlags arg2)

Parameters

arg0 Intent

Intent

arg1 ServiceConnection

ServiceConnection

arg2 Context.BindServiceFlags

Context.BindServiceFlags

Returns

bool

bool

BindService(Intent, ServiceConnection, int)

public bool BindService(Intent arg0, ServiceConnection arg1, int arg2)

Parameters

arg0 Intent

Intent

arg1 ServiceConnection

ServiceConnection

arg2 int

int

Returns

bool

bool

BindService(Intent, int, Executor, ServiceConnection)

public bool BindService(Intent arg0, int arg1, Executor arg2, ServiceConnection arg3)

Parameters

arg0 Intent

Intent

arg1 int

int

arg2 Executor

Executor

arg3 ServiceConnection

ServiceConnection

Returns

bool

bool

BindServiceAsUser(Intent, ServiceConnection, BindServiceFlags, UserHandle)

public bool BindServiceAsUser(Intent arg0, ServiceConnection arg1, Context.BindServiceFlags arg2, UserHandle arg3)

Parameters

arg0 Intent

Intent

arg1 ServiceConnection

ServiceConnection

arg2 Context.BindServiceFlags

Context.BindServiceFlags

arg3 UserHandle

UserHandle

Returns

bool

bool

BindServiceAsUser(Intent, ServiceConnection, int, UserHandle)

public bool BindServiceAsUser(Intent arg0, ServiceConnection arg1, int arg2, UserHandle arg3)

Parameters

arg0 Intent

Intent

arg1 ServiceConnection

ServiceConnection

arg2 int

int

arg3 UserHandle

UserHandle

Returns

bool

bool

CheckCallingOrSelfPermission(String)

public int CheckCallingOrSelfPermission(String arg0)

Parameters

arg0 String

String

Returns

int

int

CheckCallingOrSelfUriPermission(Uri, int)

public int CheckCallingOrSelfUriPermission(Uri arg0, int arg1)

Parameters

arg0 Uri

Uri

arg1 int

int

Returns

int

int

CheckCallingOrSelfUriPermissions(List<Uri>, int)

public int[] CheckCallingOrSelfUriPermissions(List<Uri> arg0, int arg1)

Parameters

arg0 List<Uri>

List

arg1 int

int

Returns

int[]

int

CheckCallingPermission(String)

public int CheckCallingPermission(String arg0)

Parameters

arg0 String

String

Returns

int

int

CheckCallingUriPermission(Uri, int)

public int CheckCallingUriPermission(Uri arg0, int arg1)

Parameters

arg0 Uri

Uri

arg1 int

int

Returns

int

int

CheckCallingUriPermissions(List<Uri>, int)

public int[] CheckCallingUriPermissions(List<Uri> arg0, int arg1)

Parameters

arg0 List<Uri>

List

arg1 int

int

Returns

int[]

int

CheckContentUriPermissionFull(Uri, int, int, int)

public int CheckContentUriPermissionFull(Uri arg0, int arg1, int arg2, int arg3)

Parameters

arg0 Uri

Uri

arg1 int

int

arg2 int

int

arg3 int

int

Returns

int

int

CheckPermission(String, int, int)

public int CheckPermission(String arg0, int arg1, int arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

Returns

int

int

CheckSelfPermission(String)

public int CheckSelfPermission(String arg0)

Parameters

arg0 String

String

Returns

int

int

CheckUriPermission(Uri, String, String, int, int, int)

public int CheckUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5)

Parameters

arg0 Uri

Uri

arg1 String

String

arg2 String

String

arg3 int

int

arg4 int

int

arg5 int

int

Returns

int

int

CheckUriPermission(Uri, int, int, int)

public int CheckUriPermission(Uri arg0, int arg1, int arg2, int arg3)

Parameters

arg0 Uri

Uri

arg1 int

int

arg2 int

int

arg3 int

int

Returns

int

int

CheckUriPermissions(List<Uri>, int, int, int)

public int[] CheckUriPermissions(List<Uri> arg0, int arg1, int arg2, int arg3)

Parameters

arg0 List<Uri>

List

arg1 int

int

arg2 int

int

arg3 int

int

Returns

int[]

int

ClearWallpaper()

[Obsolete]
public void ClearWallpaper()

Exceptions

IOException

CreateAttributionContext(String)

public Context CreateAttributionContext(String arg0)

Parameters

arg0 String

String

Returns

Context

Context

CreateConfigurationContext(Configuration)

public Context CreateConfigurationContext(Configuration arg0)

Parameters

arg0 Configuration

Configuration

Returns

Context

Context

CreateContext(ContextParams)

public Context CreateContext(ContextParams arg0)

Parameters

arg0 ContextParams

ContextParams

Returns

Context

Context

CreateContextForSplit(String)

public Context CreateContextForSplit(String arg0)

Parameters

arg0 String

String

Returns

Context

Context

Exceptions

PackageManager.NameNotFoundException

CreateDeviceContext(int)

public Context CreateDeviceContext(int arg0)

Parameters

arg0 int

int

Returns

Context

Context

CreateDeviceProtectedStorageContext()

public Context CreateDeviceProtectedStorageContext()

Returns

Context

Context

CreateDisplayContext(Display)

public Context CreateDisplayContext(Display arg0)

Parameters

arg0 Display

Display

Returns

Context

Context

CreatePackageContext(String, int)

public Context CreatePackageContext(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

Context

Context

Exceptions

PackageManager.NameNotFoundException

CreateWindowContext(Display, int, Bundle)

public Context CreateWindowContext(Display arg0, int arg1, Bundle arg2)

Parameters

arg0 Display

Display

arg1 int

int

arg2 Bundle

Bundle

Returns

Context

Context

CreateWindowContext(int, Bundle)

public Context CreateWindowContext(int arg0, Bundle arg1)

Parameters

arg0 int

int

arg1 Bundle

Bundle

Returns

Context

Context

DatabaseList()

public String[] DatabaseList()

Returns

String[]

String

DeleteDatabase(String)

public bool DeleteDatabase(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

DeleteFile(String)

public bool DeleteFile(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

DeleteSharedPreferences(String)

public bool DeleteSharedPreferences(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

EnforceCallingOrSelfPermission(String, String)

public void EnforceCallingOrSelfPermission(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

EnforceCallingOrSelfUriPermission(Uri, int, String)

public void EnforceCallingOrSelfUriPermission(Uri arg0, int arg1, String arg2)

Parameters

arg0 Uri

Uri

arg1 int

int

arg2 String

String

EnforceCallingPermission(String, String)

public void EnforceCallingPermission(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

EnforceCallingUriPermission(Uri, int, String)

public void EnforceCallingUriPermission(Uri arg0, int arg1, String arg2)

Parameters

arg0 Uri

Uri

arg1 int

int

arg2 String

String

EnforcePermission(String, int, int, String)

public void EnforcePermission(String arg0, int arg1, int arg2, String arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 String

String

EnforceUriPermission(Uri, String, String, int, int, int, String)

public void EnforceUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6)

Parameters

arg0 Uri

Uri

arg1 String

String

arg2 String

String

arg3 int

int

arg4 int

int

arg5 int

int

arg6 String

String

EnforceUriPermission(Uri, int, int, int, String)

public void EnforceUriPermission(Uri arg0, int arg1, int arg2, int arg3, String arg4)

Parameters

arg0 Uri

Uri

arg1 int

int

arg2 int

int

arg3 int

int

arg4 String

String

FileList()

public String[] FileList()

Returns

String[]

String

GetApplicationContext()

public Context GetApplicationContext()

Returns

Context

Context

GetApplicationInfo()

public ApplicationInfo GetApplicationInfo()

Returns

ApplicationInfo

ApplicationInfo

GetAssets()

public AssetManager GetAssets()

Returns

AssetManager

AssetManager

GetAttributionSource()

public AttributionSource GetAttributionSource()

Returns

AttributionSource

AttributionSource

GetAttributionTag()

public String GetAttributionTag()

Returns

String

String

GetCacheDir()

public File GetCacheDir()

Returns

File

File

GetClassLoader()

public ClassLoader GetClassLoader()

Returns

ClassLoader

ClassLoader

GetCodeCacheDir()

public File GetCodeCacheDir()

Returns

File

File

GetColor(int)

public int GetColor(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetColorStateList(int)

public ColorStateList GetColorStateList(int arg0)

Parameters

arg0 int

int

Returns

ColorStateList

ColorStateList

GetContentResolver()

public ContentResolver GetContentResolver()

Returns

ContentResolver

ContentResolver

GetDataDir()

public File GetDataDir()

Returns

File

File

GetDatabasePath(String)

public File GetDatabasePath(String arg0)

Parameters

arg0 String

String

Returns

File

File

GetDeviceId()

public int GetDeviceId()

Returns

int

int

GetDir(String, int)

public File GetDir(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

File

File

GetDisplay()

public Display GetDisplay()

Returns

Display

Display

GetDrawable(int)

public Drawable GetDrawable(int arg0)

Parameters

arg0 int

int

Returns

Drawable

Drawable

GetExternalCacheDir()

public File GetExternalCacheDir()

Returns

File

File

GetExternalCacheDirs()

public File[] GetExternalCacheDirs()

Returns

File[]

File

GetExternalFilesDir(String)

public File GetExternalFilesDir(String arg0)

Parameters

arg0 String

String

Returns

File

File

GetExternalFilesDirs(String)

public File[] GetExternalFilesDirs(String arg0)

Parameters

arg0 String

String

Returns

File[]

File

GetExternalMediaDirs()

[Obsolete]
public File[] GetExternalMediaDirs()

Returns

File[]

File

GetFileStreamPath(String)

public File GetFileStreamPath(String arg0)

Parameters

arg0 String

String

Returns

File

File

GetFilesDir()

public File GetFilesDir()

Returns

File

File

GetMainExecutor()

public Executor GetMainExecutor()

Returns

Executor

Executor

GetMainLooper()

public Looper GetMainLooper()

Returns

Looper

Looper

GetNoBackupFilesDir()

public File GetNoBackupFilesDir()

Returns

File

File

GetObbDir()

public File GetObbDir()

Returns

File

File

GetObbDirs()

public File[] GetObbDirs()

Returns

File[]

File

GetOpPackageName()

public String GetOpPackageName()

Returns

String

String

GetPackageCodePath()

public String GetPackageCodePath()

Returns

String

String

GetPackageManager()

public PackageManager GetPackageManager()

Returns

PackageManager

PackageManager

GetPackageName()

public String GetPackageName()

Returns

String

String

GetPackageResourcePath()

public String GetPackageResourcePath()

Returns

String

String

GetParams()

public ContextParams GetParams()

Returns

ContextParams

ContextParams

GetResources()

public Resources GetResources()

Returns

Resources

Resources

GetSharedPreferences(String, int)

public SharedPreferences GetSharedPreferences(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

SharedPreferences

SharedPreferences

GetString(int)

public String GetString(int arg0)

Parameters

arg0 int

int

Returns

String

String

GetString(int, params object[])

public String GetString(int arg0, params object[] arg1)

Parameters

arg0 int

int

arg1 object[]

object

Returns

String

String

GetSystemService(String)

public object GetSystemService(String arg0)

Parameters

arg0 String

String

Returns

object

object

GetSystemServiceName(Class)

public String GetSystemServiceName(Class arg0)

Parameters

arg0 Class

Class

Returns

String

String

GetSystemService<T>(Class)

public T GetSystemService<T>(Class arg0)

Parameters

arg0 Class

Class

Returns

T

T

Type Parameters

T

GetText(int)

public CharSequence GetText(int arg0)

Parameters

arg0 int

int

Returns

CharSequence

CharSequence

GetTheme()

public Resources.Theme GetTheme()

Returns

Resources.Theme

Resources.Theme

GetWallpaper()

[Obsolete]
public Drawable GetWallpaper()

Returns

Drawable

Drawable

GetWallpaperDesiredMinimumHeight()

[Obsolete]
public int GetWallpaperDesiredMinimumHeight()

Returns

int

int

GetWallpaperDesiredMinimumWidth()

[Obsolete]
public int GetWallpaperDesiredMinimumWidth()

Returns

int

int

GrantUriPermission(String, Uri, int)

public void GrantUriPermission(String arg0, Uri arg1, int arg2)

Parameters

arg0 String

String

arg1 Uri

Uri

arg2 int

int

IsDeviceProtectedStorage()

public bool IsDeviceProtectedStorage()

Returns

bool

bool

IsRestricted()

public bool IsRestricted()

Returns

bool

bool

IsUiContext()

public bool IsUiContext()

Returns

bool

bool

MoveDatabaseFrom(Context, String)

public bool MoveDatabaseFrom(Context arg0, String arg1)

Parameters

arg0 Context

Context

arg1 String

String

Returns

bool

bool

MoveSharedPreferencesFrom(Context, String)

public bool MoveSharedPreferencesFrom(Context arg0, String arg1)

Parameters

arg0 Context

Context

arg1 String

String

Returns

bool

bool

ObtainStyledAttributes(AttributeSet, int[])

public TypedArray ObtainStyledAttributes(AttributeSet arg0, int[] arg1)

Parameters

arg0 AttributeSet

AttributeSet

arg1 int[]

int

Returns

TypedArray

TypedArray

ObtainStyledAttributes(AttributeSet, int[], int, int)

public TypedArray ObtainStyledAttributes(AttributeSet arg0, int[] arg1, int arg2, int arg3)

Parameters

arg0 AttributeSet

AttributeSet

arg1 int[]

int

arg2 int

int

arg3 int

int

Returns

TypedArray

TypedArray

ObtainStyledAttributes(int, int[])

public TypedArray ObtainStyledAttributes(int arg0, int[] arg1)

Parameters

arg0 int

int

arg1 int[]

int

Returns

TypedArray

TypedArray

Exceptions

Resources.NotFoundException

ObtainStyledAttributes(int[])

public TypedArray ObtainStyledAttributes(int[] arg0)

Parameters

arg0 int[]

int

Returns

TypedArray

TypedArray

OpenFileInput(String)

public FileInputStream OpenFileInput(String arg0)

Parameters

arg0 String

String

Returns

FileInputStream

FileInputStream

Exceptions

FileNotFoundException

OpenFileOutput(String, int)

public FileOutputStream OpenFileOutput(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

FileOutputStream

FileOutputStream

Exceptions

FileNotFoundException

OpenOrCreateDatabase(String, int, CursorFactory)

public SQLiteDatabase OpenOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 SQLiteDatabase.CursorFactory

SQLiteDatabase.CursorFactory

Returns

SQLiteDatabase

SQLiteDatabase

OpenOrCreateDatabase(String, int, CursorFactory, DatabaseErrorHandler)

public SQLiteDatabase OpenOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2, DatabaseErrorHandler arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 SQLiteDatabase.CursorFactory

SQLiteDatabase.CursorFactory

arg3 DatabaseErrorHandler

DatabaseErrorHandler

Returns

SQLiteDatabase

SQLiteDatabase

PeekWallpaper()

[Obsolete]
public Drawable PeekWallpaper()

Returns

Drawable

Drawable

RegisterComponentCallbacks(ComponentCallbacks)

public void RegisterComponentCallbacks(ComponentCallbacks arg0)

Parameters

arg0 ComponentCallbacks

ComponentCallbacks

RegisterDeviceIdChangeListener(Executor, IntConsumer)

public void RegisterDeviceIdChangeListener(Executor arg0, IntConsumer arg1)

Parameters

arg0 Executor

Executor

arg1 IntConsumer

IntConsumer

RegisterReceiver(BroadcastReceiver, IntentFilter)

public Intent RegisterReceiver(BroadcastReceiver arg0, IntentFilter arg1)

Parameters

arg0 BroadcastReceiver

BroadcastReceiver

arg1 IntentFilter

IntentFilter

Returns

Intent

Intent

RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler)

public Intent RegisterReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3)

Parameters

arg0 BroadcastReceiver

BroadcastReceiver

arg1 IntentFilter

IntentFilter

arg2 String

String

arg3 Handler

Handler

Returns

Intent

Intent

RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, int)

public Intent RegisterReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3, int arg4)

Parameters

arg0 BroadcastReceiver

BroadcastReceiver

arg1 IntentFilter

IntentFilter

arg2 String

String

arg3 Handler

Handler

arg4 int

int

Returns

Intent

Intent

RegisterReceiver(BroadcastReceiver, IntentFilter, int)

public Intent RegisterReceiver(BroadcastReceiver arg0, IntentFilter arg1, int arg2)

Parameters

arg0 BroadcastReceiver

BroadcastReceiver

arg1 IntentFilter

IntentFilter

arg2 int

int

Returns

Intent

Intent

RemoveStickyBroadcast(Intent)

[Obsolete]
public void RemoveStickyBroadcast(Intent arg0)

Parameters

arg0 Intent

Intent

RemoveStickyBroadcastAsUser(Intent, UserHandle)

[Obsolete]
public void RemoveStickyBroadcastAsUser(Intent arg0, UserHandle arg1)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

RevokeSelfPermissionOnKill(String)

public void RevokeSelfPermissionOnKill(String arg0)

Parameters

arg0 String

String

RevokeSelfPermissionsOnKill(Collection<String>)

public void RevokeSelfPermissionsOnKill(Collection<String> arg0)

Parameters

arg0 Collection<String>

Collection

RevokeUriPermission(Uri, int)

public void RevokeUriPermission(Uri arg0, int arg1)

Parameters

arg0 Uri

Uri

arg1 int

int

RevokeUriPermission(String, Uri, int)

public void RevokeUriPermission(String arg0, Uri arg1, int arg2)

Parameters

arg0 String

String

arg1 Uri

Uri

arg2 int

int

SendBroadcast(Intent)

public void SendBroadcast(Intent arg0)

Parameters

arg0 Intent

Intent

SendBroadcast(Intent, String)

public void SendBroadcast(Intent arg0, String arg1)

Parameters

arg0 Intent

Intent

arg1 String

String

SendBroadcast(Intent, String, Bundle)

public void SendBroadcast(Intent arg0, String arg1, Bundle arg2)

Parameters

arg0 Intent

Intent

arg1 String

String

arg2 Bundle

Bundle

SendBroadcastAsUser(Intent, UserHandle)

public void SendBroadcastAsUser(Intent arg0, UserHandle arg1)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

SendBroadcastAsUser(Intent, UserHandle, String)

public void SendBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

arg2 String

String

SendBroadcastWithMultiplePermissions(Intent, String[])

public void SendBroadcastWithMultiplePermissions(Intent arg0, String[] arg1)

Parameters

arg0 Intent

Intent

arg1 String[]

String

SendOrderedBroadcast(Intent, String)

public void SendOrderedBroadcast(Intent arg0, String arg1)

Parameters

arg0 Intent

Intent

arg1 String

String

SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)

public void SendOrderedBroadcast(Intent arg0, String arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)

Parameters

arg0 Intent

Intent

arg1 String

String

arg2 BroadcastReceiver

BroadcastReceiver

arg3 Handler

Handler

arg4 int

int

arg5 String

String

arg6 Bundle

Bundle

SendOrderedBroadcast(Intent, String, Bundle)

public void SendOrderedBroadcast(Intent arg0, String arg1, Bundle arg2)

Parameters

arg0 Intent

Intent

arg1 String

String

arg2 Bundle

Bundle

SendOrderedBroadcast(Intent, String, Bundle, BroadcastReceiver, Handler, int, String, Bundle)

public void SendOrderedBroadcast(Intent arg0, String arg1, Bundle arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)

Parameters

arg0 Intent

Intent

arg1 String

String

arg2 Bundle

Bundle

arg3 BroadcastReceiver

BroadcastReceiver

arg4 Handler

Handler

arg5 int

int

arg6 String

String

arg7 Bundle

Bundle

SendOrderedBroadcast(Intent, String, String, BroadcastReceiver, Handler, int, String, Bundle)

public void SendOrderedBroadcast(Intent arg0, String arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)

Parameters

arg0 Intent

Intent

arg1 String

String

arg2 String

String

arg3 BroadcastReceiver

BroadcastReceiver

arg4 Handler

Handler

arg5 int

int

arg6 String

String

arg7 Bundle

Bundle

SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, int, String, Bundle)

public void SendOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

arg2 String

String

arg3 BroadcastReceiver

BroadcastReceiver

arg4 Handler

Handler

arg5 int

int

arg6 String

String

arg7 Bundle

Bundle

SendStickyBroadcast(Intent)

[Obsolete]
public void SendStickyBroadcast(Intent arg0)

Parameters

arg0 Intent

Intent

SendStickyBroadcast(Intent, Bundle)

[Obsolete]
public void SendStickyBroadcast(Intent arg0, Bundle arg1)

Parameters

arg0 Intent

Intent

arg1 Bundle

Bundle

SendStickyBroadcastAsUser(Intent, UserHandle)

[Obsolete]
public void SendStickyBroadcastAsUser(Intent arg0, UserHandle arg1)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)

[Obsolete]
public void SendStickyOrderedBroadcast(Intent arg0, BroadcastReceiver arg1, Handler arg2, int arg3, String arg4, Bundle arg5)

Parameters

arg0 Intent

Intent

arg1 BroadcastReceiver

BroadcastReceiver

arg2 Handler

Handler

arg3 int

int

arg4 String

String

arg5 Bundle

Bundle

SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, int, String, Bundle)

[Obsolete]
public void SendStickyOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)

Parameters

arg0 Intent

Intent

arg1 UserHandle

UserHandle

arg2 BroadcastReceiver

BroadcastReceiver

arg3 Handler

Handler

arg4 int

int

arg5 String

String

arg6 Bundle

Bundle

SetTheme(int)

public void SetTheme(int arg0)

Parameters

arg0 int

int

SetWallpaper(Bitmap)

[Obsolete]
public void SetWallpaper(Bitmap arg0)

Parameters

arg0 Bitmap

Bitmap

Exceptions

IOException

SetWallpaper(InputStream)

[Obsolete]
public void SetWallpaper(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Exceptions

IOException

StartActivities(Intent[])

public void StartActivities(Intent[] arg0)

Parameters

arg0 Intent[]

Intent

StartActivities(Intent[], Bundle)

public void StartActivities(Intent[] arg0, Bundle arg1)

Parameters

arg0 Intent[]

Intent

arg1 Bundle

Bundle

StartActivity(Intent)

public void StartActivity(Intent arg0)

Parameters

arg0 Intent

Intent

StartActivity(Intent, Bundle)

public void StartActivity(Intent arg0, Bundle arg1)

Parameters

arg0 Intent

Intent

arg1 Bundle

Bundle

StartForegroundService(Intent)

public ComponentName StartForegroundService(Intent arg0)

Parameters

arg0 Intent

Intent

Returns

ComponentName

ComponentName

StartInstrumentation(ComponentName, String, Bundle)

public bool StartInstrumentation(ComponentName arg0, String arg1, Bundle arg2)

Parameters

arg0 ComponentName

ComponentName

arg1 String

String

arg2 Bundle

Bundle

Returns

bool

bool

StartIntentSender(IntentSender, Intent, int, int, int)

public void StartIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4)

Parameters

arg0 IntentSender

IntentSender

arg1 Intent

Intent

arg2 int

int

arg3 int

int

arg4 int

int

Exceptions

IntentSender.SendIntentException

StartIntentSender(IntentSender, Intent, int, int, int, Bundle)

public void StartIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4, Bundle arg5)

Parameters

arg0 IntentSender

IntentSender

arg1 Intent

Intent

arg2 int

int

arg3 int

int

arg4 int

int

arg5 Bundle

Bundle

Exceptions

IntentSender.SendIntentException

StartService(Intent)

public ComponentName StartService(Intent arg0)

Parameters

arg0 Intent

Intent

Returns

ComponentName

ComponentName

StopService(Intent)

public bool StopService(Intent arg0)

Parameters

arg0 Intent

Intent

Returns

bool

bool

UnbindService(ServiceConnection)

public void UnbindService(ServiceConnection arg0)

Parameters

arg0 ServiceConnection

ServiceConnection

UnregisterComponentCallbacks(ComponentCallbacks)

public void UnregisterComponentCallbacks(ComponentCallbacks arg0)

Parameters

arg0 ComponentCallbacks

ComponentCallbacks

UnregisterDeviceIdChangeListener(IntConsumer)

public void UnregisterDeviceIdChangeListener(IntConsumer arg0)

Parameters

arg0 IntConsumer

IntConsumer

UnregisterReceiver(BroadcastReceiver)

public void UnregisterReceiver(BroadcastReceiver arg0)

Parameters

arg0 BroadcastReceiver

BroadcastReceiver

UpdateServiceGroup(ServiceConnection, int, int)

public void UpdateServiceGroup(ServiceConnection arg0, int arg1, int arg2)

Parameters

arg0 ServiceConnection

ServiceConnection

arg1 int

int

arg2 int

int