X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=android_pandora.git;a=blobdiff_plain;f=apps%2Foi-filemanager%2FFileManager%2Fsrc%2Forg%2Fopenintents%2Futil%2FIntentUtils.java;fp=apps%2Foi-filemanager%2FFileManager%2Fsrc%2Forg%2Fopenintents%2Futil%2FIntentUtils.java;h=0000000000000000000000000000000000000000;hp=e4f71b938c141933610e8974f425013af239b25c;hb=86591c820f761cc27e31f78790c5a447b8411a33;hpb=ebcf0cf7399e3ec5ba51c5a904553fbcc55725e5 diff --git a/apps/oi-filemanager/FileManager/src/org/openintents/util/IntentUtils.java b/apps/oi-filemanager/FileManager/src/org/openintents/util/IntentUtils.java deleted file mode 100644 index e4f71b9..0000000 --- a/apps/oi-filemanager/FileManager/src/org/openintents/util/IntentUtils.java +++ /dev/null @@ -1,43 +0,0 @@ - - -/** - * Original method retrieved from: - * http://android-developers.blogspot.com/2009/01/can-i-use-this-intent.html - */ -package org.openintents.util; - -import java.util.List; - -import android.content.Context; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; - -/** - * - * @author romainguy - * @author Peli - * - */ -public class IntentUtils { - - /** - * Indicates whether the specified action can be used as an intent. This - * method queries the package manager for installed packages that can - * respond to the specified intent. If no suitable package is - * found, this method returns false. - * - * @param context The application's environment. - * @param intent The Intent to check for availability. - * - * @return True if an Intent with the specified action can be sent and - * responded to, false otherwise. - */ - public static boolean isIntentAvailable(final Context context, final Intent intent) { - final PackageManager packageManager = context.getPackageManager(); - List list = - packageManager.queryIntentActivities(intent, - PackageManager.MATCH_DEFAULT_ONLY); - return list.size() > 0; - } -}