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

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

[android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
I've made a custom ListAdaptor, with associated View, that displays an icon on the left of each list item, with three lines of text to the right. In MyView.onCreate(), the icons are populated using imageView.setImageDrawable(Drawable.createFromStream(URL)); each item on the list is it's own

Re: [android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
you paste some code On Tue, Apr 20, 2010 at 5:19 PM, Tom F M White fred...@gmail.com mailto:fred...@gmail.com wrote: I've made a custom ListAdaptor, with associated View, that displays an icon on the left of each list item, with three lines of text to the right. In MyView.onCreate

Re: [android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
Thanks for your help. On 20/04/2010 15:37, Mark Murphy wrote: Tom F M White wrote: TripleText is just an object for storing 4 strings, 3 for the text, 1 for the image URL. Rest of the code follows, sorry it's quite long... TripleTextView: public class TripleTextView extends LinearLayout

[android-beginners] Media Player App

2010-04-19 Thread Tom F M White
Hi I'm making a simple media player app, that streams files from a site. Currently the fundamentals of my app work, it is downloading the track info, and playing the files fine. However, at the moment it isn't working in a user-friendly manner, and usually getting it to play more than one song

Re: [android-beginners] Media Player App

2010-04-19 Thread Tom F M White
... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Apr 19, 2010 at 10:47 AM, Tom F M White fred...@gmail.com mailto:fred...@gmail.com wrote: Hi

[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

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

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