Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-20 Thread Tom F M White
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: T

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
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 fa

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Mark Murphy
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 re

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
On 19/04/2010 21:36, Mark Murphy wrote: Tom F M White wrote: Further to my previous email, I have sketched out how my Media Player will work with the actual MediaPlayer object in a separate service, MediaService. I can't work out how to make calls, and retrieve data from the service. Follo

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Mark Murphy
Tom F M White wrote: > Further to my previous email, I have sketched out how my Media Player > will work with the actual MediaPlayer object in a separate service, > MediaService. I can't work out how to make calls, and retrieve data from > the service. Following tutorials online has lead me to this

[android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
Further to my previous email, I have sketched out how my Media Player will work with the actual MediaPlayer object in a separate service, MediaService. I can't work out how to make calls, and retrieve data from the service. Following tutorials online has lead me to this: MyApp.java - top level Ac