In my android application,i want to apply OnPause,OnPlay,Next and previous,volume increase and decrease events on mediaplayer.
Please send me your valuable suggestions.
Thanks in advance:)
I'm a beginner in android (and my English isn't the best.. :( ), but i think you can do that with android.media.MediaPlayer via its methods. For example, first you have to create a SurfaceView and your controll panel in the xml layout or in the code.In your Activity create a MediaPlayer instance and assign it with the SurfaceHolder of the view. Assign your controll "buttons" to the MediaPlayer's methods in the button's OnClickListener.
精彩评论