android mp3 player

32
PROJECT ON DENNY MP3 PLAYER BASED ON ANDROID OS

Upload: chirag-aggarwal

Post on 04-Jul-2015

757 views

Category:

Engineering


3 download

DESCRIPTION

this ppt is on android mp3 player and i uploaded it here to help the students to cover there projects

TRANSCRIPT

Page 1: Android Mp3 Player

PROJECT ON

DENNY MP3 PLAYERBASED ON ANDROID OS

Page 2: Android Mp3 Player

Developed By..

Chirag Aggarwal

6312073

CSE-2

2012-2016

Under guidance of Er. Dhanpreet Singh

Page 3: Android Mp3 Player

• Android is an operating system based on the Linux , and designed primarily for touch screen mobile devices such as Smartphone’s and tablet computers. The first Android-powered phone was sold in October 2008.

• The user interface of Android is based on direct manipulation, using touch inputs that loosely correspond to real-world actions, like swiping, tapping, pinching and reverse pinching to manipulate on-screen objects.

• Android allows users to customize their home screens with shortcuts to applications and widgets, which allow users to display live content, such as emails and weather information, directly on the home screen. Applications can further send notifications to the user to inform them of relevant information, such as new emails and text messages.

ANDROID INTRODUCTION

Page 4: Android Mp3 Player

• Android is open source and Google releases the code under the Apache License.

• Android has a large community of developers writing applications ("apps") that extend the functionality of devices, written primarily in the Java programming language

• Android is the world's most widely used smart phone platform,[overtaking Symbian in the fourth quarter of 2010. Android is popular with technology companies who require a ready-made, low-cost, customizable and lightweight operating system for high tech devices.

• Despite being primarily designed for phones and tablets, it also has been used in televisions, games consoles, digital cameras and other electronics.

Page 5: Android Mp3 Player

Interface of Android

Page 6: Android Mp3 Player

• Android's user interface is based on direct manipulation , using touch inputs that loosely correspond to real-world actions, like swiping, tapping, pinching and reverse pinching to manipulate on-screen objects.

• Internal hardware such as accelerometers, gyroscopes and proximity sensors are used by some applications to respond to additional user actions, for example adjusting the screen from portrait to landscape depending on how the device is oriented, or allowing the user to steer a vehicle in a racing game by rotating the device, simulating control of a steering wheel.

Page 7: Android Mp3 Player

Android Versions

Page 8: Android Mp3 Player

• Android 1.0 (API level 1)• Android 1.1 (API level 2)• Android 1.5 Cupcake (API level 3)• Android 1.6 Donut (API level 4)• Android 2.0 Eclair (API level 5)• Android 2.1 Eclair (API level 7)• Android 2.2–2.2.3 Froyo (API level 8)• Android 2.3–2.3.2 Gingerbread (API level 9)• Android 2.3.3–2.3.7 Gingerbread (API level 10)• Android 3.0 Honeycomb (API level 11)• Android 3.1 Honeycomb (API level 12)• Android 3.2 Honeycomb (API level 13)• Android 4.0–4.0.2 Ice Cream Sandwich (API level 14)• Android 4.0.3–4.0.4 Ice Cream Sandwich (API level 15)• Android 4.1 Jelly Bean (API level 16)• Android 4.2 Jelly Bean (API level 17)

• Android 4.3 Jelly Bean (API level 18)

• Android 4.4 KitKat (API level 19)

Page 9: Android Mp3 Player

Symbol OF Android OS

Page 10: Android Mp3 Player

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(Rhythmbox)….

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

Our Objective

Page 11: Android Mp3 Player

Rhythmbox

Android music player Application

Page 12: Android Mp3 Player

System Features

Page 13: Android Mp3 Player

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

Start Up

Page 14: Android Mp3 Player

Playlist Menu

Play Stop Pause Songslist Next Previous

Page 15: Android Mp3 Player

User Interface Tested on:

Android emulator version 4.3

External Interface Requirements

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

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

Page 16: Android Mp3 Player

Design

How We Planned The Application

Page 17: Android Mp3 Player

Use

r M

od

ule

s…

Windows 7 (64 bit)

Android SDK(Standard Development Kit)

Eclipse

ADT(Android Development Tool)

Page 18: Android Mp3 Player

Level-0 DFD

UserDenny Mp3 player

User input

Show result

Page 19: Android Mp3 Player

Level-1 DFD

User

Android OS

Menu

Music Player

Carryinginstructi

on receiving from OS

User input for entering into required OS

Show Result

Taking instruction from user to go to the next

step

Page 20: Android Mp3 Player
Page 21: Android Mp3 Player

Building Blocks of Android Code

Android media player class

XML Code

Writing class for reading mp3,Play,Stop,Pause

Denny MP3Player

Page 22: Android Mp3 Player

Writing Classes needed for Mp3 Player

Page 23: Android Mp3 Player

• For Play_Pause service:public void play_pause(View v)

{

if(player.isPlaying())

{

player.pause();

play_pause.setImageResource(R.drawable.ic_action_play);

}

else

{

player.start();

play_pause.setImageResource(R.drawable.ic_action_pause);

}}

Page 24: Android Mp3 Player

• For Stop Service:public void stop(View v)

{if(player.isPlaying()){player.stop();play_pause.setImageResource(R.drawable.ic_action_play);

}

}

Page 25: Android Mp3 Player

XML Code Required for button design

Page 26: Android Mp3 Player

• For Button Play_Pause:<ImageButton

android:id="@+id/play_pause"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:src="@drawable/ic_action_play"

android:background="?android:attr/selectableItemBackground"

android:onClick="play_pause"

/>

Page 27: Android Mp3 Player

• For Button Stop:

<ImageButton

android:id="@+id/stop"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:src="@drawable/ic_action_stop"

android:layout_alignParentLeft="true"

android:layout_centerVertical="true"

android:onClick="stop"

/>

Page 28: Android Mp3 Player

• For Button Previous:<ImageButton

android:id="@+id/previous"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:src="@drawable/ic_action_previous"

android:layout_gravity="center_vertical"

android:background="?android:attr/selectableItemBackground"

/>

Page 29: Android Mp3 Player

• For Button Next:

<ImageButtonandroid:id="@+id/next"android:layout_width="wrap_content"android:layout_height="wrap_content"android:src="@drawable/ic_action_next"android:layout_gravity="center_vertical"

android:background="?android:attr/selectableItemBackground"/>

Page 30: Android Mp3 Player

The android music player Start

Page 31: Android Mp3 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)

Page 32: Android Mp3 Player

THANK YOU!