Module_2_MAD
Module_2_MAD
Module_2_MAD
Fundamentals of
Android Development
INTRODUCTION TO ANDROID
Android is a mobile operating system developed by Google
Each time the OHA releases an Android version, it names the release
after a dessert. Android 1.5 is known as Cupcake, 1.6 as Donut,
2.0/2.1 as Eclair, 2.2 as Froyo and 2.3 is dubbed Gingerbread. Once a
version is released, so is its source code.
The features of android
1) It is open-source.
2) Anyone can customize the Android Platform.
3) There are a lot of mobile applications that can be chosen by the
consumer.
4) It provides many interesting features like weather details,
Health details ,Stock market details ,payment , Banking services
5) It provides support for messaging services(SMS and MMS), web
browser, storage (SQLite), connectivity (GSM, CDMA, Blue
Tooth, Wi-Fi etc.), media, handset layout etc.
Android versions:
• Google did not attach any high-calorie code name to its initial versions
1.0 and 1.1 of the Android Operating System.
• The Android 4.1 Jelly Bean SDK was released with new features for developers in July
2012
It contains variety of new features
• Project Butter: —Makes the Jelly Bean UI faster and more responsive.
Touch Responsiveness is added, which increases the CPU performance
whenever the screen is touched
• Faster speech recognition: Speech recognition is now faster and doesn’t require any
network to convert voice into text
The media framework library provides media codecs for audio and video.
The OpenGl (Open Graphics Library) and SGL(Scalable Graphics Library) are the
2. Android Emulator.
The Android emulator is used for testing and debugging applications before they are
loaded onto a real handset
Android emulator is typically used for deploying apps that are developed in your IDE
without actually installing it in a mobile
Example: Bluestack
Limitations of the Android Emulator
• res — This folder contains all the resources used in your application. It
also contains a few other subfolders:
• values - contains files like strings.xml, styles.xml that are need for storing
the string variables used in the applications, creating style-sheets etc.
• AndroidManifest.xml — This is the manifest file for your
Android application. Here you specify the permissions needed
by your application, as well as other features for example
sending messages and email
U S IN G T H E T E X T V IE WC O N T R O L
• TEXTVIEW control are the View components which are used to design the user
interface of an application
• we have a wide variety of UI or input controls available, those are TextView, EditText,
Buttons, Checkbox, Progressbar, Spinners, etc.
• In android, Text View is a user interface control which is used to set and display the text
to the user based on our requirements.
• The TextView control will act as like label control and it won’t allow users to edit the
text.
• Example of TextView control usage would be to display textual labels for other controls,
like "Enter a Date:", "Enter a Name:" or "Enter a Password:".
Specific attributes of Text View controls you will want to be aware of:
property
Set the text displayed within the TextView control using the
control as appropriate.
• By default, text contents of a TextView control are left-aligned. However, you
can position the text using the gravity attribute
android: gravity="center”
• Set any other attributes you desire to adjust the control’s appearance. For
example, adjust the text size, color, font or other style settings.
android:textColor="#ff0000”
android:textStyle="bold"
android:typeface="monospace"
• By default, any text contents within a TextView control is displayed as
plain text. However, by setting one simple attribute called autoLink,
all you can enable automatic detection of web, email, phone and
address information within the text. In XML, this property would
appear within your TextView control as:
• android:autoLink="all"