diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-09-17 15:14:12 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-09-17 18:01:35 -0700 |
commit | fa82f22f1d8c4c828bdf9b670006be4f4fec772e (patch) | |
tree | 586dbd1bf9cbefe26cfecd6cf853b78eb6a4fb64 /core/java/android/content/Context.java | |
parent | 9b64ef133c1eb24c8d00aa7e46ec86c544af5fe2 (diff) | |
download | frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.zip frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.tar.gz frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.tar.bz2 |
Fix issue #2093608: Calendar widget takes a few seconds to launch
Avert your eyes!
The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.
Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r-- | core/java/android/content/Context.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 60551b8..1a5269e 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -559,6 +559,27 @@ public abstract class Context { public abstract void startActivity(Intent intent); /** + * Like {@link #startActivity(Intent)}, but taking a IntentSender + * to start. If the IntentSender is for an activity, that activity will be started + * as if you had called the regular {@link #startActivityForResult(Intent, int)} + * here; otherwise, its associated action will be executed (such as + * sending a broadcast) as if you had called + * {@link IntentSender#sendIntent IntentSender.sendIntent} on it. + * + * @param intent The IntentSender to launch. + * @param fillInIntent If non-null, this will be provided as the + * intent parameter to {@link IntentSender#sendIntent}. + * @param flagsMask Intent flags in the original IntentSender that you + * would like to change. + * @param flagsValues Desired values for any bits set in + * <var>flagsMask</var> + * @param extraFlags Always set to 0. + */ + public abstract void startIntentSender(IntentSender intent, + Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) + throws IntentSender.SendIntentException; + + /** * Broadcast the given intent to all interested BroadcastReceivers. This * call is asynchronous; it returns immediately, and you will continue * executing while the receivers are run. No results are propagated from |