Professional Documents
Culture Documents
Music Java-1
Music Java-1
A
Project Report
On
MUSIC PLAYER USING JAVA
Submitted in partial fulfilment of the requirements
For the Degree Of
Bachelor of Engineering in
Computer Engineering
By
RAHUL KHANDEKAR Roll No.-02
JAY NIKHAL Roll No.-21
SUPRIYA GORE Roll No.-24
AKASH SINGH Roll No.-25
Supervisor
Prof. DINESH BHERE
Technology Personified
Department of Computer Science and Engineering Innovative Engineers' and
Teachers' Education society's
Bharat College of Engineering
Badlapur: - 421504.
1
2
Technology Personified
Bharat College Of Engineering
(Affiliated to the University Of Mumbai)
Badlapur: - 421504.
CERTIFICATE
This is to certify that, the Project titled
2
3
ABSTRACT
Music is a part of every person’s life. No matter what your mood is, you
have a song to sustain that mood. If you wish to play your desired songs on
Android devices, you need a music player. So, through this article, we will
try to build our music player app using Android.
The music player app that we will develop in this article would allow the
users to play the songs present on the device. You can download songs on
your device and then use the music player to play those songs. Let’s see
the quite exciting features that you get along with this app.
3
4
Contents
CHAPTER TITLE PAGE NO.
1 Introduction 5
2 Methodology 8
3 Experimental Results
4 Conclusion 14
5 References 15
4
5
Introduction
5
6
Our project aims to match input audio clips to similar video clips stored
in a database. With this tool, artists can stitch together visuals from
music videos or other visual sources to generate visual
accompaniments for their music.
6
7
Scope
The music player allows a user to play various media file formats. It can
be used to play audio as well as video files. The music player is a
software project supporting all known media files and has the ability to
play them with ease.
User may attach Folder to Play add various media files within it.
User may see track lists and play desired ones accordingly.
Supports various music formats including .mp3, WMA, WAV etc.
Interactive GUI
Consists of Pause/Play/Stop Features
Consists of a Volume controller
The system also consists of a sound Equalizer
It Displays the media playing time with Track Bar so that user may
drag the media play as needed.
7
8
Methodology
This is a very simple app suitable for beginners to learn the concepts.
The following pre-requisites is good enough before starting.
8
9
Program
XML CODE :-
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:orientation="vertical"
android:theme="@style/Theme.AppCompat"
tools:context=".MainActivity">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="430dp"
9
10
android:background="@drawable/download"
android:contentDescription="@string/todo" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:background="@color/colorAccent"
android:orientation="horizontal"
android:padding="10dp">
<Button
android:id="@+id/pause"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="125dp"
android:layout_height="match_parent"
android:background="@android:drawable/ic_media_pause"
android:onClick="musicpause" />
<Button
android:id="@+id/start"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="125dp"
android:layout_height="match_parent"
android:background="@android:drawable/ic_media_play"
android:onClick="musicplay" />
10
11
<Button
android:id="@+id/stop"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="125dp"
android:layout_height="match_parent"
android:background="@android:drawable/ic_delete"
android:onClick="musicstop" />
</LinearLayout>
</LinearLayout>
JAVA CODE :-
package com.example.music;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
@Override
protected void onCreate(
11
12
Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
12
13
music
= MediaPlayer.create(
this, R.raw.sound);
}
}
OUTPUT
13
14
14
15
Conclusion
Through the development of music player on Android platform, we get a
clear understanding of overall process of the system. The core part of
music player is mainly composed of main interface, playlist, menus, play
setting file browsing and song search.
The design of music player based on Android system requires
elaborate design of the music player framework, by adopting Eclipse 3.5
+ java languge as technical support of this system, with the android plug
-in tools, and combination of android SDK 2.1 version lead to the
comprehensive and smoothly design and development of the mobile
terminal.
15
16
REFERENCES
https://shsu-ir.tdl.org/shsu-
ir/bitstream/handle/20.500.11875/1164/0781.pdf?sequence
=1
https://ieeexplore.ieee.org/document/6208293/
https://ieeexplore.ieee.org/document/4679917/
16