android - Not able to bind service in activity -


i binding service sherlockfragment , binding service in connection not establishing.

private serviceconnection connection = new serviceconnection() {            @override     public void onserviceconnected(componentname arg0, ibinder arg1) {         service = isipservice.stub.asinterface(arg1);         system.out.println("inside connection"+service);     }      @override     public void onservicedisconnected(componentname arg0) {         service = null;     } }; 

control never go inside onserviceconnected()

any help/suggestion appreciated.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -