Removed Methods
|
void broadcastIntent(Intent )
|
Broadcast the given intent to all interested IntentReceivers. |
void broadcastIntent(Intent, String)
|
Broadcast the given intent to all interested IntentReceivers, allowing
an optional required permission to be enforced. |
void broadcastIntent(Intent, String, IntentReceiver, Handler, int, String, Bundle)
|
Version of .broadcastIntent(Intent) that allows you to
receive data back from the broadcast. |
void broadcastIntentSerialized(Intent, String)
|
Broadcast the given intent to all interested IntentReceivers, delivering
them one at a time to allow more preferred receivers to consume the
broadcast before it is delivered to less preferred receivers. |
void broadcastStickyIntent(Intent )
|
Perform a .broadcastIntent(Intent) that is "sticky," meaning the
Intent you are sending stays around after the broadcast is complete,
so that others can quickly retrieve that data through the return
value of .registerReceiver(IntentReceiver, IntentFilter). |
SQLiteDatabase createDatabase(String, int, int, CursorFactory)
|
Create a new private SQLiteDatabase associate with this Context's
application package. |
SQLiteDatabase openDatabase(String, CursorFactory)
|
Open an existing private SQLiteDatabase associated with this
Context's application package. |
Intent registerReceiver(IntentReceiver, IntentFilter)
|
Register an IntentReceiver to be run in the main activity thread. |
Intent registerReceiver(IntentReceiver, IntentFilter, String, Handler)
|
Register to receive intent broadcasts, to run in the context of
scheduler. |
void setThreadPriority(int, int)
|
Change the priority of a thread running in your process. |
DialogInterface showAlert(CharSequence, int, CharSequence, CharSequence, OnClickListener, boolean, OnCancelListener)
|
Display a simple, non-blocking one button alert dialog. |
DialogInterface showAlert(CharSequence, int, CharSequence, CharSequence, OnClickListener, CharSequence, OnClickListener, boolean, OnCancelListener)
|
Display a simple, non-blocking two button alert dialog. |
DialogInterface showAlert(CharSequence, int, CharSequence, CharSequence, OnClickListener, CharSequence, OnClickListener, CharSequence, OnClickListener, boolean, OnCancelListener)
|
Display a simple, non-blocking two button alert dialog. |
DialogInterface showAlert(CharSequence, int, CharSequence, CharSequence, boolean)
|
Display a simple, non-blocking one button alert dialog. |
DialogInterface showAlert(CharSequence, CharSequence, CharSequence, Message, CharSequence, Message, boolean, Message)
|
Display a simple, non-blocking two button alert dialog. |
void unbroadcastStickyIntent(Intent )
|
Remove the data previously sent with .broadcastStickyIntent,
so that it is as if the sticky broadcast had never happened. |
Added Methods
|
int checkCallingOrSelfUriPermission(Uri, int)
|
Determine whether the calling process of an IPC or you has been granted
permission to access a specific URI. |
int checkCallingUriPermission(Uri, int)
|
Determine whether the calling process and user ID has been
granted permission to access a specific URI. |
int checkUriPermission(Uri, int, int, int)
|
Determine whether a particular process and user ID has been granted
permission to access a specific URI. |
int checkUriPermission(Uri, String, String, int, int, int)
|
Check both a Uri and normal permission. |
String[] databaseList()
|
Returns an array of strings naming the private databases associated with
this Context's application package. |
void enforceCallingOrSelfPermission(String, String)
|
If neither you nor the calling process of an IPC you are
handling has been granted a particular permission, throw a
SecurityException. |
void enforceCallingOrSelfUriPermission(Uri, int, String)
|
If the calling process of an IPC or you has not been
granted permission to access a specific URI, throw SecurityException. |
void enforceCallingPermission(String, String)
|
If the calling process of an IPC you are handling has not been
granted a particular permission, throw a SecurityException. |
void enforceCallingUriPermission(Uri, int, String)
|
If the calling process and user ID has not been granted
permission to access a specific URI, throw SecurityException. |
void enforcePermission(String, int, int, String)
|
If the given permission is not allowed for a particular process
and user ID running in the system, throw a SecurityException. |
void enforceUriPermission(Uri, int, int, int, String)
|
If a particular process and user ID has not been granted
permission to access a specific URI, throw SecurityException. |
void enforceUriPermission(Uri, String, String, int, int, int, String)
|
Enforce both a Uri and normal permission. |
Context getApplicationContext()
|
Return the context of the single, global Application object of the
current process. |
File getCacheDir()
|
Returns the absolute path to the application specific cache directory
on the filesystem. |
Looper getMainLooper()
|
Return the Looper for the main thread of the current process. |
int getWallpaperDesiredMinimumHeight()
|
Returns the desired minimum height for the wallpaper. |
int getWallpaperDesiredMinimumWidth()
|
Returns the desired minimum width for the wallpaper. |
void grantUriPermission(String, Uri, int)
|
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. |
SQLiteDatabase openOrCreateDatabase(String, int, CursorFactory)
|
Open a new private SQLiteDatabase associated with this Context's
application package. |
Intent registerReceiver(BroadcastReceiver, IntentFilter)
|
Register an BroadcastReceiver to be run in the main activity thread. |
Intent registerReceiver(BroadcastReceiver, IntentFilter, String, Handler)
|
Register to receive intent broadcasts, to run in the context of
scheduler. |
void removeStickyBroadcast(Intent )
|
Remove the data previously sent with .sendStickyBroadcast,
so that it is as if the sticky broadcast had never happened. |
void revokeUriPermission(Uri, int)
|
Remove all permissions to access a particular content provider Uri
that were previously added with .grantUriPermission. |
void sendBroadcast(Intent )
|
Broadcast the given intent to all interested BroadcastReceivers. |
void sendBroadcast(Intent, String)
|
Broadcast the given intent to all interested BroadcastReceivers, allowing
an optional required permission to be enforced. |
void sendOrderedBroadcast(Intent, String)
|
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. |
void sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)
|
Version of .sendBroadcast(Intent) that allows you to
receive data back from the broadcast. |
void sendStickyBroadcast(Intent )
|
Perform a .sendBroadcast(Intent) that is "sticky," meaning the
Intent you are sending stays around after the broadcast is complete,
so that others can quickly retrieve that data through the return
value of .registerReceiver(BroadcastReceiver, IntentFilter). |
Changed Methods
|
void clearWallpaper()
|
Change in exceptions thrown from no exceptions to java.io.IOException .
|
Remove any currently set wallpaper, reverting to the system's default
wallpaper. |
AssetManager getAssets()
|
Change in return type from android.content.AssetManager to android.content.res.AssetManager .
|
Return an AssetManager instance for your application's package. |
Resources getResources()
|
Change in return type from android.content.Resources to android.content.res.Resources .
|
Return a Resources instance for your application's package. |
Theme getTheme()
|
Change in return type from android.content.Resources.Theme to android.content.res.Resources.Theme .
|
Return the Theme object associated with this Context. |
ComponentName startService(Intent )
|
Change in signature from (Intent, Bundle ) to Intent .
|
Request that a given application service be started. |
void unregisterReceiver(BroadcastReceiver )
|
Change in signature from IntentReceiver to BroadcastReceiver .
|
Unregister a previously registered BroadcastReceiver. |
TypedArray obtainStyledAttributes(int, int[])
|
Change in return type from StyledAttributes to TypedArray .
Change in exceptions thrown from android.content.Resources.NotFoundException to android.content.res.Resources.NotFoundException .
|
Retrieve styled attribute information in this Context's theme. |
TypedArray obtainStyledAttributes(AttributeSet, int[])
|
Change in return type from StyledAttributes to TypedArray .
|
Retrieve styled attribute information in this Context's theme. |
TypedArray obtainStyledAttributes(AttributeSet, int[], int, int)
|
Change in return type from StyledAttributes to TypedArray .
|
Retrieve styled attribute information in this Context's theme. |
TypedArray obtainStyledAttributes(int[] )
|
Change in return type from StyledAttributes to TypedArray .
|
Retrieve styled attribute information in this Context's theme. |