[android-developers] Re: some way to check available activities

2009-08-31 Thread tansaku
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

[android-developers] Re: some way to check available activities

2009-08-31 Thread Dianne Hackborn
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,

[android-developers] Re: some way to check available activities

2009-08-31 Thread dan raaka
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

[android-developers] Re: some way to check available activities

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)
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

[android-developers] Re: some way to check available activities

2009-08-28 Thread Roman ( T-Mobile USA)
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· ·