I understand how to use intents and startActivity() when opening another activity within my own app, but how do you start a different app? specifically:
- How do you determine if the user has the needed app installed on their device?
- How do you start that app?
- How do you pass parameters to that app?
- How do you find all this info out for a specific app (say Adobe reader, or google maps)?
What you are looking for are intents and intent filters.
Everything you want to know is detailed on the Android developer guide.
http://developer.android.com/guide/topics/intents/intents-filters.html
How to see if Intent is available:
Try calling Intent and deal with
ActivityNotFoundException
if it isn't availableor
Query the Package Manager to see if it is ahead of time:
How to pass parameters to an application or know its capabilities: