I am having a jar file which contains some service classes. The jar's are placed in frameworks of Android. I want to bind to that service in an application. Currently I am using this:
Intent intent = new Intent(IMyAidl.class.getName());
boolean returnvalue = mContxt.bindService(intent,connection, Context.BIND_AUTO_CREATE);
System.out.println("Binding to service in jar are not " + returnvalue);
When I am using the above code I couldn't bind at all. Every time false
is the returned value. I am not understanding why it is returning false.
Can anybody help on this?