ANIMATION

  • Music Players
  • Messaging apps
  • Utility apps
  • Educational apps
  • Wallpapers
  • Games
  • And list goes on

Apps w/o Animation

  • Adder/Subtractor

Apps w Animation

Types of Animations

Property Animation

View Animation

Drawable Animation

What's For Today ?

FRAME ANIMATION

FRAME ANIMATION

NOW LET'S CODE

MEDIA PLAYER

SOME POPULAR MEDIA PLAYERS

What is a Media Player???

Implementation of Media Player in Android

The MediaPlayer Class

STATE DIAGRAM

Important Methods

The create()  method

  • Context
  • The Raw Folder

start() and pause()

mediaPlayer.start();

mediaPlayer.pause();

The stop() method

mediaPlayer.stop();

The reset() and release()  method

mediaPlayer.reset();

mediaPlayer.release();

Let's Build A Media Player

Intent

An Intent is a messaging object you can use to
request an action from another app component.
e.g., Pick a contact, take a photo, dial a phone
number

Building An Intent

Intent is constructed by one component that wants some work done

Received by one activity that can perform that
work

Others Things Involved : Data , Category ,Type ,
Extras , Flags

Types Of Intents

Explicit Intent : Explicit intents specify the
component to start by name .


e.g. Intent i = new Intent(MainActivity.this,
ActivityTwo.class);

Types Of Intents

Implicit Intent : Implicit intents do not name a
specific component, but instead declare a
general action to perform.


e.g. Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("http:/www.mdg.com"));

Intent Filters

 

  • How does the Android system identify the

components which can react to a certain intent?

Intent Filters

A component can register itself via an intent filter for a specific action and specific data.



Android components can register intent filters through the AndroidManifest.xml .

Let's Do Some Intent

Mobile Development Group

Keep Making Cool Apps

https://www.facebook.com/groups/sdsmobiledevelopment/

SDS MDG

https://www.facebook.com/mdgiitr

Made with Slides.com