Android development basics
-
Upload
pramesh-gautam -
Category
Mobile
-
view
34 -
download
0
Transcript of Android development basics
1
Android Development
Basics
Pramesh Gautam
2
Topics
● Introduction
● Development basics
● Demonstration
3
Introduction
● Open source operating system
● Supported by OHA and maintained by google
● Beyond phones
● ART runtime environment
● API level
4
Tools Used
● Java
● SQLite
● XML
● gradle(in android studio)
● Eclipse or android studio IDE
5
Development
Activity(Details)
Single, focused thing that the user can do.
Layout defined in xml.
Inherits android.app.activity.
Core component of application.
Provides user intrerface.
6
Development
● Lifecycle
7
Development
Android Manifest
● Every app must have it.
● It names the Java package for the application
● Contains details of every activity.
● Specifies persmission.
● Declares required API.
● Lists libraries that must be linked.
● Includes other spefications of the application.
Project Structure
Shown in android studio
8
9
Layouts
● LinearLayout
● RelativeLayout
10
LinearLayout
● A layout that organizes its children into a
single horizontal or vertical row.
11
RelativeLayout
● Enables you to specify the location of child
objects relative to each other (child A to the
left of child B) or to the parent (aligned to the
top of the parent).
12
Intents
● Message from one activity to another.
● Can be used to link activities.
● Useful to transfer messages between activities.
13
Permissions
● Added to allow permissions to android app.
● Defined in manifest.
● Should be chosen carefully to meet
requirements.
Demonstration
Shown in android studio
14
Q & A
• Thank you
15