0% found this document useful (0 votes)
61 views14 pages

Mobile Prog DTTE PSC Lesson 1

This document provides instructions for developing a mobile application using Android Studio. It includes: 1. How to install Android Studio and other required software like the JDK and SDK. 2. How to create a new project in Android Studio and explore the layout editor. 3. How to launch the application on an Android device by enabling USB debugging and running the app. 4. An assignment to create a simple app with text fields for name and phone number and launch it on a device.

Uploaded by

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

Mobile Prog DTTE PSC Lesson 1

This document provides instructions for developing a mobile application using Android Studio. It includes: 1. How to install Android Studio and other required software like the JDK and SDK. 2. How to create a new project in Android Studio and explore the layout editor. 3. How to launch the application on an Android device by enabling USB debugging and running the app. 4. An assignment to create a simple app with text fields for name and phone number and launch it on a device.

Uploaded by

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

KENYA TECHNICAL TRAINERS

COLLEGE
COMPUTER STUDIES DEPARTMENT

CS7305 – MOBILE APPLICATION


PROGRAMMING (PRACTICAL)
2021CSCS SEPT DTTE – Computer Studies
Group 1
Develop a mobile application

COURSE LECTURERS
Wanjohi Humphrey

Prepared By Wanjohi - Computer Studies Department 1


Leaning Outcomes

a) Installation of Mobile Application


Software
b) Creating First Project
c) Explore the layout editor
d) Launch Application on your Android
device
Prepared By Wanjohi Computer Studies Department 2
a) Installation of Mobile Application
1. Android Studio

You can download Android Studio 3.6 from:


https://developer.android.com/studio

Android Studio provides a complete IDE, including an advanced


code editor and app templates. It also contains tools for
development, debugging, testing, and performance that make it
faster and easier to develop apps. You can use Android Studio to
test your apps with a large range of preconfigured emulators, or
on your own mobile device. You can also build production apps
and publish apps on the Google Play store.
Prepared By Wanjohi & Okidia- Computer Studies Department 3
2. Other Software

(a) JDK -> Java Development Kit


(b) SDK -> Software Development Kit

NB: Both JDk and SDK come bundled with Android Studio
Installation, however to ensure that they are installation use the
customizable installation or install them separate from Android Studio

Prepared By Wanjohi Computer Studies Department 4


System Requirements
Minimum system requirements:

1. OS: Windows 7/8/8.1/10 (64-bit)

2. Memory: 4 GB RAM

3. Free storage: 2 GB

4. Screen resolution: 1280 x 800

Prepared By Wanjohi & Okidia- Computer Studies Department 5


b) Creating First Project
1. Open Android Studio.
2. In the Welcome to Android Studio dialog, click Start a new Android
Studio project.

Prepared By Wanjohi & Okidia- Computer Studies Department 6


3. Select on Empty Activity

Prepared By Wanjohi & Okidia- Computer Studies Department 7


4. Give your application a name such as My First App.
5. Set Language to Java
6. Leave the defaults for the other fields.
7. Click Finish

Prepared By Wanjohi - Computer Studies Department 8


c) Explore the layout editor
Layouts are defined in XML. The layout editor lets you define and
modify your layout either by coding XML or by using the interactive
visual editor.

Step 1: Open the layout editor


1.Find and open the layout folder (app > res > layout) on the left side in
the Project panel.

Prepared By Wanjohi Computer Studies Department 9


Prepared By Wanjohi Computer Studies Department 10
d) Launch Application on your
Android device
1. Activate the developer mode of your Android Device
• Settings
• About Phone
• Software Information
• Tap Build Number 7 times to activate the developer mode of your
phone.
2. Click on Developer Options
3. Activate the USB debugging
4. Connect your phone to the computer using the USB cable

5. NB: Android Studio should be able to automatically pick the device.


6. Click on Run App to launch the app to your mobile phone.

Prepared By Wanjohi & Okidia- Computer Studies Department 11


Assignment
1. Install the software required to design/ run your mobile
application.
2. In the layout add the text “2021CSCS March Intake Mobile
Programming”
3. Add two text boxes to hold name and phone number as
shown
4. Launch your app in your device.

Prepared By Wanjohi & Okidia- Computer Studies Department 12


References
• Notes
https://developer.android.com/codelabs/build-your-first-android-app#0

• Andoid studio:
https://developer.android.com/studio

• Video to get started:


https://www.youtube.com/watch?v=EOfCEhWq8sg
https://www.youtube.com/watch?v=4hEsnJPoP4s

Prepared By Wanjohi & Okidia- Computer Studies Department 13


Prepared By Wanjohi Computer Studies Department 14

You might also like