diff options
author | Rich Slogar <rslogar@google.com> | 2015-01-28 15:22:24 -0800 |
---|---|---|
committer | Rich Slogar <rslogar@google.com> | 2015-01-30 16:55:55 -0800 |
commit | 367bfb3b50f21cda1e7dbab588aa2987bd04c1ba (patch) | |
tree | 818455839bcd4be11813dc66f1cdd445ca5000b5 /docs/html/training/basics | |
parent | 05defb992eefb8a32742d64c06e8e8fd02dbf670 (diff) | |
download | frameworks_base-367bfb3b50f21cda1e7dbab588aa2987bd04c1ba.zip frameworks_base-367bfb3b50f21cda1e7dbab588aa2987bd04c1ba.tar.gz frameworks_base-367bfb3b50f21cda1e7dbab588aa2987bd04c1ba.tar.bz2 |
docs: training intent doc error update
b/18386294
Change-Id: Id0fb07e567e0f698e786ac57a19c60895f4d6fc1
Diffstat (limited to 'docs/html/training/basics')
-rw-r--r-- | docs/html/training/basics/intents/sending.jd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/html/training/basics/intents/sending.jd b/docs/html/training/basics/intents/sending.jd index 4698ba1..b9463e4 100644 --- a/docs/html/training/basics/intents/sending.jd +++ b/docs/html/training/basics/intents/sending.jd @@ -153,7 +153,8 @@ java.util.List} is not empty, you can safely use the intent. For example:</p> <pre> PackageManager packageManager = {@link android.content.Context#getPackageManager()}; -List<ResolveInfo> activities = packageManager.queryIntentActivities(intent, 0); +List<ResolveInfo> activities = packageManager.queryIntentActivities(intent, + PackageManager.MATCH_DEFAULT_ONLY); boolean isIntentSafe = activities.size() > 0; </pre> |