0% found this document useful (0 votes)
10 views

Lab 1

Uploaded by

muhammadrahid780
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Lab 1

Uploaded by

muhammadrahid780
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Lab 01

Android Studio Installation


+
Starting of Android Program
By
Muhammad Zakir Khan
Copy the below Links and Just click
http://www.oracle.com/technetwork/java/javase/downloads/
jdk8-downloads-2133151.html
Step 2: Right Click on My Computer and then Property -> Advance system setting
Go to Google and paste the below Url
https://developer.android.com/studio/index.html?
gclid=CP6RqPq5gNICFSIL0wodwt4FxA
Click on SDK Manager then follow the image below
Click on AVD Manager
Getting Started

• After Successful installation You should see this:


Strongly recommend testing with real Android device
– Android emulator: very slow
– Faster emulator: Genymotion
Android Highlights
• Android apps written in Java 5
– Actually, a Java dialect (Apache Harmony)
– Everything we’ve learned still holds
• Apps use four main components:
– Activity: A “single screen” that’s visible to user
– Service: Long-running background “part” of app (not separate process or
thread)
– ContentProvider: Manages app data (usually stored in database) and data
access for queries
– BroadcastReceiver: Component that listens for particular Android system
“events”, e.g., “found wireless device”, and responds accordingly
App Manifest
• Every Android app must include an AndroidManifest.xml file
describing functionality
• The manifest specifies:
• App’s Activities, Services, etc.
• Permissions requested by app
• Minimum API required
• Hardware features required, e.g., camera with autofocus
• External libraries to which app is linked, e.g., Google Maps library
Activity Lifecycle
Creating Android App
Creating Android App Continuee…
Deploying the App
Underlying Source Code
Underlying GUI Code
The App Manifest
A More Interesting App
Underlying Source Code (1)
Underlying Source Code (2)
A brief Introduction of Andriod Studio IDE
• In res folder -> mipmap folder contain icons having 5 different size.
We can make the icon on different size by using online software
• In res folder -> values ->colors.xml
In colors.xml we can define the app or button colors. You can take help
by searching like
Successful running of Android Studio Looks
• Let’s Apply a few more attributes to the TextView control here:
Creating a Simple User Interface
Now after changes

You might also like