Music App Doc
Music App Doc
ABSTRACT
Today we are living in a world where everything is so fast and perfect that we can’t afford to lose our
time on trivial things. Most of the recent ideas and inventions focus on making things easier and more
comfortable. Keeping this in mind we wanted to develop something so that we could get a result on the
click of some buttons. Therefore we developed a project whereby a person can get his distance from any
landmark by just clicking a Button.
In order to solve the problem of complex functions and large required memory of mobile phone
music player on the current market, a new music player of simple, convenient, less required
memory as well as user-friendly is developed. Based on the Android technology, using the Java
language and Eclipse programming tools lead to design and coding of music player. The new
design mainly realizes six core functions including main play interface, playlists, menus, play
settings, file browsing and song search. This player has merits of high performance, simple
operation, and run independently on the Android mobile devices. At the same time, the player
can also browse and access files in mobile phones..
2
3
TABLE OF CONTENTS
5 PROJECT DESCRIPTION
9.1 Coding 27 8
5.1 Overview of the
9.2 Screen project
Shots 34 8
10 5.2 REFERENCES
Module Description 38 8
5.2.1 Modules 8
LIST OF ABSERVATION
ABBREVIATION DEFINITION
ER Entity Relationship
INTRODUCTION
CHAPTER 1
8
INTRODUCTION
1.1OBJECTIVE
This system adopts the modularized program design, and system function is correspondingly divided
into function modules, the main modules include:
1. UI function module design of mobile terminal: the index screen, play screen, music
adding page, file management page are realized.
2. Backstage function module design of mobile terminal: the specific function, music file
data storage function and other function are implemented.
The project is developed as the Mobile App for the Viewing and playing music within
our phone which are already downloaded in our phone’s memory.
The customers can create their own playlist and listen to their loved ones.
This App helps to maintain the effective and smooth working environment to view and
listen to the music while customizing the app as per users needs.
9
SYSTEM ANALYSIS
10
CHAPTER 2
SYSTEM ANALYSIS
In the Existing System, the user listens to the music list at several places without any
constraints, the information may not be relevant at times.
Applications took a lot of battery and memory as they used to continuously run in
background.
Each time user needed to sync and search for his favorite songs.
No customizations where available.
In the proposed system, the user can listen to the music they like, download their lyrics and
save them offline so that they can listen to it even if they lack network.
The project is developed as the Mobile App for the Viewing and playing music within
our phone which are already downloaded in our phone’s memory.
The customers can create their own playlist and listen to their loved ones.
11
This App helps to maintain the effective and smooth working environment to view and
listen to the music while customizing the app as per users needs.
The feasibility analysis. This section verified that it is feasible to add music player on the Android system
from the aspects of economic, technical and social feasibility. User demonstrable needs
Problem worth solving
Method of solving problem.
.Problem solving:
The main focus of our project is to create a music app for the user. Based on the Android
technology, using the Java language and Eclipse programming tools lead to design and coding of
music player. The new design mainly realizes six core functions including main play interface,
playlists, menus, play settings, file browsing and song search. This player has merits of high
performance, simple operation, and run independently on the Android mobile devices. At the
same time, the player can also browse and access files in mobile phones.
2.3.1Technical Feasibility
Technical feasibility centers on the existing system and to what extent it can support the
proposed system. To design a music player which meets the basic requirements, a deep
understand of JAVA language, the Eclipse development tools, SQLlite databases, the Android
system architecture, application of framework and other technical knowledge are needed.
12
(framework is the core of the application, and rules that all the programmers participating in the
development must abide by). Based on the related technology information and resources for
Android on the market, and equipped with technical personnel of technology and the spirit of
willing to learn, the technology is feasible. The tender process is nor much more investment to
develop hence it is open source it may cost less. Technically compatible with all user system.
The technical requirements are gathered with ease as the software’s used are common. Now
considering the proposed system, and company planning to implement so the owner has realized
the advantages, benefits and economic feasibility of the new system is ready to afford the extra
expense that may arise for the satisfaction of all the hardware and software requirements.
Once the system is getting installed, it is easier for the user to maintain and carry
their personal details. This mobile phone application will help and useful. The application
is development more effective and efficient to work. During feasibility analysis,
operational feasibility study is necessary as it ensures that the project development is
successfully implemented in the organization. According to software engineering
principles, operational feasibility or in other words usability should be high. A thorough
analysis is done and found that the system operational. The software used to develop the
system makes it more flexible portable more secure.
To design Android mobile phone music player as long as a computer has the
Android development and the application development of Android is free. In addition,
13
mobile phone music player is basic needs for public. The information that which
functions are necessary form all the consumers , which functions are needed for some
people, and which features are seldom to use is easy to understand. And a lot of research
is eliminated, thus saved the spending. Therefore, the whole process of development
doesn’t need to spend any money that is economic feasibility.
With the rapid development of the mobile phone market, all kinds of audio and
video resources are widely circulated on the Internet. These resources seem ordinary, but
have gradually become an indispensable part of people life, which derived the
development of all kinds of mobile phone player. But a lot of players devoted to fancy
appearance, strong function causing a lot of wasted resources to the user's mobile phone
and bringing a lot of inconvenience to the user as multitasking operation is needed. Some
functions are useless to ordinary people. Powerful player is a good thing, but a lot of
functions are actually useless for most users. Aimed at these problems, developing
multiplied audio player which owns the features of simplified functions, common play
function, meeting the needs of most users, less required memory and high quality of
playing music, maximizes the optimization in performance.
Saturation Overview.
SYSTEM SPECIFICATION
16
CHAPTER 3
SYSTEM SPECIFICATION
The applications of Android need to run based on Android environment. The following is the
configuration requirement and installation steps of Android development environment. The
required software of the developing environment Operation system: Windows
XP 、 Linux 、 Windows 7 Software : Android SDK(Software Development Kit) 、 ADT(Android
Development Tool) IDE environment:Eclipse IDE + ADT Eclipse3 or higher JDK:Java Runtime
Environment virtual machine 、 Java Development Kit(JDK) Installation steps of the developing
environment Step 1: install the Java virtual machine JDK version - 6 Step 2: install Eclipse3-5
tools; download address: http://www-eclipse-org/downloads/ Step 3: install the Android SDK:
first download the Android SDK Download address: http://developer-android-com/sdk/index-
html Step 4: Install Android ADT plug-in, run Eclipse and select help - > install new software and
select add. Input SDK tools path in the SDK location: D: \ android \ software \ android SDK –
Windows and click OK. The Android environment is set up successfully.
17
SOFTWARE DESCRIPTION
18
CHAPTER 4
SOFTWARE DESCRIPTION
4.1 Android Studio:
Android Studio is an IntelliJ IDEA based IDE and declared by Google as the official IDE
for Android application development.
In this Android Studio tutorial, you’ll learn how to use the tools that every Android developer
uses to create a simple fortune-telling app. You’ll learn to use some of Android Studio’s key
features such as:
Navigating through different files in your project using the project explorer
Setting up the AndroidManifest.xml file
Learning about the Gradle build system
Importing files into your project
Learning about the rich layout editor with dynamic layout previews
4.2.1 ANDROID
Android is a mobile operating system currently developed by google, based on the linux
kernel and designed primarily for touch screen mobile devices such as smart phones and tablets.
Android user interface is mainly based on direct manipulation using touch gestures that loosely
correspond to real world actions such as swiping tapping and pinching to manipulate on screen
objects, along with a virtual keyboard for text input.
19
Applications which extends the functionality of device, are written using the Android
Software development kit(SDK) and, often the java programming language tat has complete
access to the Android APIs. Java may be combined with C/C++ together with a choice of non-
default runtimes that allow better C++ support the Go programming language is also supported
since its version 1.4, which can also be used exclusively although with a restricted set of Android
APIs. The SDK includes a comprehensive set of development tools, including a debugger,
software libraries, a handset emulator based on QEMU, documentation, sample code, and
tutorials. Initially, google’s supported integrated development environment (IDE) was Eclipse
using the Android Development Tools(ADT) plugin.
Android APK
Firebase
Android provides several ways to store user and app data. Firebase is one way of storing
user data. Firebase is a very light weight database which comes with Android OS and is server
side.
20
PROJECT DESCRIPTION
21
CHAPTER 5
PROJECT DESCRIPTION
In order to solve the problem of complex functions and large required memory of mobile phone music
player on the current market, a new music player of simple, convenient, less required memory as well as
user-friendly is developed. Based on the Android technology, using the Java language and Eclipse
programming tools lead to design and coding of music player. The new design mainly realizes six core
functions including main play interface, playlists, menus, play settings, file browsing and song search.
This player has merits of high performance, simple operation, and run independently on the Android
mobile devices. At the same time, the player can also browse and access files in mobile phones.
Android’s application on mobile terminals also completely broke the traditional understanding
of the mobile terminals. And appreciate music is one of the best ways to relieve pressure in stressful
modern society life. Therefore, many kinds of mobile phone players are also developed. However, a lot
of players devote to fancy appearance and function, while caused resources wasting to the user's mobile
phone, such as large required memory and CPU, which brings a lot of inconvenience as multiple
programs running at the same time. For the most ordinary users, many functions are useless. The
purpose of this article is to develop a player which can play the mainstream music file format
22
SYSTEM DESIGN
23
Install App
Sync
Create Shuffle
Playlist Music
Play
Add Music
24
Playlist Design
A view called List View in Android, with the characteristic of Base Adapter attribute. This can display the
form of top to bottom or left to right. The default form of the system is each line only shows a Text View,
25
while this playlist realized the user-defined form. The List View shows one music pictures and one song’s
name in every row. We defined a class Music Adapter inherited Base Adapter. And expand the adapter
through algorithm, in which a picture and a song’s name can be shown in the first line. Because the Base
Adapter is an abstract class, we need to implement the abstract method “get View”, which returns a
View. View can be displayed on the Activity, so the playlist interface will come out.
Playmode Design
Play mode Use a component called RadioGroup which has the function of the single item choice. There
is a RadioButton in RadioGroup. Multiple RadioButton items can only select one; play mode of the player
includes single cycle, random play, play in order etc. MediaPlayer have a monitor, which insures the
songs’ playing and complete. When songs played complete, method OnCompletionListener will be
triggered. In the method the operation after completion of play will be processed. The lyrics setting The
lyric present is realized by a button called ToggleButton which includes start and off. When it is open,
the lyrics will display, on the contrary, it will be closed. ToogleButton also has a listener, which can
obtain different states of ToogleButton. Instantiation (ToggleButton) View is used before using.
findViewById (R.i d.l y_lrc); and switch on/off state by using ToggleButton. IsChecked. The
implementation of lyrics present The format of the lyrics in the player is.Lrc files, in which the lyrics
format is stored as the format of "time + lyrics". The following will introduce how to read the lyrics in Lrc
and stored in the Android files. The storage of XML configuration files The content structure of the
Android system is as Fig. 2:
26
A content called sdcard is the expansion card with audio files and Lrc lyrics file. If we define a formula of
BufferedReader buffer = new BufferedReader (new FileReader (new File ("/sdcard/" + + ". Lrc England
"musicName))); specified the path of the Lrc files and read the files into BufferReader. Because two
storages need to store time and lyrics respectively, we should define two List < String > container to hold
the time and the lyrics. When reading LRC, in each line reading, separate time and lyrics though
reoccupy algorithm and add into an array, and store in two lists respectively. Because songs will switch
between interfaces in playing, the lyrics must be fixed in a file, rather than as an object, therefore, we
will put the two list and lyrics into one configuration file. When writing is finished, android will
automatically generate a configuration file in the content data/data/ and /shared_prefs/, which is
shown as Fig. 3.
Data Storage
When players run normally, because of the switch among interface, in order to avoid the data lost, we
need to store some data for temporary or permanent storage. As a kind of mobile phone operating
system, Android provides the following ways for data storage: Preference (configuration), File
(documents), SQLite data and network. Application component between each other is independent In
Android, and data cannot be shared. In order to realize data sharing, Android provides Content Provider
components to realize the sharing of data among applications.
27
SYSTEM TESTING
28
CHAPTER 6
SYSTEM TESTING
Testing is the process of executing a program with the intention of finding any error. A
good test of course has the high probability of finding a yet undiscovered error. Successful test is
the one that uncovers a yet undiscovered error.
A test is vital to the success of any system. System test makes a logical assumption that
if all parts of the system are correct, then goal will be successfully achieved. The candidate
system is subjected to a variety of tests online like responsiveness, its value, stress and security.
A series of tests are performed before the system is ready for user acceptance testing.
In Unit testing, test each module individually and integrate the overall system. Unit
testing focuses verification effort even in the smallest unit of software development in each
module. This is also known as module testing. The modules of the system are tested separately.
Testing includes the process of checking Admin ID and password, validating that the user and
updating the coordinates against their mobile number.
Data can be lost across on an interface, one module have an adverse effect on the other
sub-functions, when combined may not produce the desired functions. Integrated testing is the
systematic testing to uncover the error within the interface.
Admin login with the correct user name password that should be taken to Admin
Panel.
In Update panel user has to update their current location..
In the app, all the forms are individually tested and integrated to begin as the
running applications with the valid integrated modules.
29
Validation testing refers to a different set of activities that ensure that the system that has
been traceable to customer requirements. Data entered by the customer should be validated
properly and finally moved to the server. Validation testing has been applied from the login
page.
The Admin ID and Password is wrong the system should alert to the user that
“Enter the Valid Credentials”. Mobile no, passwords are also validated.
Based on the category the sub category should be loaded.
30
SYSTEM IMPLEMENTATION
32
CHAPTER 7
SYSTEM IMPLEMENTATION
Developing an android application on the development, for setting up the development kit,
Android Studio is the official IDE for android application development. It works based
on IntelliJ IDEA, We can download the latest version of android studio from Android Studio
2.3.1, If you are new to installing Android Studio on windows, you will find a file, which is
named as android-studio-bundle-143.3101438-windows.exe. So just download and run on
windows machine according to android studio wizard guideline.
After done all above steps perfectly, you must get finish button and it will open android
studio project.
You can start your application development by calling start a new android studio project.
in a new installation frame should ask Application name, package information and
location of the project.
After entered application name, it going to be called select the form factors your
application runs on, here need to specify Minimum SDK, in our tutorial, I have declared
as API23: Android 6.0(Mashmallow).
At the final stage it going to be open development tool to write the application code.
34
CHAPTER 8
8.1 CONCLUSION
Through the development of music player on Android platform, we get a clear understanding of overall
process of the system. The core part of the music player is mainly composed of main interface, playlists,
menus, play Settings, file browsing and song search. Grasping the development of the six parts, the
music player has had the preliminary scale. Based on the function of the six categories, add some other
small features. Music player system realized the basic function of player: play, pause, and stop, up/down
a, volume adjustment, lyrics display, play mode, song search, file browser, playlists query, and other
functions. This development implicated the popular mobile terminal development technology. This is
the combination management of Java language in the open source mobile platform based on Linux
system+ + SQLite database support+ SharePreference configuration file. The system realized the music
player programming. This design of music player based on Android system requires elaborate design of
the music player framework, by adopting Eclipse3.5 + Java language as technical support of this system,
with the Android plug-in tools, and combination of Android SDK2.1 version lead to the comprehensive
and smoothly design and development of the mobile terminal.
The system has been designed at the maximum possible excellence. In future the
Application is enhanced with the possibilities of the Google maps for finding the Location of the
houses. Additionally with the search options the Location of the places, whether it is nearer to
the town or in the critical or safe location will also be described in the app itself. Since user can
view critical areas using the maps and adding the additional home details will also come in
future enhancement. This Application can be extended easily without affecting the functionality.
35
The Google maps for finding the Location of the near by facilities.
APPENDICES
37
CHAPTER 9
APPENDICES
SCREENSHOTS
REFERENCES
40
CHAPTER 10
REFERENCES
BOOKS
[1] Xu, J. The Design and Implementation of Music Player Based on Android Platform, Beijing Posts and
Telecommunications University, 2011-5:156~178..
[2] Wang, Gai. Guide Introduction of Google Android second version , People's Posts and
Telecommunications Publishing House 2009-11:263~287
[3] Sayed Hashimi, Satya Komatineni, Dave MacLean. Master of the Android 2. People's Posts and
Telecommunications Publishing House, 2010-12:154~175.
[4] Mark L.Murphy, Li,X. Wu, M interpreted Guide Introduction of Android Development, People's Posts
and Telecommunications Publishing House,2010-12:128~156.
[5] Reto Meier, Wang, C. interpreted Advanced Programming (2nd edition). Tsinghua University Press,
2010-12: 241~278.
[6] Ke, Y. The Android Kernel Profiling. Electronic Industry Press, 2011-9: 231~248.
[7] Guo, H. The Android Application Development, Electronic Industry Press. 2010-6: 271~ 279.
[8] Fan Kaiyuan. 《 J2EE-based Enterprise MIS Design and Implementation 》 .Energy Procedia.2011,
Vol.11, pp.1972-1977
WEBSITES
1. http://developer.android.com/guide/topics/resources/providing-resources.html
41
4. http://www.sitepoint.com/12-android-tutorials-beginners/
5. http://www.coreservlets.com/android-tutorial/
6. http://www.learn-android.com/
7. www.simplifiedCoding.in