+ All Categories
Home > Technology > Android mp3 player

Android mp3 player

Date post: 28-Jan-2015
Upload: subhrajit-das
View: 246 times
Download: 29 times
Share this document with a friend
Embed Size (px)
Popular Tags:
of 35 /35
Simple ANDROID MP3 Player
Page 1: Android mp3 player

Simple ANDROID MP3 Player

Page 2: Android mp3 player

Developed By..

Shiladitya BasuChirag DasSumit BalmikiSubhrojit DasSambho Ghosh

Under guidance of Prof. Subhasis Mitra

Page 3: Android mp3 player

Android Introduction..

Page 4: Android mp3 player

• Android is an operating system based on the Linux kernel, and designed primarily for touch screen mobile devices such as Smartphone’s and tablet computers. Initially developed by Android, Inc., which Google backed financially and later bought in 2005, Android was unveiled in 2007 along with the founding of the Open Handset Alliance: a consortium of hardware, software, and telecommunication companies devoted to advancing open standards for mobile devices . 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.

Page 5: Android mp3 player

• Android is open source and Google releases the code under the Apache License. This open-source code and permissive licensing allows the software to be freely modified and distributed by device manufacturers, wireless carriers and enthusiast developers.

• 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. Android's open nature has encouraged a large community of developers and enthusiasts to use the open-source code as a foundation for community-driven projects, which add new features for advanced users or bring Android to devices which were officially released running other operating systems.

Page 6: Android mp3 player

Interface of Android

Page 7: 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. The response to user input is designed to be immediate and provides a fluid touch interface, often using the vibration capabilities of the device to provide Haptic Feedback to the user.

• 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 8: Android mp3 player

• Android home screens are typically made up of app icons and widgets; app icons launch the associated app, whereas widgets display live, auto-updating content such as the weather forecast, the user's email inbox, or a news ticker directly on the home screen.

• A home screen may be made up of several pages that the user can swipe back and forth between, though Android's home screen interface is heavily customizable, allowing the user to adjust the look and feel of the device to their tastes.

• Third-party apps available on Google Play and other app stores can extensively re-theme the home screen.

• Present along the top of the screen is a status bar, showing information about the device and its connectivity. This status bar can be "pulled" down to reveal a notification screen where apps display important information or updates, such as a newly received email or SMS text, in a way that does not immediately interrupt or inconvenience the user.

Page 9: Android mp3 player

Memory Management of Android OS

Page 10: Android mp3 player

• Since Android devices are usually battery-powered, Android is designed to manage memory (RAM) to keep power consumption at a minimum.

• When an Android app is no longer in use, the system will automatically suspend it in memory – while the app is still technically "open," suspended apps consume no resources (e.g. battery power or processing power)

• Android manages the apps stored in memory automatically: when memory is low, the system will begin killing apps and processes that have been inactive for a while, in reverse order since they were last used (i.e. oldest first).

• This process is designed to be invisible to the user, such that users do not need to manage memory or the killing of apps themselves

Page 11: Android mp3 player

Android Versions

Page 12: 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 13: Android mp3 player

Symbol OF Android OS

Page 14: 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 15: Android mp3 player


Android music player Application

Page 16: Android mp3 player

System Features

Page 17: 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 18: Android mp3 player

Playlist Menu

Play Stop Pause

Page 19: 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 20: Android mp3 player

2 Design

How We Planned The Application

Page 21: Android mp3 player




Album Viewer




r Mod


Windows 7 (64 bit)

Android SDK(Standard Development Kit)


ADT(Android Development Tool)

Page 22: Android mp3 player

Level-0 DFD

User Android mp3 player

User input

Show result

Page 23: Android mp3 player

Level-1 DFD


Android OS


Music Player

Carrying instructi

on receiving from OS

User input for entering into required OS

Show Result

Taking instruction from user to go to the next


Page 24: Android mp3 player

Android music player coding

Page 25: Android mp3 player

Building Blocks of Android Code

Android media player class XML Code

Writing class for reading mp3,Play,Stop,Pause

Android MP3Player

Page 26: Android mp3 player

Writing Classes needed for Audio Player

Page 27: Android mp3 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); }

Page 28: Android mp3 player

• For Stop Service: public void stopAudio(View view) { Intent objIntent = new Intent(this, PlayAudio.class); stopService(objIntent); }

Page 29: Android mp3 player

XML Code Required for button design

Page 30: Android mp3 player

• 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" />

Page 31: Android mp3 player

• 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" />

Page 32: Android mp3 player

• 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"/>

Page 33: Android mp3 player

The android music player

Page 34: 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 35: Android mp3 player

Thank You!