Introduction of Android Operating System , Android Framework and Android Architecture which is used for development of a multi-media player with greater user interface and format compatibility.
2. Table of Content
Serial
No.
Topic
1. Introduction
2. Android Framework & Runtime
3.. Environment Setup
4. Components of Android Application
5. Project Media Player
6. Existing system
7. Proposed system
8. Modules & Structure
9. Working of the System
10. Format compatibility
11. State Diagram
12. Advantages
13. Conclusion & Future Scope
3. Introduction
What is Android?
• Open source and Linux-based OS for mobile devices such as
smartphones and tablet computers.
• Developed by the Open Handset Alliance
Why Android?
• Offers a unified approach to application development
• Variety of Applications
• Reliability & Reusability
• Multitasking
• Modifiability
• Portability
5. Android Runtime
• Dalvik Virtual Machine is a key component of Android Runtime
which is a kind of Java Virtual Machine specially designed and
optimized for Android.
• Each Android application runs in its own process, with its own
instance of the Dalvik VM..
• Dalvik has been written such that a device can run multiple DVMs
efficiently.
6. Environment Setup
List of software's that we need for Android application programming.
• Java JDK5 or JDK6
• Android SDK
• Android Studio
• Android Development Tools (ADT)
How to proceed to set required environment?
• Step 1 - Setup Java Development Kit (JDK)
• Step 2 - Setup Android SDK
• Step 3 - Setup Android Studio
• Step 4 - Setup Android Development Tools (ADT) Plugin
• Step 5 - Create Android Virtual Device
7. Components of Android Applications
Components Description
Activities They dictate the UI and handle the user
interaction to the smartphone screen
Services They handle background processing
associated with an application.
Content Providers They handle data and database management
issues.
Broadcast Receivers They handle communication between Android
OS and applications.
8. Multi-Media Player
• Mobile Phone is not just a device used for communication but a
multimedia platform that provides the ability to play the media.
• Application will be written using Android SDK in Java and should run
on all Android OS handsets.
• It must support various formats like-
• mp3,
• mp4,wav, flv
• avi, aac
9. EXISTING SYSTEM
• Playing the audio and video isn’t a feel good experience due to
the limitations.
• Provide support for only some media format and recently
facilities for providing the subtitles is included in the existing
system.
• It does not support all media format while audio effects are not
available to some of the best current media players.
• No Background support
• Also current media players have limitations in subtitle support
and dual audio.
• Limitations related to video quality compatibility as well as
format support.
• High quality HD videos face some problem during video
streaming.
• Performance of the media player is enhanced in this case by
using software encoding facility.
10. PROPOSED SYSTEM
After considering all the above problems, we have decided to
implement desktop like media player by using software development
and media framework approach.
A. User Interface Proposed system will provide improved user
interface along with single station for both audio and video
B. Multiple Format Support Proposed system will support multiple
formats like 3gp, mp4, avi, flv.
C. Subtitle Support: Few media players do not support manual
subtitle upload. So proposed system will provide multiple format
subtitle support. It will also provide manual upload of subtitle on
media player
D. Sound Effects: The proposed system eliminate above problem by
using audio effects like equalizer, FX booster which will give more
entertaining music experience
11. E. Dual Audio Support: Dual audio facility allow user to select
playback audio language during video streaming. This feature eliminate
the language understanding barrier.
F. Run In Background: The most unique feature which we will be
going to provide is the video running in background which makes the
video playable in the widget. This feature allows user to do important
works like email checking or sending message or data without
minimizing or closing our video.
12. Features of the App
• The Android platform provides resources for handling media
playback, which your apps can use to create an interface between the
user and their music files.
• The app will present a list of songs on the user device, so that the
user can select songs to play.
• The app will also present controls for interacting with playback and
will continue playing when the user moves away from the app, with a
notification displayed while playback elapses.
13. Modules and Structure
• This system adopts the modularized program design.
• System function is divided into modules:
1. UI function module design of mobile terminal:
• The index screen
• Play screen
• Music adding page
• File management page
2. Backstage function module design of mobile terminal:
• The specific function
• Music file data storage
14. Modules
Playlist design:
• The List View shows one music pictures and one song’s name in
every row.
• We expand the adapter through algorithm, in which a picture and a
song’s name can be shown in the first line.
The design and realization of play menus:
• Includes six functions- play, content, add, delete, delete all & setting
Data storage: Android provides the following ways for data storage:
• Preference (configuration)
• File (documents)
• SQLite data
• Network
15. Play mode:
• Play mode Use RadioGroup which has the function of the single item
choice.
• Multiple RadioButton items can only select one; play mode of the
player includes single cycle, random play, play in order etc.
• When songs played complete, method OnCompletionListener will be
triggered
The extension card access functions of mobile phones: The
application implements the function of the file browser.
16. Working of the System
• The ContentResolver class to retrieve tracks on the device
• The MediaPlayer class to play audio and the MediaController class
to control playback.
• A Service instance to play audio when the user is not directly
interacting with the app.
• At first player may be idle or there may be previous files which is
either running or stopped or completed.
• When we click on the media file, then previously loaded file is
retrieved to its starting point and then new file is initialized on player.
• After initialization of the file it is ready for preparing
• Then file will play on media player only if format is compatible with
player.
• Otherwise corresponding codec are loaded and file get played
18. Method & description
• isPlaying()
This method just returns true/false indicating the song is playing or not
• seekTo(position)
This method takes an integer, and move song to that particular second
• getCurrentDuration()
This method returns the current position of song in milliseconds
• getDuration()
This method returns the total time duration of song in milliseconds
• reset()
This method resets the media player
19. • release()
This method releases any resource attached with Media Player object
• setVolume(float leftVolume, float rightVolume)
This method sets the up down volume for this player
• setDataSource(FileDescriptor fd)
This method sets the data source of audio/video file
• selectTrack(int index)
This method takes an integer, and select the track from the list on that
particular index
20. State Diagram
Playback control of audio/video files and streams is managed as a
state machine.
The following diagram shows the life cycle and the states of a
MediaPlayer object:
• Ovals represents the states a MediaPlayer object may reside in.
• Arcs represent the playback control operations that drive the object
state transition.
• Arcs with a single arrow head- Synchronous method calls Arcs with
double arrow head- Asynchronous method calls
21.
22. Advantages
The proposed MediaPlayer offers just the right mix of ease of use and
powerful features.
• An uncluttered viewer supports
• Various swipe gestures
• Pinch to zoom
• App features both software and hardware decoding for a broad
variety of file formats.
• Subtitle controls
• Improved GUI.
• No need of converter
• Multiple format support.
• High quality video streaming support
• Sound effects
23. Conclusion and Future Scope
• The media player consider about improving functionality in terms of
user interface, format support through the inclusion of codec.
• Improvement in user experience through video running in
background, dual-audio support, subtitle support for all format.
• Single application for audio as well as videos.