Back to project page Gamework.
The source code is released under:
Apache License
If you think the Android project Gamework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cz.robyer.gamework.utils; /*from www . j av a 2 s . c om*/ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; /** * Class with various useful methods. * @author Robert P?sel */ public class Utils { /** * Checks if there exists activity required for particular intent. * @param context * @param intent to be checked. * @return true if intent can be called, false otherwise. */ public static boolean isIntentCallable(Context context, Intent intent) { return context.getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) != null; } }