Androidmp3playerfinal 131121120525 Phpapp02

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 24

DEVELOPED BY-

Aniket chakravarty

Akash Bhowmik

Shekhar Das

Under guidance of Prof. Moumita Roy


Our Objective
Our project was “Study the Programming
Environment of Android Based Smart Phone and
Build A Test Application.” And We thought of
Real life application Like music player (NSHM
Music Player)

Purpose :Explains the functional features, design

Scope : This application can run anonymously in


any Android based Smart-phones , not less than
version 2.3.5
Rhythmbox

 Android music player Application


System
Features
Start Up
Functional Requirements

 Android operating system on the


Smartphone.
 The target device should be sound
enabled
 The android version should not be
less than 2.3.5
Playlist Menu
 Play
 Stop
 Pause
External Interface Requirements

User Interface Tested on:

 Android emulator version 4.3

Hardware Requirement:
 Core i3 processor
 4 GB RAM
 500 GB Hard Disk

Software Requirement:
 Android SDK Manager
 Eclipse
 ADT(Android Development Tool)
Desig
n

How We Planned The Application


Eclipse

ADT(Android
Development Tool)
Modules…
User

Android SDK(Standard Development Kit)

Windows 7 (64 bit)


Level-0 DFD
User input

Android mp3 player


User

Show result
Level-1 DFD
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"/>
The android music
player
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