0

I'm working on an application that can receive data (image or text) as a share intent. So from any application, if you want to share a text or an image, my application will be in the list.

I would like to know if there is a way (in my bound activity) to know which application started it ?

1 Answers1

-1

Currently android doesn't support to detect the package name(of application) of intent who sent it. Intent doesn't contain the sender information.

getCallingActivity() or getCallingPackage() will only work when the sender what to return something from you app. Like photo capture or cropping app

Nas
  • 2,158
  • 1
  • 21
  • 38
  • I wasn't asking for a solution to implement my activity as a share intent receiver. Sorry if that was unclear. I'm trying to know which application started my application with a share intent. – Thomas Sebire Dec 20 '16 at 09:41