Thanks for your help. Tried that with the following code:
PackageManager pm = getPackageManager();
PackageInfo pi;
try {
pi = pm.getPackageInfo(fm.smart,
PackageManager.GET_ACTIVITIES);
for
Use Intent.resolveActivity() if you want to preflight the resolution of that
intent before trying to start an activity for it. (Or you can use the
underlying PackageManager.resolveActivity() API, or
PackageManager.queryIntentActivities(), if you want to do something more
specialized).
On Mon,
I think you were looking for something like this
http://android-developers.blogspot.com/2009/01/can-i-use-this-intent.html
:)
-Dan
On Mon, Aug 31, 2009 at 2:17 PM, Dianne Hackborn hack...@android.comwrote:
Use Intent.resolveActivity() if you want to preflight the resolution of
that intent
hmm...android.content.ActivityNotFoundException is a
java.lang.RuntimeException, and runtime exceptions are not enforced by
the compiler to be caught, but yes, they can be caught.
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together
The views, opinions and statements in
You might want to look in the PackageManager class with which you can
retrieve installed packages/applications information.
Look at
http://developer.android.com/reference/android/content/pm/PackageInfo.html#activities
(flag GET_ACTIVITIES).
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· ·
5 matches
Mail list logo