Android的:如何获得由服务收到的意图是什么?意图、如何获得、Android

由网友(有你的地方就是天堂)分享简介:我开始一个服务,意图在那里我把额外的信息。I'm starting a service with an intent where I put extra information.我怎样才能在我服务的code的意图是什么?How can I get the intent in the code of my serv...

我开始一个服务,意图在那里我把额外的信息。

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

我怎样才能在我服务的code的意图是什么?

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

没有像 getIntent()。getExtras()服务就像活动的功能。

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

推荐答案

覆盖 ONSTART() - 您收到意图作为一个参数。

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

阅读全文

相关推荐

最新文章