Session 1 beccse
-
Upload
vin123456gangal -
Category
Technology
-
view
173 -
download
0
Transcript of Session 1 beccse
Dept. of Computer Science and Engineering
Getting Started withANDROID
Dept. of Computer Science and Engineering
SESSION 1
1. Introduction to Mobile Application Development
2. Features of Android
3. Architecture of Android
4. Activity Life Cycle
Dept. of Computer Science and Engineering
Introduction to Mobile Application Development
Dept. of Computer Science and Engineering
What is ANDROID?
1. Open platform http://source.android.com.2. Can compile custom firmwares – good for hackers and other.3. New framework, extended on each new firmware.4. Support Multi tasking.5. Nice IDE – Eclipse, NetBeans.6. Development SDK is free.7. Easy to debug, can send logs to developers.8. Programming Language is JAVA but bridges from other languages exists
(C#, .net, etc)9. JAVA is a high level language that appeared in 1995. Android supports JAVA
1.5 and translates the byte code to its own custom Dalvik byte code optimised for mobile devices.
10. For the hardcore programmers, Android offers the possibility of programming using C the native dev kit known as NDK.
Dept. of Computer Science and Engineering
iPHONE
1. Closed platform.2. Limited Multitasking.3. Development Toolkit cost ~99$4. Programming language is Objective C – but bridges exists from JAVA, C#, etc.5. Objective C appeared in 1986.6. Next version of iPHONE is supposed to only allow Objective C code. This
means the bridges are out and you must program in Objective C if you want to create an iPHONE application.
7. Application are not allowed to duplicate the iPHONE functionality i.e., no custom email interface, etc.
Dept. of Computer Science and Engineering
ANDROID an OS ?? Or Application Stack ??
Dept. of Computer Science and Engineering
Introduction
Android is a software stack for mobile devices that includes :Operating System
Linux version 2.6 Service include hardware drivers, power, process and memory management; security and network.
Middleware
Libraries SQLite, OpenGL, Webkit, etc
Android Runtime Dalvik Virtual Machine and core libraries.
Application FrameworksAbstraction for hardware access; manages application resources and the UI; provides classes for developing applications for Android
Applications
Native apps Contact, Phone, Browser, etc.
Third Party apps Developer’s application.
Dept. of Computer Science and Engineering
Typical Android Architecture
Activity Life Cycle
Dept. of Computer Science and Engineering
Dept. of Computer Science and Engineering
Introduction
Activity Life CycleActivity are managed as an activity stack (LIFO collection)
Activity has four stages
Running Activity is in the foreground
Paused Activity has lost focus but it is still visible
Stopped Activity is not visible (completely obscured by another activity)
Inactive Activity has not been launched yet or has been killed.
Dept. of Computer Science and Engineering
Tea Break
Dept. of Computer Science Science and Engineering