You are on page 1of 2

LIST OF PRACTICALS TO BE PERFORMED IN LABORATORY

1) Write a simple hello world application.

2) Write a simple application to demonstrate use of resources.

3) Write an application to demonstrate activity life cycle.

4) Write an application which changes the text of a text view at runtime.

5) Write an application which changes the text of text view on clicking a button.

6) Write an application which shows a message(toast) on clicking a button.

7) Write an application which demonstrates array.(Clicking button should load array on a


text view).

8) Write an application which shows the text entered in an edit view on clicking a button.

9) Write an application which calculates the addition, subtraction, multiplication and


division of the numbers entered in edit views on clicking appropriate buttons.

10) Write an application which shows an image on ImageView on clicking a button.

11) Write an application which shows different image on clicking each 4 buttons.

12) Write an application which ask for the user's basic information and clicking on submit
button displays the information entered on a Toast.

13) Write an application which contains an activity with a button captioned "Next Activity",
on clicking this button, next activity should be launched.

14) Write an application which ask for basic information of the client , on clicking submit
button, the details entered should be displayed in the next screen.

15) Write an application which contains a layout for login, on clicking the submit button the
username and password should be matched in resources, if found correct then next activity
should be launched.

16) Write an application which works like a calculator with basic functions. (design separate
layouts for both orientations).

17) Write an application which contains 3 fragments, 3 buttons and a main activity. On
clicking each button a fragment should be added.

18) Write an application which contains 2 layouts , one with an ImageView and 2 buttons.
On clicking 1st button camera application should be launched and the captured photo
should be displayed on ImageView. On clicking the second button , next activity should be
launched with another layout containing 2 edit views and a button. On clicking the button,
this activity should be closed and the text entered in these edit views should be displayed in
a text view in first activity.(Use ActivityForResult).

19) Write an application which contains Spinner with color names as list. On selecting a
color, the background of the layout should changed accordingly.

20) Write an application which contains 2 edit views, a spinner and a text view. Spinner
should contain items like addition, subtraction, multiplication and division. On selecting an
operation from spinner, the operation should be performed on the numbers entered in edit
views and the result should be displayed in text view.

21) Write an application which contains a Spinner and an ImageView. Spinner should
contains items like Rectangle, Square, Star, Circle, Arc, Oval,etc. On selecting an item, the
particular shape should be drawn on ImageView. (Define shapes as resources).

22) Write an application which contains a Spinner and an ImageView. Spinner should
contains items like Rectangle, Square, Star, Circle, Arc, Oval,etc. On selecting an item, the
particular shape should be drawn on ImageView. (Define shapes in java).

23) Write an application which contains an ImageView with a rectangle with red color filled.
On pressing(touching) the rectangle, the color should be changed to blue and on removing
the finger should turn back to red.( Use touch events)

You might also like