一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

1. Context

 黎可圖書(shū)館 2015-01-19
Public Methods
abstract boolean bindService(Intent service, ServiceConnection conn, int flags)
Connect to an application service, creating it if needed.
abstract int checkCallingOrSelfPermission(String permission)
Determine whether the calling process of an IPC or you have been granted a particular permission.
abstract int checkCallingOrSelfUriPermission(Uri uri, int modeFlags)
Determine whether the calling process of an IPC or you has been granted permission to access a specific URI.
abstract int checkCallingPermission(String permission)
Determine whether the calling process of an IPC you are handling has been granted a particular permission.
abstract int checkCallingUriPermission(Uri uri, int modeFlags)
Determine whether the calling process and user ID has been granted permission to access a specific URI.
abstract int checkPermission(String permission, int pid, int uid)
Determine whether the given permission is allowed for a particular process and user ID running in the system.
abstract int checkUriPermission(Uri uri, int pid, int uid, int modeFlags)
Determine whether a particular process and user ID has been granted permission to access a specific URI.
abstract int checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags)
Check both a Uri and normal permission.
abstract void clearWallpaper()
This method was deprecated in API level 5. Use WallpaperManager.clear() instead.

This method requires the caller to hold the permission SET_WALLPAPER.

abstract Context createConfigurationContext(Configuration overrideConfiguration)
Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.
abstract Context createDisplayContext(Display display)
Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.
abstract Context createPackageContext(String packageName, int flags)
Return a new Context object for the given application name.
abstract String[] databaseList()
Returns an array of strings naming the private databases associated with this Context's application package.
abstract boolean deleteDatabase(String name)
Delete an existing private SQLiteDatabase associated with this Context's application package.
abstract boolean deleteFile(String name)
Delete the given private file associated with this Context's application package.
abstract void enforceCallingOrSelfPermission(String permission, String message)
If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a SecurityException.
abstract void enforceCallingOrSelfUriPermission(Uri uri, int modeFlags, String message)
If the calling process of an IPC or you has not been granted permission to access a specific URI, throw SecurityException.
abstract void enforceCallingPermission(String permission, String message)
If the calling process of an IPC you are handling has not been granted a particular permission, throw a SecurityException.
abstract void enforceCallingUriPermission(Uri uri, int modeFlags, String message)
If the calling process and user ID has not been granted permission to access a specific URI, throw SecurityException.
abstract void enforcePermission(String permission, int pid, int uid, String message)
If the given permission is not allowed for a particular process and user ID running in the system, throw a SecurityException.
abstract void enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message)
If a particular process and user ID has not been granted permission to access a specific URI, throw SecurityException.
abstract void enforceUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message)
Enforce both a Uri and normal permission.
abstract String[] fileList()
Returns an array of strings naming the private files associated with this Context's application package.
abstract Context getApplicationContext()
Return the context of the single, global Application object of the current process.
abstract ApplicationInfo getApplicationInfo()
Return the full application info for this context's package.
abstract AssetManager getAssets()
Return an AssetManager instance for your application's package.
abstract File getCacheDir()
Returns the absolute path to the application specific cache directory on the filesystem.
abstract ClassLoader getClassLoader()
Return a class loader you can use to retrieve classes in this package.
abstract File getCodeCacheDir()
Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.
abstract ContentResolver getContentResolver()
Return a ContentResolver instance for your application's package.
abstract File getDatabasePath(String name)
Returns the absolute path on the filesystem where a database created with openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory) is stored.
abstract File getDir(String name, int mode)
Retrieve, creating if needed, a new directory in which the application can place its own custom data files.
final Drawable getDrawable(int id)
Return a drawable object associated with a particular resource ID and styled for the current theme.
abstract File getExternalCacheDir()
Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Environment.getExternalStorageDirectory() where the application can place cache files it owns.
abstract File[] getExternalCacheDirs()
Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns.
abstract File getExternalFilesDir(String type)
Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Environment.getExternalStorageDirectory()) where the application can place persistent files it owns.
abstract File[] getExternalFilesDirs(String type)
Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns.
abstract File[] getExternalMediaDirs()
Returns absolute paths to application-specific directories on all external storage devices where the application can place media files.
abstract File getFileStreamPath(String name)
Returns the absolute path on the filesystem where a file created with openFileOutput(String, int) is stored.
abstract File getFilesDir()
Returns the absolute path to the directory on the filesystem where files created with openFileOutput(String, int) are stored.
abstract Looper getMainLooper()
Return the Looper for the main thread of the current process.
abstract File getNoBackupFilesDir()
Returns the absolute path to the directory on the filesystem similar to getFilesDir().
abstract File getObbDir()
Return the primary external storage directory where this application's OBB files (if there are any) can be found.
abstract File[] getObbDirs()
Returns absolute paths to application-specific directories on all external storage devices where the application's OBB files (if there are any) can be found.
abstract String getPackageCodePath()
Return the full path to this context's primary Android package.
abstract PackageManager getPackageManager()
Return PackageManager instance to find global package information.
abstract String getPackageName()
Return the name of this application's package.
abstract String getPackageResourcePath()
Return the full path to this context's primary Android package.
abstract Resources getResources()
Return a Resources instance for your application's package.
abstract SharedPreferences getSharedPreferences(String name, int mode)
Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values.
final String getString(int resId)
Return a localized string from the application's package's default string table.
final String getString(int resId, Object... formatArgs)
Return a localized formatted string from the application's package's default string table, substituting the format arguments as defined in Formatter and format(String, Object...).
abstract Object getSystemService(String name)
Return the handle to a system-level service by name.
final CharSequence getText(int resId)
Return a localized, styled CharSequence from the application's package's default string table.
abstract Resources.Theme getTheme()
Return the Theme object associated with this Context.
abstract Drawable getWallpaper()
This method was deprecated in API level 5. Use WallpaperManager.get() instead.
abstract int getWallpaperDesiredMinimumHeight()
This method was deprecated in API level 5. Use WallpaperManager.getDesiredMinimumHeight() instead.
abstract int getWallpaperDesiredMinimumWidth()
This method was deprecated in API level 5. Use WallpaperManager.getDesiredMinimumWidth() instead.
abstract void grantUriPermission(String toPackage, Uri uri, int modeFlags)
Grant permission to access a specific Uri to another package, regardless of whether that package has general permission to access the Uri's content provider.
boolean isRestricted()
Indicates whether this Context is restricted.
final TypedArray obtainStyledAttributes(int[] attrs)
Retrieve styled attribute information in this Context's theme.
final TypedArray obtainStyledAttributes(AttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes)
Retrieve styled attribute information in this Context's theme.
final TypedArray obtainStyledAttributes(AttributeSet set, int[] attrs)
Retrieve styled attribute information in this Context's theme.
final TypedArray obtainStyledAttributes(int resid, int[] attrs)
Retrieve styled attribute information in this Context's theme.
abstract FileInputStream openFileInput(String name)
Open a private file associated with this Context's application package for reading.
abstract FileOutputStream openFileOutput(String name, int mode)
Open a private file associated with this Context's application package for writing.
abstract SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory)
Open a new private SQLiteDatabase associated with this Context's application package.
abstract SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler)
Open a new private SQLiteDatabase associated with this Context's application package.
abstract Drawable peekWallpaper()
This method was deprecated in API level 5. Use WallpaperManager.peek() instead.
void registerComponentCallbacks(ComponentCallbacks callback)
Add a new ComponentCallbacks to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called.
abstract Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter)
Register a BroadcastReceiver to be run in the main activity thread.
abstract Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler)
Register to receive intent broadcasts, to run in the context of scheduler.
abstract void removeStickyBroadcast(Intent intent)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void removeStickyBroadcastAsUser(Intent intent, UserHandle user)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void revokeUriPermission(Uri uri, int modeFlags)
Remove all permissions to access a particular content provider Uri that were previously added with grantUriPermission(String, Uri, int).
abstract void sendBroadcast(Intent intent, String receiverPermission)
Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.
abstract void sendBroadcast(Intent intent)
Broadcast the given intent to all interested BroadcastReceivers.
abstract void sendBroadcastAsUser(Intent intent, UserHandle user)
Version of sendBroadcast(Intent) that allows you to specify the user the broadcast will be sent to.
abstract void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission)
Version of sendBroadcast(Intent, String) that allows you to specify the user the broadcast will be sent to.
abstract void sendOrderedBroadcast(Intent intent, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
Version of sendBroadcast(Intent) that allows you to receive data back from the broadcast.
abstract void sendOrderedBroadcast(Intent intent, String receiverPermission)
Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers.
abstract void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
Version of sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle) that allows you to specify the user the broadcast will be sent to.
abstract void sendStickyBroadcast(Intent intent)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void sendStickyBroadcastAsUser(Intent intent, UserHandle user)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired.
abstract void setTheme(int resid)
Set the base theme for this context.
abstract void setWallpaper(InputStream data)
This method was deprecated in API level 5. Use WallpaperManager.set() instead.

This method requires the caller to hold the permission SET_WALLPAPER.

abstract void setWallpaper(Bitmap bitmap)
This method was deprecated in API level 5. Use WallpaperManager.set() instead.

This method requires the caller to hold the permission SET_WALLPAPER.

abstract void startActivities(Intent[] intents, Bundle options)
Launch multiple new activities.
abstract void startActivities(Intent[] intents)
Same as startActivities(Intent[], Bundle) with no options specified.
abstract void startActivity(Intent intent)
Same as startActivity(Intent, Bundle) with no options specified.
abstract void startActivity(Intent intent, Bundle options)
Launch a new activity.
abstract boolean startInstrumentation(ComponentName className, String profileFile, Bundle arguments)
Start executing an Instrumentation class.
abstract void startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)
Like startActivity(Intent, Bundle), but taking a IntentSender to start.
abstract void startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
abstract ComponentName startService(Intent service)
Request that a given application service be started.
abstract boolean stopService(Intent service)
Request that a given application service be stopped.
abstract void unbindService(ServiceConnection conn)
Disconnect from an application service.
void unregisterComponentCallbacks(ComponentCallbacks callback)
Remove a ComponentCallbacks object that was previously registered with registerComponentCallbacks(ComponentCallbacks).
abstract void unregisterReceiver(BroadcastReceiver receiver)
Unregister a previously registered BroadcastReceiver.

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多

    91欧美日韩一区人妻少妇| 欧美中文日韩一区久久| 国产成人av在线免播放观看av| 午夜福利大片亚洲一区| 一区二区三区欧美高清| 日韩欧美国产精品中文字幕| 欧美亚洲美女资源国产| 日韩一级欧美一级久久| 国产欧美日韩一级小黄片| 加勒比东京热拍拍一区二区| 内射精子视频欧美一区二区| 日本福利写真在线观看| 亚洲欧美日韩国产综合在线| 欧美午夜色视频国产精品| 成人欧美精品一区二区三区| 东京热一二三区在线免| 精品久久av一二三区| 免费观看在线午夜视频| 免费观看在线午夜视频| 丰满少妇被猛烈撞击在线视频| 91人人妻人人爽人人狠狠| 国产午夜在线精品视频| 日本一级特黄大片国产| 少妇肥臀一区二区三区| 尹人大香蕉中文在线播放| 大香蕉伊人一区二区三区| 久久国产精品热爱视频| 日韩人妻免费视频一专区| a久久天堂国产毛片精品| 亚洲精品福利视频你懂的| 欧美精品激情视频一区| 中文字幕乱码免费人妻av| 国产三级不卡在线观看视频| 国产一区麻豆水好多高潮| 亚洲国产四季欧美一区| 91午夜少妇极品福利| 亚洲av一区二区三区精品| 人妻内射在线二区一区| 中文字幕五月婷婷免费 | 日韩成人动画在线观看| 亚洲精品深夜福利视频|