Chapter 6
Chapter 6
Multimedia capabilities, or the playing and recording of audio and video, is one such
significant task that many users find to be of great value.
Take a quick look around and you will find people using the phone as a means to enjoy a
variety of programs as well as share self-recorded media among friends.
Android provides the APIs to easily access this capability as well as embed multimedia and
its manipulation directly within an application.
The Android framework provides a rich set of powerful APIS for applying animation to UI
elements and graphics as well as drawing custom 2D and 3D graphics.
The modern smart phones and tablets have an increasing storage capacity so that we can
store music files, video files, images etc.
Not only the storage capacity is important, but also the high definition camera makes it
possible to take impressive photos. In this context, the Multimedia API plays an important
role.
You can give a look here to have an idea; just to name a few formats supported:
2. Initialization state: This state is triggered when we use setDataSource to set the
information source that MediaPlayer has to use.
3. Prepared state: In this state, the preparation work is completed. We can enter in this state
calling prepare method or prepareAsync.
An android is enriched with some of the best UI design widgets that allows us to build good
looking and attractive UI based application.
In this case, we can use the Canvas class to create 2D graphics. This class provides a set of
method starting with draw * that can be used to draw different shapes like: