Android Intent Tutorial 2

Post on 20-Jun-2015

420 views 2 download

Tags:

description

Android Intent programming, launch new activity on button click event, custom button, layout background changes, manifest.xml configuration.

Transcript of Android Intent Tutorial 2

Android Application DevelopmentTutorial 2

Intent Programming

Let’s start New Project

Fill the project details

Let’s create Custom Button

Create new drawable file

Complete the details

Button background

Layout background color

Main Activity Layout

Add a new string in string.xml

String name and value

Let’s create second layout

Second Activity Layout

Create a new java class

Naming the .java file

Changes in MainActivity & SecondActivity

Finally register new activity in manifest file

Browse for class name

AndroidManifest.xml

Run the project on AVD