34,333
edits
Changes
m
Text replacement - "<google>BUY_ANDROID</google>" to "<htmlet>androidstudio</htmlet>"
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>
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:
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>
<pre>
<googlehtmlet>BUY_ANDROIDandroidstudio</googlehtmlet>