how to test the existence of a specific activity ?

by hapciu » Wed, 04 Feb 2009 13:57:20 GMT

Sponsored Links
 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.



how to test the existence of a specific activity ?

by Dan Raaka » Wed, 04 Feb 2009 14:57:15 GMT

 This should help 



Sponsored Links

how to test the existence of a specific activity ?

by Al Sutton » Wed, 04 Feb 2009 16:41:13 GMT

 getPackageManager() in a Context gives you one of these; 

You can then use #getActivityInfo(android.content.ComponentName,%20int)
If you know the package class name, or #getInstalledApplications(int)
if you just want to have a rummage through whats installed.


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 


Other Threads

1. Developing custom component for android, example - CustomSpinner

Android CustomSpinner Component
I've created a custom component which works like a lock of a safe.

Component is an extention of ScrollView. It have ability to scroll
inner views, but one an inner view always will be centered. After
scrolling, the component will do own smooth scrolling to set spinner
in a correct position.
So if you use it, you can set some own views, set different
backgrounds for any view, and for header and footer of CustomSpinner.

Source you can find here:

If someone have question how to create own components or how works
mine component please answer,
but be sure that you have read this:


2. Install a certificate on Android 1.5

2010/11/16 Jorge Ivn Andrs Contreras Pereira <>

What certificate?
What ".cer" file?

You'll probably want to elaborate on what you're talking about and / or what
you're doing if you hope to get help.

TreKing <> - Chicago
transit tracking app for Android-powered devices


3. Custom Navigator app questions

4. Froyo officialy untuk HTC Legend kapan

5. Red spot in Moto Charm in EditText

6. What's a "feature graphic" supposed to contain? A list of features? Screenshots of features? (Why need screens then?)

7. Audio Playout Delay