I am using this example: How to inform an Activity that another Activity was just started? for applications that are opening and closing, but my question is, how I can get the package name using the id that I receive?
Asked
Active
Viewed 36 times
0
-
if you wrote the app, you should know the package name. If you didn't write it, then you cannot get the package name. It's one of the security features of Android. – Bill Gary Feb 19 '12 at 19:09
-
IActivityWatcher is a hiden api... the id is obviously outside my app, but there must be a way – FireZenk Feb 19 '12 at 21:41