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.

thanks

--~--~---------~--~----~------------~-------~--~----~



how to test the existence of a specific activity ?

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


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

-Dan



--~--~---------~--~----~------------~-------~--~----~


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; 
 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/ 





-- 
======
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.


--~--~---------~--~----~------------~-------~--~----~



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:
http://code.google.com/p/customspinner/

If someone have question how to create own components or how works
mine component please answer,
but be sure that you have read this:
http://developer.android.com/guide/topics/ui/custom-components.html

-- 

2. Install a certificate on Android 1.5

2010/11/16 Jorge Ivn Andrs Contreras Pereira <jiacontrer...@gmail.com>


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 <http://sites.google.com/site/rezmobileapps/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