Creating custom android service
<p>I am planning to write a service. I am looking at SurfaceFlinger code as reference. SurfaceFlinger derives from both BinderService&lt;> and IInterface&lt;>.</p>

<p>if I want to create a service, is it sufficient to inherit from IInterface and call addService method to add my service to the service manager? Does that allow my application to talk to the new service??</p>

<p>When should we inherit from BinderService??</p>
