0% found this document useful (0 votes)
25 views11 pages

Gui Com Ponents Aim:: EX - NO: Date

mobile applicationdevelopmet

Uploaded by

ajeemani89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views11 pages

Gui Com Ponents Aim:: EX - NO: Date

mobile applicationdevelopmet

Uploaded by

ajeemani89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

EX.

NO:

DATE : GUI COM PONENTS

AIM:
To develop an Android application that users GUI Components.

PROCEDURE:
Step1 : Open Eclipse and then click on file->New->New Project.

Step 2: Then type the application name as GUI and click next.

Step 3: Then select the minimum SDK as shown below and click next.

Step 4: Then select the empty activity and click next.

Step 5: Finally click finish designing layout for the android application.

Step 6: Click on app->res->layout->activity->Main xml.

Step 7: Under design tab, drag and drop the following UI components and set the property’s
value under the attribute window shown at the right side.

S.NO UI COMPONENTS PROPERTY VALUE


1 Text View Text Enter the Text 20sp
Text Size
2 Button Text Change font size
3 Button Text Change font colour

Step 8: Click on Text tab, to view the xml code. Java coding for the Android application.

Step 9: Click on app->Java->com.example GUI->Main Activity.

Step 10: Delete the code which is there and type the Java code as given below.

Step 11: Click play Icon and select any of the available virtual devices from the list or create a
new AVD.
EX.NO:

DATE : INTENT AND ACTIVITY

AIM:
To develop an Android application that users Intent and Activity.

PROCEDURE:
Step1 : Open Eclipse and then click on file->New->New Project.

Step 2: Then type the application name as intent and activity and click next.

Step 3: Then select the minimum SDK as shown below and click next.

Step 4: Then select the empty activity and click next.

Step 5: Finally click finish designing layout for the first activity.

Step 6: Click on app->res->layout->activity->Main xml.

Step 7: Click on Text tab, to view the xml code. Java coding for the first activity.

Step 8: Click on app->Java->com.example.intent and activity->Main Activity.

Step 9: Delete the code which is there and type the Java code as given below.

Step 10: Create the Second Activity by click on res->New->others->Android activity->second


activity and click next.

Designing layout for second activity.

Step 11: Click on app->res->layout->activity->second.xml.

Step 12: Click play icon and select any of the available virtual devices from the list on creates a
new AVD.
EX.NO:

DATE : OPTIONS MENU

AIM:
To develop an Android application for Options menu.

PROCEDURE:
Step1 : Start a new android studio project.

Step 2: Configure your project like application name, company domain, package name and
project location and select minimum SDK.

Step 3: To define the menu, create and xml file inside your project res/menu/directory and build
the menu.

Step 4: Defines a menu, which is a container for menu items. A<menu> element must be the
root node for the file and can hold one or more <item> and <group> elements.

Step 5: Inflating the menu by calling the inflate () method of menu inflater class.

Step 6: To perform event handling on menu items, you need to override on options item()
method of activity class.

Step 7: Build and run the project on preferred emulator or android device.
EX.NO:

DATE : SMS MESSAGING

AIM:
To develop an Android application that creates an alert upon receiving a message.

PROCEDURE:
Step1 : Open eclipse and then click on file->New->New project.

Step 2: Then type the application name as `messaging and click next.

Step 3: Then select the minimum SDK as shown below and click next.

Step 4: Then select the empty activity and click next.


Designing layout for the android application.

Step 5: Click on app->res->layout->activity-main xml.

Step 6: Click on the text tab, to view the xml code.


Java coding for the android application.

Step 7: Click on app->Java->com.example message->main activity.

Step 8: Click play icon and select any of the available virtual devices from the list on create a
new AVD.
EX.NO:

DATE : DATABASE

AIM:
To develop an Android application that makes use of database.

PROCEDURE:
Step1 : Open eclipse and then click on file->New->New project.

Step 2: Then type the application name as `Database and click next.

Step 3: Then select the minimum SDK as shown below and click next.

Step 4: Then select the empty activity and click next.


Designing layout for the android application.

Step 5: Click on app->res->layout->activity-main xml.

Step 6: Click on the text tab, to view the xml code.


Java coding for the android application.

Step 7: Click on app->Java->com.example database->main activity.

Step 8: Click play icon and select any of the available virtual devices from the list on create a
new AVD.
EX.NO:

DATE : CONTEXT MENU

AIM:
To develop an Android application for Context menu.

PROCEDURE:
Step1 : Start a new android studio project.

Step 2: Configure your project like application name, company domain, package name and
project location and select minimum SDK.

Step 3: To define the menu, create and xml file inside your project res/menu/directory and build
the menu.

Step 4: Defines a menu, which is a container for menu items. A<menu> element must be the
root node for the file and can hold one or more <item> and <group> elements.

Step 5: Inflating the menu by calling the inflate () method of menu inflater class.

Step 6: To perform event handling on menu items, you need to override on context item()
method of activity class.

Step 7: Build and run the project on preferred emulator or android device.
EX.NO:

DATE : PICKER VIEW

AIM:
To develop an Android application for Picker view.

PROCEDURE:
Step1 : Open eclipse or android studio and select new android project.

Step 2: Give project name and select next.

Step 3: Choose the android version choose the lowest android version select next.

Step 4: Enter the package name, must be two word supported by click finish.

Step 5: Go to package explorer in the left and side select our project.

Step 6: Go to res folder and select the layout double click the main.xml file.

Step 7: Now you can see the graphics layout window.

Step 8: Now select mainactivity.java file and the following code.

Step 9: To create the AVD for run your android application project.

Step 10: Now you see the result of your project.


EX.NO:

DATE : DISPLAYING PICTURES

AIM:
To develop an Android application for Displaying Pictures.

PROCEDURE:
Step1 : Open eclipse or android studio and select new android project.

Step 2: Give project name and select next.

Step 3: Choose the android version choose the lowest android version select next.

Step 4: Enter the package name, must be two word supported by click finish.

Step 5: Go to package explorer in the left and side select our project.

Step 6: Go to res folder and select the layout double click the main.xml file.

Step 7: Now you can see the graphics layout window.

Step 8: Now select mainactivity.java file and the following code.

Step 9: To create the AVD for run your android application project.

Step 10: Now you see the result of your project.


EX.NO:

DATE : BASIC PROGRAMS

AIM:
To develop an Android application for Basic Programs.

PROCEDURE:
Step1 : Open eclipse or android studio and select new android project.

Step 2: Give project name and select next.

Step 3: Choose the android version choose the lowest android version select next.

Step 4: Enter the package name, must be two word supported by click finish.

Step 5: Go to package explorer in the left and side select our project.

Step 6: Go to res folder and select the layout double click the main.xml file.

Step 7: Now you can see the graphics layout window.

Step 8: Now select mainactivity.java file and the following code.

Step 9: To create the AVD for run your android application project.

Step 10: Now you see the result of your project.


EX.NO:

DATE : DIALOG BOX

AIM:
To develop an Android application for Dialog Box.

PROCEDURE:
Step1 : Open eclipse or android studio and select new android project.

Step 2: Give project name and select next.

Step 3: Choose the android version choose the lowest android version select next.

Step 4: Enter the package name, must be two word supported by click finish.

Step 5: Go to package explorer in the left and side select our project.

Step 6: Go to res folder and select the layout double click the main.xml file.

Step 7: Now you can see the graphics layout window.

Step 8: Now select mainactivity.java file and the following code.

Step 9: To create the AVD for run your android application project.

Step 10: Now you see the result of your project.


EX.NO:

DATE : CALCULATOR

AIM:
To develop an Android application for Calculator.

PROCEDURE:
Step1 : Open eclipse or android studio and select new android project.

Step 2: Give project name and select next.

Step 3: Choose the android version choose the lowest android version select next.

Step 4: Enter the package name, must be two word supported by click finish.

Step 5: Go to package explorer in the left and side select our project.

Step 6: Go to res folder and select the layout double click the main.xml file.

Step 7: Now you can see the graphics layout window.

Step 8: Now select mainactivity.java file and the following code.

Step 9: To create the AVD for run your android application project.

Step 10: Now you see the result of your project.

You might also like