Chapter 6.pptx
Chapter 6.pptx
1
Outlines ➢ Multithreading
➢ Computer Graphics
➢ Android Graphics
➢ Multimedia
➢ Android Multimedia
▪ In the same way, multiple threads running at the same time in a machine is called Multi-
Threading.
▪ This means when a process is broken, the equivalent number of threads are available.
▪ For example, Autocorrect is the process where the software looks for the mistakes in the
current word being typed.
▪ Endlessly checking for the mistake and providing suggestions at the same time is an
exampleComplied
of aby:Atinkut
Multi-Threaded
M.(MSc.,) process. 3/25/2024
Computer Graphics
3
▪ Computer graphics deals with generating images and art with the aid of
computers.
▪ The picture is produced on the monitor and the user does not have any control
over the produced picture.
▪ Android has got visually appealing graphics and mind blowing animations.
▪ 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.
▪ This animation is the robust framework which lets you animate any properties of
any objects, view or non-view objects.
▪ The android.animation provides classes which handle property animation.
Drawable Animation:
▪ Examples include video conferencing, Yahoo Messenger, email, and the Multimedia
Messaging Service ( MMS Service (MMS).
▪ You have to make a new folder under your project with name raw and place
the music file into it.
▪ Once you have created the Mediaplayer object you can call some methods to
start or stop the music.
▪ These methods are listed below.
▪ mediaPlayer.start();
▪ mediaPlayer.pause();
Complied by:Atinkut M.(MSc.,) 3/25/2024
12 Cont.
▪ On call to start() method, the music will start playing from the beginning.
▪ If this method is called again after the pause() method, the music would start
playing from where it is left and not from the beginning.
▪ In order to start music from the beginning, you have to call reset() method.
▪ Its syntax is given below.
▪ mediaPlayer.reset();
▪ autonomous means the agents are not only motivated by the outside actions
initiated by the users or system but also they have internal events that decided
their performance and behavior.
▪ Mobile Agents are also called as transportable agents.
▪ Subpackages: Packages that are inside another package are the subpackages.
These are not imported by default, they have to imported explicitly.
Complied by:Atinkut M.(MSc.,) 3/25/2024
19