Mad Report
Mad Report
CHAPTER 1
INTRODUCTION
1.1 MOBILE APPLICATION DEVELOPMENT
A mobile operating system(OS) is the software that allows mobile devices like phones, tablets
and other smart devices like wearable technology to run applications and other programs.
Most mobile operating systems only work on specific hardware for example, an iPhone runs
on IOS and a google runs on android
1. Android (Google)
2. iOS (Apple)
3. Bada (Samsung)
4. Blackberry OS (Research in Motion)
5. Windows OS (Microsoft)
6. Symbian OS(Nokia)
7. Tizen (Samsung)
The two biggest mobile operating systems are Android and iOS, with a combined 98.7% of the
market share in the United States. Android has a slightly larger user base which is largely
attributed to its availability on devices from a variety of manufactures including HTC LG
Motorola Samsung and more. On the other hand, iOS only runs on Apple products.
Google had a head start on Apple, with Android first released in 2008. The initial version of
Android was called as Astro, it went through a ton of updates to “Cupcake","donut."
eclar","froyo",GingerBreab , HoneyCombo, IceCreamSandwich, Jelly Bean, KitKat Lollipop,
Marshmal low Nougat,Oreo. Android developers made the update codenames confectionary-
themed, in alphabetical order of course. It is a mobile OS based on the Linux Kernel and open-
source software IOS 1.0.internally called "Alpine", was first released in 2011 with the first
iPhone Apple doesn't use public codenames for iOS The best apps are typically built twice,
once for iOS and once for Android.
MEDIA PLAYER APP
1.3 IOS
Apple has its own software for building iOS apps called XCode. It serves as an editor for your
code, as well as a debugging tool and way to preview your appeared you launch them, XCode
is free to download but it only runs on mac computers Apple platforms, and machines running
on the iOS operating system. two languages used for ios development. The primary languages
that dominate are objective-C and Swift.It was the primary programming language to develop
iOS apps for years, and it's still used today to build iOS apps This is an object oriented
programming language Like many other programming language like C++ and C#,Objective-c is
based on the language C.This means the basic structure and syntax is similar to Cand many of
the features will be familiar to programmers who already know c.
In 2014, Apple launched their own programming language known as swift. It's becoming more
widespread and is the default programming language for iOS apps.
SDK stand for software development kit or devkit for short it's a set of software tools and
programs used by developers to create applications for special platformSDK tools will includes
libraries, documentation, code samples processes, and guides that developers can use and
integrate into their own apps. SDKs are designed to be used for specific platforms or
programming languages.
MEDIA PLAYER APP
The Android Emulator simulates Android devices on your computer so that you can test your
application on a variety of devices and Android API levels without needing to have each
physical device. The emulator provides almost all of the capabilities of a real Android device.
You can simulate incoming phones calls Ans text messages, specify the location of the devices
simulate different network speeds, simulate rotation and other hardware sensors, access the
Google play Store, and much more.
Testing your app on the emulator is in some ways faster and easier than doing so on a physical
device, for example, you can transfer data faster to the emulator than to a device connected
over USB the emulator comes with predefined configurations for various Android phone,
tablet, Wear Os, and Android TV devices.
downloaded file for Mac OS and Linux. This tutorial will consider that you are going to setup
your environment on Windows machine having Windows 8.1 operating system.
Android Studio, Android SDK, Android Virtual Machine and performance(Intel chip). Need to
specify the location of local machine path for Android studio and Android SDK, below the
image has taken default location of windows 8.1 x64 bit architecture. Need to specify the ram
space for Android emulator by default it would take 512MB of local machine RAM. At final
stage, it would extract SDK packages into our local machine, it would take a while time to finish
the task and would take 2626MB of Hard disk space. At final stage, it would extract SDK
packages into our local machine, it would take a while time to finish the task and would take
2626MB of Hard disk space. 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 AP123; Androids.0(Marshmallow). The next level of installation
should contain selecting the activity to mobile, it specifies the default layout for Applications.
At the final stage it going to be open development tool to write the application code.
To test the Android applications, this will need a virtual Android device. So before start writing
code, let create an Android virtual device. Launch Android AVD Manager ClickingAVD Manager
icon as shown below. After Click on a virtual device icon, it going to be shown by default virtual
devices which are present on your SDK, or else need to create a virtual device by clicking
Create new Virtual device button. If your AVD is created successfully it means your
environment is ready for Android application development. If you like, you can close this
window using top-right cross button. Better you restart your machine and once you are done
with this last step, you are ready to proceed for your first Android example but before that we
will see few more important concepts related to Android Application Development.
MEDIA PLAYER APP
CHAPTER 2
SYSTEM ANALYSIS
FEATURES:
• Rewind option is also available if the user wants to rewind the music.
MEDIA PLAYER APP
CHAPTER 3
REQUIREMENTS
CHAPTER 4
SYSTEM DESIGN
As shown in the use case diagram, the user can open the application, select the required
option output will be displayed.
Choose the option: The user can select the option according to their desire.
Enter the inputs according: The user can pause ,start, forward and rewind.
show result: The output is display according the user’s input.
MEDIA PLAYER APP
START
SELECT FILE
AUDIO PLAYER
PLAY
PAUSE
Rewind
Fast Forward
END
As shown in the flow diagram, the user can open the application, select the required option
output will be displayed.
The above diagram of the use-case can be explain as:
CHAPTER 5
IMPLEMENTATION
<SeekBar
Android:id=”@+id/seekBar”
Android:layout_width=”255dp”
Android:layout_height=”28dp”
Android:layout_alignParentEnd=”true”
Android:layout_alignParentBottom=”true”
Android:layout_marginEnd=”66dp”
Android:layout_marginBottom=”311dp” />
<ImageButton
Android:id=”@+id/rewind”
Android:layout_width=”wrap_content”
Android:layout_height=”wrap_content”
MEDIA PLAYER APP
Android:layout_alignParentEnd=”true”
Android:layout_alignParentBottom=”true”
Android:layout_marginEnd=”256dp”
Android:layout_marginBottom=”219dp”
App:srcCompat=”@android:drawable/ic_media_rew” />
<ImageButton
Android:id=”@+id/playButton”
Android:layout_width=”wrap_content”
Android:layout_height=”wrap_content”
Android:layout_alignParentEnd=”true”
Android:layout_alignParentBottom=”true”
Android:layout_marginEnd=”168dp”
Android:layout_marginBottom=”223dp”
App:srcCompat=”@android:drawable/ic_lock_power_off” />
<ImageButton
Android:id=”@+id/forward”
Android:layout_width=”wrap_content”
Android:layout_height=”wrap_content”
Android:layout_alignParentEnd=”true”
Android:layout_alignParentBottom=”true”
Android:layout_marginEnd=”79dp”
Android:layout_marginBottom=”220dp”
App:srcCompat=”@android:drawable/ic_media_ff” />
</RelativeLayout>
MEDIA PLAYER APP
Import androidx.appcompat.app.AppCompatActivity;
Import android.annotation.SuppressLint;
Import android.media.MediaPlayer;
Import android.os.Bundle;
Import android.os.Handler;
Import android.view.View;
Import android.widget.ImageButton;
Import android.widget.SeekBar;
Import android.widget.Toast;
}else {
mediaPlayer.start();
updateSeekBar();
}
}
});
Forward.setOnClickListener(new View.OnClickListener() {
@Override
Public void onClick(View v) {
If(mediaPlayer.getDuration()>mediaPlayer.getCurrentPosition() +10000){
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition() + 10000);
updateSeekBar();
}
}
});
mediaPlayer.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
@Override
Public void onCompletion(MediaPlayer mp) {
Seekbar.setProgress(0);
mediaPlayer.reset();
prepareMediaPlayer();
}
});
}
CHAPTER 6
TESTING
CHAPTER 7
SNAPSHOTS
Fig
7.1
music
player
app
CHAPTER 8
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, file browsing and song listing, Grasping the development of the music player has
had the preliminary scale small features.Music player system realized the basic function of
player: play, pause, rewind and fastforward a, volume adjustment is performed through the
Android System Itself, play mode, song search, seekbar, 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 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 ANDROID STUDIO 3.1.2 + Java language as technical support
of this system, with the Android plug-in tools, and combination of Latest Android SDK
version lead to the comprehensive and smoothly design and development of the mobile
terminal.
MEDIA PLAYER APP
CHAPTER 9
REFERENCE