I'm currently trying out and from v1.0.2 of org.eclipse.paho.android.service. However, I am having trouble trying to retrieve the after binding my activity to the service.
I've tried to retrieve the service by first binding the service to the activity with
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
And later obtaining the service from the binder in
method in the class. There's a public provided by . However, the access level of the class is now default, meaning that I cannot access it outside of its package, and thus am unable to cast the to in my activity class.
onServiceConnected(ComponentName className, IBinder service)
I'm quite new to Android, so it will be great if anyone can explain to me how to obtain the to set the various attributes such as the client id for the .