Practical No.1 Aim: Application Fundamentals.: T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
Practical No.1 Aim: Application Fundamentals.: T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
742
PRACTICAL NO.1
Aim: Application Fundamentals.
(Create a Project, Simple Program etc.)
Procedure:
1) To Create New Project
Click on Create New Project and select Template as Empty Activity
and click Next.
2) Do Configuration
(a) Give Project name (App name) and Package name.
(com.example.appname).
(b) Browse the location for Project.
(c) Select preferred programming language (Java and Kotlin).
(d) Select preferred SDK and click on Finish.
P a g e 1 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
4) At left hand side you’ll find Project view bar and there we have to select
Android for folder view in which you’ll find an app folder which consist of
three sub main folder i.e. manifests, java and res (resources).
P a g e 2 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
5] In res folder, it consists 4 subfolders that are drawable, layout, mipmap and
values. In layout folder there’s a file called as activity_main.xml which is being
used for creating UI of our Android apps.
P a g e 3 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 4 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
Split:
Design:
7) In Design View
(a) Drag-n-Drop TextView from the Palette Panel. Modify the default
values it contains we can modify it in Attribute Panel you can see it
below the Design panel.
P a g e 5 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
8) In Java folder,
(a) There are 3 subfolders in package folder we can see the file called as
MainActivity.java. In this java file we write the backend logic or
backend of our UI to make our apps more responsive.
P a g e 6 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
9) In Manifest folder,
(a) You’ll see AndroidManifest.xml using this file we can adjust or
control the sequence of activity.
P a g e 7 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 8 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
PRACTICAL NO.2
Aim: Programming Resources Android Resources: (Color, Theme, String,
Drawable, Dimension, Image).
Procedure:
1) To change the color of text in android.
a) Go to res folder → values folder → colors.xml
b) Then add color tags and values and run the program.
P a g e 9 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
c) Output:
P a g e 10 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 11 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 12 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 13 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 14 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 15 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 16 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
b) Now give your launcher name => select assets type as image =>
browse the image (optional: you can also change the background of your
app).
P a g e 17 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
P a g e 18 | 19
T.Y.B.Sc IT Sem VI Advanced Mobile Programming Roll No.742
Output:
P a g e 19 | 19