Reputation: 187
How do I access the public methods that I have defined (not the overridden ones) in the MediaBrowserServiceCompat from an activity?
Earlier I had used just the service, so I could bind it with the activity class and then access the methods easily.
Now since no binder is returned (onBind is not overriden in mediaBrowserService) , how can that be done?
(I have also read from ianblake's blog that mediaBrowserService is automatically bound...is that useful here?)
Upvotes: 4
Views: 1218
Reputation: 115
This was the top-ranked Google search result but this stackoverflow answer actually provides the step to accomplish what is needed.
Edit: Steps copied from the link above
Upvotes: 2