views:

802

answers:

1

Hi

I'm starting a service with an intent where I put extra information.

How can I get the intent in the code of my service?

There isn't a function like getIntent().getExtras() in service like in activity.

Thanks.

+2  A: 

Override onStart() -- you receive the Intent as a parameter.

CommonsWare