Re: [android-developers] Re: Restarting a MediaPlayer

2010-02-18 Thread Mark Murphy
Steeler wrote: But is the GC deleting the old ones? Eventually, presumably, yes. Bear in mind that MediaPlayer probably holds onto some buffers outside of the GC-able space. Also, bear in mind that GC is not necessarily immediate. And if not, are they clogging a page file? I am not aware of

[android-developers] Re: Restarting a MediaPlayer

2010-02-18 Thread Steeler
Would those buffers' memory space be able to be reallocated when the activity dies, or the process, or on a total OS shutdown? This particularly is something I was wondering about on a broader scope than MediaPlayers. Thanks for your answers. On Feb 18, 7:08 am, Mark Murphy

[android-developers] Re: Restarting a MediaPlayer

2010-02-17 Thread Steeler
But will my current method cause problems? It's working; I don't want to go back into it if I don't have to. On Feb 17, 2:15 pm, Mark Murphy mmur...@commonsware.com wrote: Steeler wrote: And I also can't find a way to use setDataSource() with a raw resource. To reset playback on a raw

Re: [android-developers] Re: Restarting a MediaPlayer

2010-02-17 Thread Mark Murphy
Steeler wrote: But will my current method cause problems? It's working; I don't want to go back into it if I don't have to. I would not create new MediaPlayer objects all the time, if that's what you're asking. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Restarting a MediaPlayer

2010-02-17 Thread Steeler
But is the GC deleting the old ones? And if not, are they clogging a page file? On Feb 17, 7:58 pm, Mark Murphy mmur...@commonsware.com wrote: Steeler wrote: But will my current method cause problems? It's working; I don't want to go back into it if I don't have to. I would not create new