Getting the information of the package which created the intent

45 views
Skip to first unread message

Ruhi Sharma

unread,
Jun 1, 2015, 12:53:05 PM6/1/15
to android-...@googlegroups.com
Hello All,

I changed the Android kitkat framework to add the logging statement whenever an application creates an intent. For the same I did changes in the file framework/base/core/java/android/content/Intent.java . However, there are different overloaded methods in this file for creating the intent. Some have the package info but other don't have. Please let me know how to got the package from which the intent is created. 

Thanks in Advance


David Cowden

unread,
Jun 2, 2015, 10:23:53 AM6/2/15
to android-...@googlegroups.com
I thought package info was only used as convenience in order to build the name of the component at which the intent is directed (for explicit intents). For implicit intents you can probably only discern which package is sending the intent at the time it gets fired. And again, even if you have the  ComponentName, it only contains the target package.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.

Ruhi Sharma

unread,
Jun 4, 2015, 11:10:56 AM6/4/15
to android-...@googlegroups.com
Thanks :)
Reply all
Reply to author
Forward
0 new messages