27

Is there any way to capture/intercept Intents of application during runtime without modifying Android framework? Modifying Android framework might require too much work. Please help me.

1 Answer 1

46

To view Intents as they happen, run logcat in a shell and filter it down to just the Intents like this:

adb logcat | fgrep -i intent

(You can also add a filter for just your app's Intents, but that would exclude Intents sent to your app by the system and by other apps.)

This should show Intents such as

I/ActivityManager( 585): Starting activity: Intent { action=android.intent.action...}

To see system-wide Intents, try the Intent Intercept app.

To see all Intents sent to your own classes, then

For info on all the standard Intent actions, see Intent.

2
  • 1
    Thank you for your comments. I'm trying to see all the explicit/implicit Intents of my application. In detail, I need to know which Activity sent which Intent and which Activity received it during runtime. Is it possible? Oct 14, 2014 at 23:35
  • @user3491319 I added instructions for viewing Intents via logcat and for capturing Intents sent to your Activities and Services as well as BroadcastReceivers.
    – Jerry101
    Oct 15, 2014 at 0:28

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.