[android-developers] Re: how to test the existence of a specific activity ?

2009-02-04 Thread Al Sutton

getPackageManager() in a Context gives you one of these; 
http://code.google.com/android/reference/android/content/pm/PackageManager.html

You can then use 
http://code.google.com/android/reference/android/content/pm/PackageManager.html#getActivityInfo(android.content.ComponentName,%20int)
 
If you know the package class name, or 
http://code.google.com/android/reference/android/content/pm/PackageManager.html#getInstalledApplications(int)
 
if you just want to have a rummage through whats installed.

Al.
http://andappstore.com/

hapciu wrote:
 Is there a way to find out whether a specific activity is present on
 the phone ? I mean without firing an intent to start it and then catch
 the exception.

 thanks

 
   


-- 
==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to test the existence of a specific activity ?

2009-02-03 Thread Dan Raaka

This should help
http://www.curious-creature.org/2008/12/15/android-can-i-use-this-intent/

-Dan

On Feb 3, 1:18 pm, hapciu horia...@gmail.com wrote:
 Is there a way to find out whether a specific activity is present on
 the phone ? I mean without firing an intent to start it and then catch
 the exception.

 thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---