开发者

services in android [closed]

开发者_如何学C As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

can anybody give example with service in android?

Thanks


In Android you basically have 2 kinds of services.

  1. Local Service
  2. Remote Service

If you run local service then your application as well as your service will run on same ProcessID

If you run a remote service it runs as a different process you can communicate with your service using Android Interface Definition Language(AIDL)

You can find sample codes in API Demo which comes along with Android SDK as well as here

http://marakana.com/forums/android/examples/60.html

http://developer.android.com/intl/de/guide/developing/tools/aidl.html#implementing

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜