start a remote service and receive a result in Android

后端 未结 2 598
余生分开走
余生分开走 2020-12-20 08:52

I have two applications. One app has the Activity and another one is a background service.

I can able to access the service app from my activity app using implicit i

2条回答
  •  无人及你
    2020-12-20 09:31

    Why do you want to communicate through intent while there is a perfectly working binder protocol.

    http://developer.android.com/guide/topics/fundamentals/bound-services.html

    If an activity starts a service with 'bindService()' then the service will run until the activity calls 'unbindService()'.

提交回复
热议问题