The answer had been posted in this thread: http://groups.google.com/group/android-pws/browse_frm/thread/a4fdfa90d5445b0d#
One can use getCallingPackage() and getCallingActivity() from the Activity class to retrieve the information I was looking for. Peli www.openintents.org On 29 Dez., 09:59, Peli <[email protected]> wrote: > How can I find out which activity started the current intent? > > Example: > Activity A starts Activity B through an intent startIntentForResult(). > > Can activity B find the package name of the application that contains > activity A? > Something like getComponent(), but not for activity B, but for > activity A. > > Somehow the system must know about this, because the intent is sent > back to the calling activity A after activity B is done. I would like > to know whether activity B can also access this information, and treat > specific packages (e.g. trusted packages) in a priviledged way. > > Peli --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

