[android-developers] Retrive which activity has started a local service

2011-03-08 Thread Paolo
hi there! I have a single activity that starts a local service. I'd like to know from the service class which activity has called it. Is it possible? I notice the startCommand method has as parameters the intent used to call the service. Is there anything I can do with it for my purpose? Thanks

Re: [android-developers] Retrive which activity has started a local service

2011-03-08 Thread Kostya Vasilyev
Sure, put some extras in the intent or specify an action string - your service will be able to examine those. 08.03.2011 14:23 пользователь Paolo brand...@gmail.com написал: hi there! I have a single activity that starts a local service. I'd like to know from the service class which activity