0% found this document useful (0 votes)
297 views18 pages

PPT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views18 pages

PPT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

DEVELOPED BY-

Aniket chakravarty

Akash Bhowmik

Shekhar Das

Under guidance of Prof. Moumita Roy


Our Objective
The objective of the project is to design an audio
MP3 player that can be suitable for different
level of users. The goals of the application are to:
Provide a platform to play audio (MP3) files,
Support play lists and Provide play list
management.
Platform used- Android studio
KEY Features
• 1.Access phone memory- The app should be able to fetch and play .mp3 and .wav files directly from the
phone memory.

2.Mark favorite songs-User can keep track of his favorite music using favorite mark option in the app
(Favorites’ screen (where list of all the favorite songs are displayed)

3.Background play. The app will continue playing the track if the app gets closed (not killed) without the
music being paused
4.Now playing’ screen with following features:
• Track title and track artist
• Play / Pause button
• Next button
• Previous button
• Mark track as favorite or unfavorite it
NSHM Music Player
Platform used- Android studio

Programming language used – JAVA

Front End: Android Sdk

Backend: Android Phone Memory


Design
How We Planned The Application
User input for entering into
required OS
Taking
Android
OS instruction
from user
to go to
the next
User step
Menu

Carrying
instructi
on
Music receiving
Player from OS
Show Result
Building Blocks of Android Code

Android media
XML Code
player class
Writing class for reading
mp3,Play,Stop,Pause

Android MP3Player
Writing Classes needed for Audio
Player
• For Play service:
public void playAudio(View view) {
Intent objIntent = new Intent(this, PlayAudio.class);
startService(objIntent);
}

• For pause Service:


public void pauseAudio(View view) {
Intent objIntent = new Intent(this, PlayAudio.class);
pauseService(objIntent);
}
• For Stop Service:
public void stopAudio(View view) {
Intent objIntent = new Intent(this, PlayAudio.class);
stopService(objIntent);
}
XML Code Required for button
design
• For Button Play:
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="20dp"
android:layout_marginTop="30dp"
android:onClick="playAudio"
android:text="Play"
android:textColor="#00FF00"
android:textStyle="italic"
android:typeface="monospace"
android:bottomRightRadius="150dp"
android:bottomLeftRadius="150dp"
android:topLeftRadius="150dp"
android:topRightRadius="150dp"
/>
• For Button pause:
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/button2"
android:layout_marginLeft="16dp"
android:layout_toRightOf="@+id/button2"
android:onClick="pauseAudio"
android:text="Pause"
android:textColor="#006400"
android:textStyle="italic"
android:typeface="monospace"
android:bottomRightRadius="30dp"
android:bottomLeftRadius="30dp"
android:topLeftRadius="30dp"
android:topRightRadius="30dp"
/>
• For Button Stop:
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button1"
android:layout_alignBottom="@+id/button1"
android:layout_marginLeft="24dp"
android:layout_toRightOf="@+id/button1"
android:onClick="stopAudio"
android:text="Stop"
android:textColor="#FF0000"
android:textStyle="italic"
android:typeface="monospace"
android:bottomRightRadius="30dp"
android:bottomLeftRadius="30dp"
android:topLeftRadius="30dp"
android:topRightRadius="30dp"/>
List of references we have used:

• http://developer.android.com/index.html
• http://www.androiddevelopers.in/
• http://www.androidpolice.com/
• http://android.wordpress.org/
• https://code.google.com/p/connectbot/
• http://www.google.co.in/mobile/android/
• http://www.lynda.com/(Android development video tutorial)

You might also like