0

in my app I would like to get the icon of the app which from the user triggered the intent. For example when sharing site url from google chrome I would like to get the chrome icon. I have found something here on stackoverflow and it seems like this will be little bit tricky. The problem is I am using an IntentService in the part of my app where I need the icon and I dont know how to manage getCallingActivity be working in this context. It also won't work if the intent wouldn't be called with startActivityForResult, I guess..

So please does anyone from you know about reliable solution how to get the icon?

4

1 回答 1

1

For example when sharing site url from google chrome I would like to get the chrome icon

That is not possible, because you have no way to know what used the Intent.

于 2012-12-27T17:58:56.843 回答