On Sat, May 9, 2009 at 10:08 AM, Josh <[email protected]> wrote: > > I have a media player that plays a sound. I want to call a function as > soon as the sound is complete but i cant figure out how to do it. > > I think im just having a problem with the syntax > > i tried ''' > mMediaPlayer.setOnCompleteionListener(hideImage);
It's "setOnCompletionListener", and the parameter must be an OnCompletionListener, not some arbitrary method. In other words, you must pass in an implementation of the OnCompletionListener interface, and its onCompletion() method will be called when playback completes. Think Java, not C. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

