The error is because you have declared your class as follows
public class CommunityActivity extends BaseActivity implements ServiceConnection
now compiler expects that u have these two functions onServiceConnected
and on ServiceDisconnected
implemented in CommunityActivity
. but it cannot find them in this class.
remove this implements ServiceConnection
and code should compile successfully.