Changes

Jump to: navigation, search

Android Local Bound Services – A Worked Example

12 bytes removed, 17:09, 29 April 2016
no edit summary
<htmlet>androidstudioandroid44</htmlet>
For the purposes of this tutorial, the client is the LocalBoundActivity instance of the running application. As previously noted, in order to successfully bind to a service and receive the IBinder object returned by the service’s onBind() method, it is necessary to create a ServiceConnection subclass and implement onServiceConnected() and onServiceDisconnected() callback methods. With these requirements in mind, edit the LocalBoundActivity.java file and modify it as follows:
<htmlet>androidstudioandroid44</htmlet>
<pre>
<htmlet>androidstudioandroid44</htmlet>

Navigation menu