Agenda:-
1. What is Android?
2. Introducing to Open Handset Alliance.
3. Understanding android Framework.
4. What is Dalvik Virtual Machine?
5. Different version of android OS.
6. Prominent instruments of android environment.
7. Android environment programming.
8. How android manages memory.
9. Application Development Tool.
Applications in Android..
1. Whats App..
2. Facebook..
3. We-Chat..
4. Mx-Player..
5. Line ..
6. Times-Of-India..
U can also create ur customized App
What is OHA ?A BUSINESS ALLIANCE
CONSISTING OF 47 COMPANIES TO DEVELOP OPEN STANDARDS FOR
MOBILE DEVICES
Android 2.2 Foroyo
Android 1.6 Donut
Android 2.1 Eclairs
Android 1.5Cup cake
Android 2.3 Gingerbread
Android 2.3Ice-CreameSandwich
Setting up Android Application Development
INSTALL ECLIPSE INSTALL ANDROID
SDK (ANDROID LIBRARIES)
INSTALL ADT PLUGIN (ANDROID DEVELOPMENT TOOLS)
Programming
Android Applications are written in Java
package com.google.android.helloactivity;
import android.app.Activity;import android.os.Bundle;
public class HelloActivity extends Activity {public void onCreate(Bundle savedinstantstate) { super.onCreate(savedinstantstate); setContentView(R.layout.hello_activity);}}
Memory Management Function..
Before execution, Android applications are converted into the compact Dalvik Executable (.dex) format, which is designed to be suitable for systems that are constrained in terms of memory and processor speed.
.java
.class
.dex
Dalvik Virtual Machine
Activity..
Represents the presentation layer of an Android application, e.g. a screen which the user sees.
Services…
• Faceless components that run in the background– E.g. music player, network
download etc…
HelloWorld.java
1 public class HelloAndroid extends Activity {
2 /** Called when the activity is first created. */
3 @Override
4 public void onCreate(Bundle savedInstanceState)
5 {
6 super.onCreate(savedInstanceState);
7 setContentView(R.layout.main);
8 }
9 }
Main.xml
<?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:orientation="vertical"
5 android:layout_width="fill_parent"
6 android:layout_height="fill_parent"
7 >
8 <TextView
9 android:layout_width="fill_parent"
10 android:layout_height="wrap_content"
11 android:text="@string/hello "
12 />
13 </LinearLayout>
Strings.xml
<?xml version="1.0" encoding="utf-8"?>
2 <resources>
3 <string name="hello">Hello World, Hello Android!
4 </string>
5 <string name="app_name">Hello, Android</string>
6 </resources>