« Generating slope fields / direction fields with python and gnuplot | Home | OpenGL acceleration in Debian/Ubuntu »
Check if an Intent can be used in Android
By admin | June 15, 2013
Intent intent = new Intent("org.openintents.action.PICK_FILE"); // or any other intent // add other intent options here if(context.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() > 0) { // we can use this intent } else { // we can't use this intent }
From: http://www.curious-creature.org/2008/12/15/android-can-i-use-this-intent/ [Romain Guy]
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Mobile | 8 Comments »
June 29th, 2024 at 06:12
… [Trackback]
[…] Read More here to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
July 11th, 2024 at 22:24
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
July 17th, 2024 at 22:25
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
August 19th, 2024 at 10:19
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
August 20th, 2024 at 01:06
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
August 26th, 2024 at 19:04
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
September 6th, 2024 at 05:20
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]
September 14th, 2024 at 19:22
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2013/06/15/check-if-an-intent-can-be-used-in-android/ […]