Re: [android-beginners] Checking for App before Launching

2010-07-22 Thread Nick Richardson
Here's a class that i use in one of my apps to detect if a package is installed when my service starts up. You should be able to modify this to suit your needs. public class AppDetector { protected boolean isAppInstalledFromService(Service parent, String uri) { PackageManager pm = parent.getPac

Re: [android-beginners] Checking for App before Launching

2010-07-22 Thread Justin Anderson
Use the PackageManager class: http://developer.android.com/reference/android/content/pm/PackageManager.html -- There are only 10 types of people in the world... Those who know binary and those who don't. --

[android-beginners] Checking for App before Launching

2010-07-22 Thread Jake Colman
When my user clicks on my AppWidget, I want to launch either my own provided activity or an activity from a different app if that app is installed. My own activity is a stripped down version of the information that can be displayed by that other application. If that other application is availabl