1.Create a new Project
Layout
--------------->Main_Activity.xml
------------------>Drag and Drop 3 image buttons from palette
--------------------->name it like play,pause,stop
------------------------>add onClick method names like play pause stop
2.Add mp3 file into raw folder
layout
--------------->right click layout
-------------------->New
----------------------->Folder ,(Name :raw)
-------------------------->type onclick method
-------------------------------->Create media player variable
(Click below image)
Run Your Project...............
No comments:
Post a Comment