I have an app installed on my device that I would like to interface with and launch some of its activities. How can I find which intents are exposed for me to use? Mind you that I do not have the source code of the app.
Thank you.
I have an app installed on my device that I would like to interface with and launch some of its activities. How can I find which intents are exposed for me to use? Mind you that I do not have the source code of the app.
Thank you.
you don't have to find which intents apps have. You create a 'system wide' intent such as ACTION_VIEW or ACTION_GET_CONTENT or ACTION_DIAL (to name just a few) and the system finds for you which apps can handle those intents.
here you can find more info on it: http://developer.android.com/guide/components/intents-filters.html
If you have a rooted phone you could look at the Manifest of the App like this:
Install the app on a rooted phone.
Copy the apk from /data/app to your PC ("adb pull /data/app/com.whatever.app.apk")
Extract Manifest from the APK using the answer to How to view Android Manifest
If you just want to "snoop around", you can use PackageManager.getPackageInfo()
to retrieve all kinds of information about installed applications. Basically you can get everything that is present in the manifest for that package. This will tell you what activities are present, what services are present, what BroadcastReceivers are present, etc.