Ok, I've found the problem, for anyone else having trouble. In the tutorial, onBind() returns null, I created a MediaBinder class within MediaService, that implemented my MediaInterface, calling the relevant methods in MediaService. This works nicely.

On 19/04/2010 21:43, Mark Murphy wrote:
Tom F M White wrote:
I'm calling start a relatively long time later, several seconds. Do I
need to call onServiceConnected() myself?
No, it should be called shortly after you call bindService(). This
suggests that your bindService() call is failing for some reason (e.g.,
your service is not registered in your manifest).

Here is a sample project from one of my books showing the use of
bindService():

http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to