title: android: how to bind a sub-class to a service
body: <p>I have a class the extends relativelayout. This class is inflated and added to a view by an activity. This class needs information from a service that I've created. What I'd like to do is bind the class to the service on its own thread but I'm not sure how to do it. When I try and call bindservice in the class I get a "method is not applicable" error. If I run bindService from the calling activity's context it does accept it but I get all sorts of problems from that. </p>
  
  <p>I could simply have the calling activity bind to the service and act as a go-between but that's extra work and I can't help but think there's a better solution. Plus I would like to be able to imbed this class wherever I want to and it will work as its own entity. </p>
  
  <p>Thanks in advance</p>